Share Your Thoughts on our Terminology Server! Let us know your insights and help enhance our services. The survey is open from Nov 19 to Dec 3, 2024. Your feedback matters!
Learn More >
Wondering if anyone here can help me with an odd validation error while attempting to use HAPI to create a DSTU2 FHIR ReferralRequest context from a JSON string. Specifically with the HAPI method: FhirContext.forDstu2().newJsonParser().parseResource( <JSON string> ).
The JSON string is well formed and seems to pass validation in the FHIR test server. But in my code I get validation errors for perfectly valid elements.
This is the error log:
INFO: Creating new FHIR context for FHIR version [DSTU2]
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'name' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'telecom' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'telecom' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'telecom' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'gender' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'birthDate' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'address' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'careProvider' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.parser.LenientErrorHandler unknownElement
WARNING: Unknown element 'id' found while parsing
Jan 17, 2017 6:44:37 PM ca.uhn.fhir.context.FhirContext <init>
Improving the quality of patient care through the effective sharing of clinical information among health care organizations, clinicians and their patients.