Merge pull request #230 from ahdis/oe_cdanarrative_npfix

CDA Narrative conversion from FHIR, Nullpointer exception fix
This commit is contained in:
Grahame Grieve 2020-06-10 08:43:17 +10:00 committed by GitHub
commit 9e7ef8ab38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");