mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-09 06:14:45 +00:00
When we load StructureMaps from mapping files, make the mapping language the narrative.
This commit is contained in:
parent
fa8db082c7
commit
ccde7dce2a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user