Merge pull request #939 from hapifhir/MapParsingChanges

When we load StructureMaps from mapping files, make the mapping langu…
This commit is contained in:
Grahame Grieve 2022-10-07 08:17:27 +11:00 committed by GitHub
commit 646e132a51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

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