FHIR Chat · parser error · hapi

Stream: hapi

Topic: parser error


view this post on Zulip Niranjan Kumar (Mar 12 2020 at 22:58):

What can be the reason of getting this error at parser.parseResource :
Field 'div' in type 'org.hl7.fhir.r4.model.Narrative' is not a valid child type: class org.hl7.fhir.utilities.xhtml.XhtmlNode
When executing this code:
public static <T extends IBaseResource> T convertFromStringToFhirResource(Class<T> classType,
String fhirResource) {
parser.setParserErrorHandler(new StrictErrorHandler());
return parser.parseResource(classType, fhirResource);
}

view this post on Zulip James Agnew (Mar 13 2020 at 12:23):

Are you using the latest version of HAPI FHIR? If so, can you provide a minimal, runnable code snippet to show how to reproduce this problem?


Last updated: Apr 12 2022 at 19:14 UTC