beda-software / fhir-py

FHIR Client for python
MIT License
168 stars 31 forks source link

Pickling not supported #77

Closed BSVogler closed 1 month ago

BSVogler commented 3 years ago

When saving resources with pickle and then instantiating again you will get this message:

KeyError: 'Can not change resourceType after instantiating resource. You must re-instantiate resource using Client.resource method

Dumping resources to a file and later loading them again should be supported. If pickle cannot be supported maybe providing another format translation e.g. to json can be used?

ruscoder commented 1 month ago

Fixed in 2.0.0