Modify DiagnosticReport converter to handle request <-> basedOn difference between 1.0.2 and 3.0.0

This commit is contained in:
Graham, Gary 2019-02-19 12:15:54 -08:00 committed by James Agnew
parent 15a962aae7
commit a0f9f82eb7
1 changed files with 4 additions and 4 deletions

View File

@ -5784,8 +5784,8 @@ public class VersionConvertor_10_30 {
tgt.setEffective(convertType(src.getEffective())); tgt.setEffective(convertType(src.getEffective()));
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
// tgt.setPerformer(convertReference(src.getPerformer())); // tgt.setPerformer(convertReference(src.getPerformer()));
// for (org.hl7.fhir.instance.model.Reference t : src.getRequest()) for (org.hl7.fhir.instance.model.Reference t : src.getRequest())
// tgt.addRequest(convertReference(t)); tgt.addBasedOn(convertReference(t));
for (org.hl7.fhir.instance.model.Reference t : src.getSpecimen()) for (org.hl7.fhir.instance.model.Reference t : src.getSpecimen())
tgt.addSpecimen(convertReference(t)); tgt.addSpecimen(convertReference(t));
for (org.hl7.fhir.instance.model.Reference t : src.getResult()) for (org.hl7.fhir.instance.model.Reference t : src.getResult())
@ -5817,8 +5817,8 @@ public class VersionConvertor_10_30 {
tgt.setEffective(convertType(src.getEffective())); tgt.setEffective(convertType(src.getEffective()));
tgt.setIssued(src.getIssued()); tgt.setIssued(src.getIssued());
// tgt.setPerformer(convertReference(src.getPerformer())); // tgt.setPerformer(convertReference(src.getPerformer()));
// for (org.hl7.fhir.dstu3.model.Reference t : src.getRequest()) for (org.hl7.fhir.dstu3.model.Reference t : src.getBasedOn())
// tgt.addRequest(convertReference(t)); tgt.addRequest(convertReference(t));
for (org.hl7.fhir.dstu3.model.Reference t : src.getSpecimen()) for (org.hl7.fhir.dstu3.model.Reference t : src.getSpecimen())
tgt.addSpecimen(convertReference(t)); tgt.addSpecimen(convertReference(t));
for (org.hl7.fhir.dstu3.model.Reference t : src.getResult()) for (org.hl7.fhir.dstu3.model.Reference t : src.getResult())