Stream: IG creation
Topic: Strange error in IG XML introduced when running the publishe
Nagesh Bashyam (Jul 28 2020 at 18:05):
Hello
With the latest publisher, I am getting a strange error within the implementation guide resource.
Error Log: http://build.fhir.org/ig/HL7/FHIR-ONC-Meds/branches/master/qa.html
Project Link: https://github.com/HL7/FHIR-ONC-Meds/
All files are checked in.
Here is the text of the error. The references are not there in the ig-new.xml file, however when i run publisher these things get added to the ig-new.xml file and then the errors are reported.
ERROR REPORTED:
ImplementationGuide/hl7.fhir.us.meds: ImplementationGuide.extension[0] error The extension http://hl7.org/fhir/StructureDefinition/igpublisher-folder-resource is unknown, and not allowed here
EXTENSION ADDED To ig-new.xml when i run publisher:
<ImplementationGuide xmlns="http://hl7.org/fhir">
<id value="ig"/>
<extension url="http://hl7.org/fhir/StructureDefinition/igpublisher-folder-resource">
<valueString value="/Users/nbashyam/git/FHIR-ONC-Meds/source/resources"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/igpublisher-folder-resource">
<valueString value="/Users/nbashyam/git/FHIR-ONC-Meds/source/examples"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/igpublisher-folder-pages">
<valueString value="/Users/nbashyam/git/FHIR-ONC-Meds/framework"/>
</extension>
<extension url="http://hl7.org/fhir/StructureDefinition/igpublisher-folder-pages">
<valueString value="/Users/nbashyam/git/FHIR-ONC-Meds/source/pages"/>
</extension>
Looking to solve the mystery..
John Moehrke (Jul 28 2020 at 18:07):
There has been signficant change in the way the IG build gets instructions. almost all of ig.ini is now in the IG xml; as is many other things. See https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
Grahame Grieve (Jul 28 2020 at 21:09):
well, you have a very strange set up. ig-new.xml is produced to help you migrate to the new ig setup, instead of using the template. And it looks like you have kind of done that, but not properly. The code is still finding and running based on ig.json, so still producing ig-new.xml. In which case, ig-new.xml should not be loaded into the IG - it should be ignored.
I'm not sure what to do to fix because I'm not sure what you're trying to do here
Eric Haas (Jul 28 2020 at 21:49):
@dragon I just cloned the repro and ran it and here is your problem in the ig.json file:
{
"source": "ig-new.xml", <---- replace this with ig.xml
"sct-edition": "http://snomed.info/sct/731000124108",
"license": "CC0-1.0",
"publisher": "HL7 International - Pharmacy Work Group",
"gen-examples": "false",
...
Nagesh Bashyam (Jul 28 2020 at 23:12):
Thanks Grahame and Eric , Fixed it per the suggestion and it is working.
Last updated: Apr 12 2022 at 19:14 UTC