Hi,
Whenever I am trying to use HAPI FHIR structures in my spring boot application, while getting the response I getting the following error:
{
"timestamp": 1522900137233,
"status": 500,
"error": "Internal Server Error",
"exception": "org.springframework.http.converter.HttpMessageNotWritableException",
"message": "Could not write JSON: InstantType contains null value; nested exception is com.fasterxml.jackson.databind.JsonMappingException: InstantType contains null value (through reference chain: org.hl7.fhir.dstu3.model.Patient[\"meta\"]->org.hl7.fhir.dstu3.model.Meta[\"lastUpdatedElement\"]->org.hl7.fhir.dstu3.model.InstantType[\"today\"])",
"path": "/hello1"
}
There seems to be a HttpMessageNotWritableException and JsonMappingException. It is unable to serialize and parse the json.
Is there any workaround on this ? I am NOT useing the HAPI FHIR server. It is a spring boot app.
Thanks,
Siddhartha