XmlParser narrative bug

This commit is contained in:
Oliver Egger 2019-05-29 20:56:05 +02:00
parent 24c9c27abb
commit 7946571523
1 changed files with 4 additions and 4 deletions

View File

@ -362,10 +362,10 @@ public class XmlParser extends BaseParser /* implements IParser */ {
if (nextChild instanceof RuntimeChildNarrativeDefinition) {
INarrativeGenerator gen = myContext.getNarrativeGenerator();
INarrative narr;
if (theResource instanceof IResource) {
narr = ((IResource) theResource).getText();
} else if (theResource instanceof IDomainResource) {
narr = ((IDomainResource) theResource).getText();
if (theElement instanceof IResource) {
narr = ((IResource) theElement).getText();
} else if (theElement instanceof IDomainResource) {
narr = ((IDomainResource) theElement).getText();
} else {
narr = null;
}