Stream: fhir/infrastructure-wg
Topic: why is there only an extension for element.id type
Eric Haas (Oct 23 2018 at 17:36):
I tried to generate R4 python classes and got an exception for Exception: There is no class "None" for property "id" on "Element" in Element
here is the json Element.id SD for Element type:
"type": [ { "_code": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", "valueString": "string" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", "valueString": "xsd:string" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", "valueString": "xsd:string" } ] } } ]
Grahame Grieve (Oct 23 2018 at 20:37):
this is where the compile magic lives: Element.id doesn't have extensions
Eric Haas (Oct 24 2018 at 02:21):
So I can override it with a type == string?
Grahame Grieve (Oct 24 2018 at 06:30):
in your software? yes..... where string means a python string
Last updated: Apr 12 2022 at 19:14 UTC