Stream: IG creation
Topic: IG Publisher stripping extensions?
Sarah Gaunt (Nov 25 2020 at 19:45):
So I'm not sure if I'm going (more) crazy, but as far as I can tell, the IG publisher is stripping a couple of extensions out of my example file.
This is what is in Git:
<jurisdiction>
<extension url="http://hl7.org/fhir/us/ecr/StructureDefinition/rr-location-relevance-extension">
<valueCodeableConcept>
<coding>
<system value="urn:oid:2.16.840.1.114222.4.5.274"/>
<code value="RRVS5"/>
<display value="Patient home address"/>
</coding>
</valueCodeableConcept>
</extension>
<extension url="http://hl7.org/fhir/us/ecr/StructureDefinition/rr-routing-entity-organization-extension">
<valueReference>
<reference value="Organization/organization-rr-routing-entity-haw"/>
</valueReference>
</extension>
<extension url="http://hl7.org/fhir/us/ecr/StructureDefinition/rr-responsible-agency-organization-extension">
<valueReference>
<reference value="Organization/organization-rr-responsible-agency-haw"/>
</valueReference>
</extension>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
<display value="United States of America"/>
</coding>
</jurisdiction>
This is what is in the CI build published IG (https://build.fhir.org/ig/HL7/case-reporting/PlanDefinition-plandefinition-rr-relevant-reportable-condition.xml.html):
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
<display value="United States of America"/>
</coding>
<text value="United States of America"/>
</jurisdiction>
This example hasn't changed since the IG was published a year ago, and that published file still has the extensions: http://hl7.org/fhir/us/ecr/PlanDefinition-plandefinition-rr-relevant-reportable-condition.xml.html
Is there something wrong with the extensions that wasn't checked by the publisher a year ago? Is there something wrong with the publisher?
Grahame Grieve (Nov 25 2020 at 20:18):
I expect that the answer is that the IG is configured to overwrite the jurisdiction with what is in the IG itself
Sarah Gaunt (Nov 25 2020 at 20:56):
I'm thinking that a PlanDefinition.jurisdiction isn't always going to be the same as the IG. Like it could be a smaller jurisdiction, such as a PHA or state or county. Just because the whole IG is USA doesn't mean that you don't want to create PlanDefinitions for particular states or PHAs.
Can it not overwrite the extensions? It means it is impossible to have extensions on that element. (Well, it's possible to specify them, but impossible to demonstrate them!)
Grahame Grieve (Nov 25 2020 at 21:07):
well, if you ask it to overwrite, then it will overwrite...
Sarah Gaunt (Nov 25 2020 at 21:17):
Oh, I understand. Sorry - read that wrong - thought you said the IG Publisher was doing it, not the IG. It's some setting somewhere, isn't it. I vaguely remember... Thanks, will try to fix.
Sarah Gaunt (Nov 25 2020 at 21:27):
Actually I think I'm thinking of some other setting where you used to be able to overwrite version by setting something an old settings file.
How would I turn off the overwrite behaviour in the IG? Remove the jurisdiction from the IG itself? (If so, isn't this wrong, because I want the IG to be USA, I just don't want the PlanDefinition to be the whole USA).
Sarah Gaunt (Nov 25 2020 at 21:32):
I just found this stream: https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/jurisdiction.20unmatch
I am definitely NOT adding that parameter to my IG, so that's not the reason.
Should I try adding that and setting to false?:
<parameter>
<code value="apply-jurisdiction"/>
<value value="false"/>
</parameter>
Grahame Grieve (Nov 25 2020 at 21:52):
I'll have a look shortly
Sarah Gaunt (Nov 25 2020 at 21:56):
Tested and it has fixed that issue. I guess the default for that parameter is true.
Of course, now I have 75 new errors because I need to set the jurisdiction everywhere else, but that is easily fixable.
Last updated: Apr 12 2022 at 19:14 UTC