Stream: implementers
Topic: FHIR R4 patient Deserialization
vineet gandhi (Feb 25 2019 at 16:38):
I am using 3.7.0 verison of R4 Patient object and I am getting error while deserialization :
Caused by: java.lang.IllegalArgumentException: Conflicting setter definitions for property "referenceElement": org.hl7.fhir.r4.model.Reference#setReferenceElement(1 params) vs org.hl7.fhir.r4.model.Reference#setReferenceElement(1 params)
at com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.getSetter(POJOPropertyBuilder.java:497)
at com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.getPrimaryType(POJOPropertyBuilder.java:338)
at com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.getRawPrimaryType(POJOPropertyBuilder.java:358)
vineet gandhi (Feb 25 2019 at 16:39):
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-r4</artifactId>
<version>3.7.0</version>
</dependency>
vineet gandhi (Feb 25 2019 at 16:40):
There are two setters in Reference.java which is causing the problem
sample json :
https://www.hl7.org/fhir/patient-example-f001-pieter.json.html
vineet gandhi (Feb 25 2019 at 16:40):
Please revert back with correct approach .Its kind of urgent!
Lloyd McKenzie (Feb 25 2019 at 16:41):
@James Agnew
James Agnew (Feb 25 2019 at 16:46):
This was asked in the Google Group as well. Please see discussion there.
Last updated: Apr 12 2022 at 19:14 UTC