Merge pull request #230 from ahdis/oe_cdanarrative_npfix
CDA Narrative conversion from FHIR, Nullpointer exception fix
This commit is contained in:
commit
9e7ef8ab38
|
@ -595,7 +595,7 @@ public class XmlParser extends ParserBase {
|
||||||
if (element.getType().equals("xhtml")) {
|
if (element.getType().equals("xhtml")) {
|
||||||
String rawXhtml = element.getValue();
|
String rawXhtml = element.getValue();
|
||||||
if (isCdaText(element.getProperty())) {
|
if (isCdaText(element.getProperty())) {
|
||||||
new CDANarrativeFormat().convert(xml, element.getXhtml());
|
new CDANarrativeFormat().convert(xml, new XhtmlParser().parseFragment(rawXhtml));
|
||||||
} else {
|
} else {
|
||||||
xml.escapedText(rawXhtml);
|
xml.escapedText(rawXhtml);
|
||||||
xml.anchor("end-xhtml");
|
xml.anchor("end-xhtml");
|
||||||
|
|
Loading…
Reference in New Issue