FHIR Chat · Non-null JSON Response · implementers

Stream: implementers

Topic: Non-null JSON Response


view this post on Zulip Kunjan Patel (Oct 20 2020 at 10:01):

Hello, I have newly started using the HAPI FHIR dependency to manage Resource Models. My APIs return Bundle of resources and I dont want the null properties of the resource to be sent as response. But I am not able to annotate the Resource model using Jackson. Please help.

view this post on Zulip James Agnew (Oct 20 2020 at 11:14):

HAPI FHIR is not designed to be used with Jackson parsers.

This page shows how to use HAPI FHIR's parser/serializer: https://hapifhir.io/hapi-fhir/docs/model/parsers.html

view this post on Zulip Kunjan Patel (Oct 21 2020 at 06:29):

@James Agnew Thanks a lot! That helps.


Last updated: Apr 12 2022 at 19:14 UTC