FHIR Chat · Problem with inherited extension · IG creation

Stream: IG creation

Topic: Problem with inherited extension


view this post on Zulip 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?

view this post on Zulip 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

view this post on Zulip Grahame Grieve (Jun 20 2019 at 21:03):

that's because you have a problem in the differential.

view this post on Zulip Grahame Grieve (Jun 20 2019 at 21:03):

you need to have explicit parents for valueCoding

view this post on Zulip 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>

view this post on Zulip Grahame Grieve (Jun 20 2019 at 21:04):

you need to have an element definition for each of the elements in the sequence

view this post on Zulip 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>

view this post on Zulip 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

view this post on Zulip 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?

view this post on Zulip 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.

view this post on Zulip Grahame Grieve (Jun 21 2019 at 12:36):

np. it's supposed to work....


Last updated: Apr 12 2022 at 19:14 UTC