When we load StructureMaps from mapping files, make the mapping language the narrative.

This commit is contained in:
Lloyd McKenzie 2022-10-03 21:57:36 -06:00
parent fa8db082c7
commit ccde7dce2a

View File

@ -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;
}