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)
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-r4</artifactId>
<version>3.7.0</version>
</dependency>
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
Please revert back with correct approach .Its kind of urgent!
--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/ad231b27-bb2e-4d47-91c1-f27826cc90ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/e04a5de3-64f0-421e-9f14-03d8475e5343%40googlegroups.com.