use of org.ehrbase.fhirbridge.ehr.opt.hipdocumentcomposition.definition.HipMetadataIdentifikatorElement in project fhir-bridge by ehrbase.
the class DocumentReferenceToHipDocumentConverter method getIdentifiers.
private Optional<List<HipMetadataIdentifikatorElement>> getIdentifiers(DocumentReference documentReference) {
if (!documentReference.hasMasterIdentifier()) {
return Optional.empty();
}
DvIdentifier id = new DvIdentifier();
id.setAssigner(documentReference.getMasterIdentifier().getSystem());
id.setId(documentReference.getMasterIdentifier().getValue());
HipMetadataIdentifikatorElement idElem = new HipMetadataIdentifikatorElement();
idElem.setValue(id);
return Optional.of(List.of(idElem));
}
Aggregations