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 >

Share this page:

file Issue Parsing JSON into ReferralRequest Object with HAPI

  • Posts: 2
7 years 10 months ago #2015 by Dennis Warren
Thanks for the link. I'll give it a shot.

Please Log in or Create an account to join the conversation.

  • Posts: 132
7 years 10 months ago #2014 by Lloyd Mckenzie
The best place to raise issues about HAPI is on chat.fhir.org
i.e. chat.fhir.org/#narrow/stream/hapi

Please Log in or Create an account to join the conversation.

  • Posts: 2
7 years 10 months ago #2013 by Dennis Warren
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>

Please Log in or Create an account to join the conversation.

InfoCentral logo

Improving the quality of patient care through the effective sharing of clinical information among health care organizations, clinicians and their patients.