Stream: smart
Topic: JSON representation of primitive elements (validation)
Stephen Whitney (Oct 28 2020 at 01:01):
https://www.hl7.org/fhir/json.html#primitive We're using SOF python model classes to create a Bundle resource with MedicationRequest entries. The MedicationRequest resources we're trying to add as an entry are leveraging the concept of prepending an underscore to the "intent" element name because there's no data to populate from the backend. The open hapi FHIR server validates the "_intent" field with an extension but neither SOF fhirclient nor fhir.resources will validate "_intent". Has anyone else experienced this issue or have a suggestion?
Eric Haas (Oct 28 2020 at 01:43):
better to ask on the #python channel, but yes that is one of the biggest outstanding issues with the python model. ( I tried and failed with my my intermediate python skills to create a PR to fix.) If I need a primitive extension I am left with no other option but convert to a dict at that point. :-(
Stephen Whitney (Oct 28 2020 at 01:58):
Thanks @Eric Haas
Stephen Whitney (Oct 28 2020 at 13:23):
@Jason Teeple
Last updated: Apr 12 2022 at 19:14 UTC