Stream: IG creation
Topic: Problem with inherited extension
David Pyke (Jun 20 2019 at 17:32):
eLTSS inherits US Core R4 but is getting an error with an extension on Patient:
The link 'Patient-eltss-definitions.html#Patient.extension.extension.valueCoding:valueCoding' for "valueCoding" cannot be resolved (valid targets: [Patient.name .<snip lots of elements> Patient.name.given])
How do I fix this?
David Pyke (Jun 20 2019 at 17:33):
https://build.fhir.org/ig/HL7/eLTSS/branches/master/qa.html for your review if you love to see things in qa pages
Grahame Grieve (Jun 20 2019 at 21:03):
that's because you have a problem in the differential.
Grahame Grieve (Jun 20 2019 at 21:03):
you need to have explicit parents for valueCoding
Grahame Grieve (Jun 20 2019 at 21:04):
<differential> <element id="Patient.extension.extension.valueCoding:valueCoding"> <path value="Patient.extension.extension.valueCoding"/> <sliceName value="valueCoding"/> </element>
Grahame Grieve (Jun 20 2019 at 21:04):
you need to have an element definition for each of the elements in the sequence
Grahame Grieve (Jun 20 2019 at 21:05):
<differential> <element id="Patient"> <path value="Patient"/> </element> <element id="Patient.extension"> <path value="Patient.extension"/> </element> <element id="Patient.extension.extension.valueCoding:valueCoding"> <path value="Patient.extension.extension.valueCoding"/> <sliceName value="valueCoding"/> </element>
Grahame Grieve (Jun 20 2019 at 21:05):
I know the doco says you don't but I haven't figured out how to get the snap shot generator to work correctly
David Pyke (Jun 21 2019 at 01:10):
but that's not my extension, it's USCore's. Do I have to declare it in mine as well?
David Pyke (Jun 21 2019 at 12:18):
Oh, I get it. Teach me to use a tool (forge) and not check it's output.
Grahame Grieve (Jun 21 2019 at 12:36):
np. it's supposed to work....
Last updated: Apr 12 2022 at 19:14 UTC