toMedicalDevice method
Implementation
MedicalDevice toMedicalDevice() => MedicalDevice(
id: this.id,
labels: this.tags.map((it) => it.toCodingReference()).toSet(),
codes: this.codes.map((it) => it.toCodingReference()).toSet(),
properties: this.properties.map((it) => it.toProperty()).toSet(),
rev: this.rev,
deletionDate: this.deletionDate,
name: this.name,
externalId: this.externalId,
parentId: this.parentId,
picture: this.picture,
type: this.type,
brand: this.brand,
model: this.model,
serialNumber: this.serialNumber,
systemMetaData: SystemMetaDataOwner(
publicKey: this.publicKey,
hcPartyKeys: this.hcPartyKeys,
privateKeyShamirPartitions: this.privateKeyShamirPartitions,
aesExchangeKeys: this.aesExchangeKeys,
transferKeys: this.transferKeys,
));