toHealthcareProfessional method
Implementation
HealthcareProfessional toHealthcareProfessional() => HealthcareProfessional(
id: this.id,
names: this.names.map((it) => it.toPersonName()).toList(),
addresses: this.addresses.map((it) => it.toAddress()).toList(),
languages: this.languages,
specialityCodes: this.specialityCodes.map((it) => it.toCodingReference()).toSet(),
properties: this.properties.map((it) => it.toProperty()).toSet(),
rev: this.rev,
deletionDate: this.deletionDate,
name: this.name,
lastName: this.lastName,
firstName: this.firstName,
gender: this.gender?.toHealthcareProfessionalGender(),
civility: this.civility,
speciality: this.speciality,
parentId: this.parentId,
picture: this.picture,
notes: this.notes,
systemMetaData: SystemMetaDataOwner(
publicKey: this.publicKey,
hcPartyKeys: this.hcPartyKeys,
privateKeyShamirPartitions: this.privateKeyShamirPartitions,
aesExchangeKeys: this.aesExchangeKeys,
transferKeys: this.transferKeys,
));