client-py
client-py copied to clipboard
Parsing drops extensions on primitives
trafficstars
Documenting a known issue: parsing FHIR resources with extensions on primitives silently drops the extensions. For example:
{
"resourceType": "Patient",
"gender": "male",
"_gender": {
"extension": [{
"url": "http://test-extension",
"valueString": "with extra data"
}]
}
}
Yes, thanks! Also to have it documented: the Swift-FHIR framework now solves this by providing custom classes/structs for primitives. Those can handle extensions (and ids), as opposed to the native strings/numbers used by the Python client.