Stream: IG creation
Topic: URL mismatches
Alexander Henket (Feb 15 2020 at 07:44):
The IG Publisher QA page lists a lot of these:
URL Mismatch http://nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.8.2.5--20171231000000 vs http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.40.2.8.2.5--20171231000000
This stems from the fact that my package contains contents from at least 3 sources:
- The profiles come from Nictiz and HL7 NL who have transferred the maintenance to us
- The value sets are defined in ART-DECOR and receive a canonical related to it
This does not constitute an error for us. I see at least 2 ways out of this:
- Add the error to the ignore list (not sure how but I think I saw that is an option)
- Allow an ig to specify which URL patterns it wants to recognize, so errors only occur on those that are not in that set which makes for better consistency checking than merely ignoring them.
Anyone else dealt with that?
Grahame Grieve (Feb 17 2020 at 01:05):
so most authors get the URL wrong accidently. And we discourage it because the consequence of the URL being wrong is that the the canonical URL won't resolve (or, at least, it won't resolve automatically)
Grahame Grieve (Feb 17 2020 at 01:07):
so the consequences is the the IG publisher nags you to get them right. If you really have a good reason to use a different URL, then you can enter it as a special exemption using the special-url parameter in the ig (see https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters)
Grahame Grieve (Feb 17 2020 at 01:07):
There's no support for doing that by pattern.
Grahame Grieve (Feb 17 2020 at 01:08):
But do you really want to do this? In principle, it's cleaner to have different IGs and update them directly, rather than publishing the content elsewhere
Alexander Henket (Feb 17 2020 at 17:47):
I understand it is cleaner, but in our situation there is no reasonable way to so. ValueSets have different origins than the profiles using them. Having a single guide for just ValueSets seems excessive.
Same for the HL7 NL stuff. These have been created with the URL they have, which does not change because we at Nictiz assumed maintenance. Having just these in a specific IG and then have the logical rest reside in a different guide is not going to help our implementers.
Our logical unit of work is "conformance resources associated with a zib/HCIM release". The canonicals they have due to history is not a relevant determining factor for us. That being said: we have a new chance to bring more harmony into the set when we move to R4 or higher.
Alexander Henket (Feb 17 2020 at 18:05):
@Grahame Grieve Maybe I'm doing this wrong, maybe not. I'm running the command:
specialurl1=http://decor.nictiz.nl/fhir/ specialurl2=http://fhir.nl/fhir/ JAVA -Xmx10G -jar $publisher -ig ig.ini -special-url "$specialurl1" -special-url "$specialurl2" $txoption $*
Output says:
Parameters: -ig ig.ini -special-url http://decor.nictiz.nl/fhir/ -special-url http://fhir.nl/fhir/ -tx n/a
Nonetheless I still get:
URL Mismatch http://nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.9--20160407000000 vs http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.9--20160407000000
Do I have a syntax issue?
Grahame Grieve (Feb 17 2020 at 18:23):
yes. it's a parameter in the ImplementationGuide resource, not on the command line
Alexander Henket (Feb 17 2020 at 18:55):
Ah... I added to the IG:
<parameter> <code value="special-url"/> <value value="http://decor.nictiz.nl/fhir/"/> </parameter> <parameter> <code value="special-url"/> <value value="http://fhir.nl/fhir/"/> </parameter>
But the errors stay present
Grahame Grieve (Feb 17 2020 at 23:21):
right. you need to add each url
Alexander Henket (Feb 18 2020 at 04:27):
What do you mean? It was my expectation that by adding these two parameters, the errors would go away but they don’t.
Grahame Grieve (Feb 18 2020 at 06:33):
you have to add each URL
Alexander Henket (Feb 18 2020 at 12:13):
Sure, but based on the parameters above you would at least not expect these, would you?
URL Mismatch http://nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.9--20160407000000 vs http://decor.nictiz.nl/fhir/ValueSet/2.16.840.1.113883.2.4.3.11.60.20.77.11.9--20160407000000 URL Mismatch http://nictiz.nl/fhir/StructureDefinition/nl-core-address vs http://fhir.nl/fhir/StructureDefinition/nl-core-address
Grahame Grieve (Feb 18 2020 at 19:59):
sure I would. You need to put the specific URL in:
<parameter> <code value="special-url"/> <value value="http://nictiz.nl/fhir/StructureDefinition/zib-FamilySituation-LivingAtHomeIndicator"/> </parameter>
Alexander Henket (Feb 19 2020 at 08:49):
O... dear... I'll script that part like I did for the rest. Thanks, I did not anticipate that from the documentation
Alexander Henket (Feb 19 2020 at 09:26):
Updated IG scripting... works now. Thanks
Grahame Grieve (Feb 19 2020 at 11:03):
do you want to clarify the documentation then?
Alexander Henket (Feb 19 2020 at 11:54):
Just did. I added to special-url ...Each canonical url must be listed in full as present on the resource; it is not possible to specify a pattern.
Maybe it is overstating the obvious, but it helps at least me.
Last updated: Apr 12 2022 at 19:14 UTC