toHealthcareElement method
Implementation
HealthcareElement toHealthcareElement() =>
HealthcareElement(
id: this.id,
identifiers: this.identifiers.map((it) => it.toIdentifier()).toList(),
labels: this.tags.map((it) => it.toCodingReference()).toSet(),
codes: this.codes.map((it) => it.toCodingReference()).toSet(),
rev: this.rev,
created: this.created,
modified: this.modified,
author: this.author,
responsible: this.responsible,
medicalLocationId: this.medicalLocationId,
endOfLife: this.endOfLife,
deletionDate: this.deletionDate,
healthcareElementId: this.healthElementId,
valueDate: this.valueDate,
openingDate: this.openingDate,
closingDate: this.closingDate,
description: this.descr,
note: this.note,
systemMetaData: SystemMetaDataEncrypted(
secretForeignKeys: this.secretForeignKeys.toList(),
cryptedForeignKeys: this.cryptedForeignKeys.map((key, value) => MapEntry(key, value.map((e) => e.toDelegation()).toList())),
delegations: this.delegations.map((key, value) => MapEntry(key, value.map((e) => e.toDelegation()).toList())),
encryptionKeys: this.encryptionKeys.map((key, value) => MapEntry(key, value.map((e) => e.toDelegation()).toList())),
encryptedSelf: this.encryptedSelf
)
);