add "OnBehalfOf" for medication request when converting STU3 do R4
This commit is contained in:
parent
3ff241bcf8
commit
e156be4e49
|
@ -43,9 +43,15 @@ public class MedicationRequest30_40 {
|
|||
tgt.setPriorPrescription(VersionConvertor_30_40.convertReference(src.getPriorPrescription()));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getDetectedIssue()) tgt.addDetectedIssue(VersionConvertor_30_40.convertReference(t));
|
||||
for (org.hl7.fhir.dstu3.model.Reference t : src.getEventHistory()) tgt.addEventHistory(VersionConvertor_30_40.convertReference(t));
|
||||
if (src.hasRequester() && src.getRequester().hasAgent()) {
|
||||
if (src.hasRequester()) {
|
||||
if (src.getRequester().hasAgent()) {
|
||||
tgt.setRequester(VersionConvertor_30_40.convertReference(src.getRequester().getAgent()));
|
||||
}
|
||||
if (src.getRequester().hasOnBehalfOf()) {
|
||||
tgt.addExtension("http://hl7.org/fhir/3.0/StructureDefinition/extension-MedicationRequest.requester.onBehalfOf",
|
||||
VersionConvertor_30_40.convertReference(src.getRequester().getOnBehalfOf()));
|
||||
}
|
||||
}
|
||||
return tgt;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue