You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot seem to figure out how to get this to not raise exceptions. I see in the docs that I can create a Serializer using SerializationFilter.ForElements(...).
The only thing I've been able to try above is setting mode to Ostrich or catching the resulting DeserializationFailedException and returning the PartialResult.. each seem "off".
For broader context on the code snippet above... something like that is inside of a "named client" which I use to make requests to several various fhir calls... this code isn't aware of anything specific about the request. The requester configures the resource/parameters and delegates to the named client. T in the example above is a Bundle whose entries would be Encounter resources since the URI is encounter
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have some code that makes an api call to an external fhir server.. eg:
fhir.com/Encounter?_elements=id,subject,serviceProvider
Whose response I'm attempting to deserialize via..
I cannot seem to figure out how to get this to not raise exceptions. I see in the docs that I can create a Serializer using
SerializationFilter.ForElements(...)
.The only thing I've been able to try above is setting mode to
Ostrich
or catching the resultingDeserializationFailedException
and returning thePartialResult
.. each seem "off".For broader context on the code snippet above... something like that is inside of a "named client" which I use to make requests to several various fhir calls... this code isn't aware of anything specific about the request. The requester configures the resource/parameters and delegates to the named client.
T
in the example above is aBundle
whose entries would beEncounter
resources since the URI is encounterBeta Was this translation helpful? Give feedback.
All reactions