client-py icon indicating copy to clipboard operation
client-py copied to clipboard

Parsing drops extensions on primitives

Open jmandel opened this issue 8 years ago • 6 comments
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"
    }]
  }
}

jmandel avatar Mar 22 '17 17:03 jmandel

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.

p2 avatar Mar 22 '17 17:03 p2