From 31a4d31755ebe44aae7b0179fcb3fbd3dde1386e Mon Sep 17 00:00:00 2001 From: Oliver Egger Date: Thu, 9 Jan 2020 22:45:00 +0100 Subject: [PATCH] CDA Narrative conversion from FHIR NP fix --- .../src/main/java/org/hl7/fhir/r5/elementmodel/XmlParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/XmlParser.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/XmlParser.java index d795fb2a1..f7b88dc9c 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/XmlParser.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/elementmodel/XmlParser.java @@ -595,7 +595,7 @@ public class XmlParser extends ParserBase { if (element.getType().equals("xhtml")) { String rawXhtml = element.getValue(); if (isCdaText(element.getProperty())) { - new CDANarrativeFormat().convert(xml, element.getXhtml()); + new CDANarrativeFormat().convert(xml, new XhtmlParser().parseFragment(rawXhtml)); } else { xml.escapedText(rawXhtml); xml.anchor("end-xhtml");