From 5c8f398bad8a83682c4b47db73e0171f73372470 Mon Sep 17 00:00:00 2001 From: Grahame Grieve Date: Fri, 14 Feb 2020 10:06:55 +1100 Subject: [PATCH] fix problem in PlanDefinition conversion between 4 and 5 --- .../fhir/convertors/conv40_50/PlanDefinition40_50.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java index 7ca74fbdd..e3235b1fb 100644 --- a/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java +++ b/org.hl7.fhir.convertors/src/main/java/org/hl7/fhir/convertors/conv40_50/PlanDefinition40_50.java @@ -358,8 +358,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { tgt.setPrecheckBehavior(convertActionPrecheckBehavior(src.getPrecheckBehavior())); if (src.hasCardinalityBehavior()) tgt.setCardinalityBehavior(convertActionCardinalityBehavior(src.getCardinalityBehavior())); - // if (src.hasDefinition()) - // tgt.setDefinitionElement(convertType(src.getDefinitionElement())); + if (src.hasDefinition()) + tgt.setDefinition(convertType(src.getDefinition())); if (src.hasTransform()) tgt.setTransformElement(convertCanonical(src.getTransformElement())); if (src.hasDynamicValue()) { @@ -432,8 +432,8 @@ public class PlanDefinition40_50 extends VersionConvertor_40_50 { tgt.setPrecheckBehavior(convertActionPrecheckBehavior(src.getPrecheckBehavior())); if (src.hasCardinalityBehavior()) tgt.setCardinalityBehavior(convertActionCardinalityBehavior(src.getCardinalityBehavior())); - // if (src.hasDefinition()) - // tgt.setDefinitionElement(convertType(src.getDefinitionElement())); + if (src.hasDefinition()) + tgt.setDefinition(convertType(src.getDefinition())); if (src.hasTransform()) tgt.setTransformElement(convertCanonical(src.getTransformElement())); if (src.hasDynamicValue()) {