beda-software / fhir-py

FHIR Client for python
MIT License
174 stars 32 forks source link

Recursively remove all null values #42

Closed ruscoder closed 4 years ago

ruscoder commented 4 years ago

Example:

p = client.resource('Patient', managingOrganization=[...])

p['managingOrganization'] = None
p.save()

should remove managingOrganization key for POST/PUT query. For PATCH - TBD, but it hasn't implemented yet

ruscoder commented 4 years ago

May be still actual for other FHIR servers, but Aidbox fixed it on their side https://github.com/Aidbox/Issues/issues/230

ruscoder commented 4 years ago

I'm closing the issue for a while because there is no answer for PATCH.