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 was expecting an empty object to be serialized to empty dict instead gets serialized as null.
What I Did
from fhir.resources.careteam import CareTeamParticipant
CareTeamParticipant(role=[{}]).json()
# output: '{"role":[null]}'
# I was expecting it to be: '{"role":[{}]}'
The text was updated successfully, but these errors were encountered:
This issue is relevant because sometimes it makes it impossible to serialize a resource and then load it again, as the serialization creates an invalid resource.
For instance, a resource is serialized as follows:
Description
I was expecting an empty object to be serialized to empty dict instead gets serialized as null.
What I Did
The text was updated successfully, but these errors were encountered: