From ccde7dce2af99681ee6a09cb2338a27f361d7e38 Mon Sep 17 00:00:00 2001 From: Lloyd McKenzie Date: Mon, 3 Oct 2022 21:57:36 -0600 Subject: [PATCH] When we load StructureMaps from mapping files, make the mapping language the narrative. --- .../java/org/hl7/fhir/r4/utils/StructureMapUtilities.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/StructureMapUtilities.java b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/StructureMapUtilities.java index 01e3dfdf3..14835b989 100644 --- a/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/StructureMapUtilities.java +++ b/org.hl7.fhir.r4/src/main/java/org/hl7/fhir/r4/utils/StructureMapUtilities.java @@ -81,6 +81,7 @@ import org.hl7.fhir.r4.model.ExpressionNode; import org.hl7.fhir.r4.model.ExpressionNode.CollectionStatus; import org.hl7.fhir.r4.model.IdType; import org.hl7.fhir.r4.model.IntegerType; +import org.hl7.fhir.r4.model.Narrative; import org.hl7.fhir.r4.model.Narrative.NarrativeStatus; import org.hl7.fhir.r4.model.PrimitiveType; import org.hl7.fhir.r4.model.Reference; @@ -743,6 +744,12 @@ public class StructureMapUtilities { parseGroup(result, lexer); } + Narrative textNode = result.getText(); + textNode.setStatus(Narrative.NarrativeStatus.ADDITIONAL); + XhtmlNode node = new XhtmlNode(NodeType.Element, "div"); + textNode.setDiv(node); + node.pre().tx(text); + return result; }