CDA Narrative conversion from FHIR NP fix

This commit is contained in:
Oliver Egger 2020-01-09 22:45:00 +01:00
parent 60b0382b00
commit 31a4d31755
1 changed files with 1 additions and 1 deletions

View File

@ -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");