From a0f9f82eb7fe2a2db66fa71090993d495bba399e Mon Sep 17 00:00:00 2001 From: "Graham, Gary" Date: Tue, 19 Feb 2019 12:15:54 -0800 Subject: [PATCH] Modify DiagnosticReport converter to handle request <-> basedOn difference between 1.0.2 and 3.0.0 --- .../org/hl7/fhir/convertors/VersionConvertor_10_30.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java b/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java index 9db85414f6c..67a96a5aa01 100644 --- a/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java +++ b/hapi-fhir-converter/src/main/java/org/hl7/fhir/convertors/VersionConvertor_10_30.java @@ -5784,8 +5784,8 @@ public class VersionConvertor_10_30 { tgt.setEffective(convertType(src.getEffective())); tgt.setIssued(src.getIssued()); // tgt.setPerformer(convertReference(src.getPerformer())); -// for (org.hl7.fhir.instance.model.Reference t : src.getRequest()) -// tgt.addRequest(convertReference(t)); + for (org.hl7.fhir.instance.model.Reference t : src.getRequest()) + tgt.addBasedOn(convertReference(t)); for (org.hl7.fhir.instance.model.Reference t : src.getSpecimen()) tgt.addSpecimen(convertReference(t)); 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.setIssued(src.getIssued()); // tgt.setPerformer(convertReference(src.getPerformer())); -// for (org.hl7.fhir.dstu3.model.Reference t : src.getRequest()) -// tgt.addRequest(convertReference(t)); + for (org.hl7.fhir.dstu3.model.Reference t : src.getBasedOn()) + tgt.addRequest(convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getSpecimen()) tgt.addSpecimen(convertReference(t)); for (org.hl7.fhir.dstu3.model.Reference t : src.getResult())