Partager :

file Issue Parsing JSON into ReferralRequest Object with HAPI

  • Messages : 2
il y a 7 ans 9 mois #2015 par Dennis Warren
Thanks for the link. I'll give it a shot.

Connexion ou Créer un compte pour participer à la conversation.

  • Messages : 132
il y a 7 ans 9 mois #2014 par Lloyd Mckenzie
The best place to raise issues about HAPI is on chat.fhir.org
i.e. chat.fhir.org/#narrow/stream/hapi

Connexion ou Créer un compte pour participer à la conversation.

  • Messages : 2
il y a 7 ans 9 mois #2013 par 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>

Connexion ou Créer un compte pour participer à la conversation.

Logo d'InfoCentral

La santé numérique à votre service

 

Transformer les soins de santé au Canada grâce aux technologies de l'information sur la santé.