How can I make a resource or an element be easily serializable? I'm populating a non-FHIR dictionary with FHIR elements and I'd like to then json.dump it.
What I Did
At the moment I'm doing json.loads(element.json()) to make it easily serializable, but that's not very efficient.
Description
How can I make a resource or an element be easily serializable? I'm populating a non-FHIR dictionary with FHIR elements and I'd like to then
json.dump
it.What I Did
At the moment I'm doing
json.loads(element.json())
to make it easily serializable, but that's not very efficient.