Stream: shorthand
Topic: Error in generated SD
David Hay (Jan 09 2020 at 19:49):
The following element in the snapshot of a generated StructureDefinition has an invalid type.code (should be 'string' I think) - at least the HAPI $validate operation protests!)
"type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], ```Invalid type in SD
David Hay (Jan 09 2020 at 19:55):
BTW - I did change the version to 4.0.0 as the public R4 servers seem to be down so I used my local copy of hapi that supports 4.0.0 ...
Chris Moesel (Jan 09 2020 at 22:27):
This is actually a FHIR 4.0.1 thing. In the FHIR 4.0.1 technical correction, those special fhirpath-based types were introduced for primitives and Element.id/Element.url. I believe Grahame calls it "compiler magic". If you look at the JSON of the core resource that is being profiled, you'll probably see the same code (as that's where we copied it from).
If HAPI is only on 4.0.0, then it probably wouldn't expect these 4.0.1 changes.
David Hay (Jan 09 2020 at 23:23):
Ah - I did wonder about that!
Last updated: Apr 12 2022 at 19:14 UTC