Stream: conformance
Topic: 4.1.49-SNAPSHOT bug ElementDefinition.example
Patrick Werner (Jan 20 2020 at 13:11):
When using extensions in StructureDefinition.example i get:
Error @ StructureDefinition.snapshot.element[95].example[1].value.ofType(string) (line 5356, col43) : The extension http://hl7.org/fhir/StructureDefinition/iso21090-ADXP-houseNumber is not allowed to be used at this point (allowed = e:Address.line; this element is [[StructureDefinition.snapshot.element.example.value.ofType(string), BackboneElement.element.example.value, BackboneElement.element.example.valuestring, ElementDefinition.example.value, ElementDefinition.example.valuestring, Element.value, Element.valuestring, string])
Patrick Werner (Jan 20 2020 at 13:11):
to reproduce: java -jar org.hl7.fhir.validator.jar https://fhir.simplifier.net/r3/StructureDefinition/2fc591f5-ac56-4d97-82fa-ffd3f6c0c179 -version 3.0.2 -ig "hl7.fhir.core#3.0.1"
Patrick Werner (Jan 20 2020 at 14:43):
@Grahame Grieve
Patrick Werner (Jan 20 2020 at 16:03):
another bug?:
*FAILURE* validating https://fhir.simplifier.net/r3/StructureDefinition/4333bf81-210d-43bb-a5b3-7f27c3c9f66e: error:1 warn:0 info:0 Error @ StructureDefinition (line 1, col2) : The extension http://hl7.org/fhir/StructureDefinition/structuredefinition-wg is not allowed to be used at this point (allowed = e:*; this element is [[StructureDefinition])
Patrick Werner (Jan 20 2020 at 16:04):
to reproduce: java -jar org.hl7.fhir.validator.jar https://fhir.simplifier.net/r3/StructureDefinition/4333bf81-210d-43bb-a5b3-7f27c3c9f66e -version 3.0.2 -ig "hl7.fhir.core#3.0.1"
Patrick Werner (Jan 20 2020 at 16:59):
And a third bug (in the URI check for: "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"):
https://github.com/hapifhir/org.hl7.fhir.core/issues/123
Already added a fixing PR
Grahame Grieve (Jan 20 2020 at 19:48):
-
using extensions in ElementDefinition.example - fixed. Also in ElementDefinition.fixed[x] and ElementDefinition.pattern[x]. I can't think of anywhere else similar where extensions are allowed even against their context. (aside: I could check the ElementDefinition.path, but the rules there are complicated to resolve...)
-
extension context = *. I can't see that this is meaningfully documented anywhere, so I don't think it's legal. you should talk to firely about that
-
PR accepted
Patrick Werner (Jan 20 2020 at 21:18):
- :thumbs_up:
- :thumbs_up:
2: The context is actually:
<context> <type value="element"/> <expression value="Element"/> </context>
Patrick Werner (Jan 20 2020 at 21:19):
The Extension in question is from FHIR core: http://hl7.org/fhir/extension-structuredefinition-wg.xml.html
Grahame Grieve (Jan 20 2020 at 21:22):
if that's the context, then it wouldn't give that error message. I think you've got some internal versioning problem there
Grahame Grieve (Jan 20 2020 at 21:22):
I can't reproduce it
Patrick Werner (Jan 20 2020 at 22:11):
ok. Will investigate further.
Patrick Werner (Jan 20 2020 at 22:45):
Got it:http://hl7.org/fhir/STU3/extension-structuredefinition-wg.xml.html
Patrick Werner (Jan 20 2020 at 22:46):
<context value="*"/>
Its like that in STU3 3.0.2
Grahame Grieve (Jan 20 2020 at 23:02):
hmm
Grahame Grieve (Jan 20 2020 at 23:02):
I thought I had eliminated all of them
Patrick Werner (Jan 20 2020 at 23:04):
https://github.com/hapifhir/org.hl7.fhir.core/pull/125
Patrick Werner (Jan 20 2020 at 23:16):
ok you are doing it in the STU3 StrucDef conversion, more elegant than allowing * for every version.
Grahame Grieve (Jan 20 2020 at 23:20):
yes
Last updated: Apr 12 2022 at 19:14 UTC