Stream: IG creation
Topic: how does the ig-pub know where to look for files?
Eric Haas (Jan 15 2020 at 20:15):
in ig.json there was a way to specify the path to the resources etc. with the templates is not obvious to be me how to do the same. I added paths to the config.json but that does not seem to work. I am getting a can't find it error right now:...
Publishing Content Failed: Unable to find resource file patient-on-usprofile-spreadsheet.xml (00:34.0469) (00:34.0469) Use -? to get command line help (00:34.0470) (00:34.0470) Stack Dump (for debugging): (00:34.0471) java.lang.Exception: Unable to find resource file patient-on-usprofile-spreadsheet.xml at org.hl7.fhir.igtools.publisher.SimpleFetcher.fetchResourceFile(SimpleFetcher.java:138) at org.hl7.fhir.igtools.publisher.Publisher.loadSpreadsheet(Publisher.java:3104) at org.hl7.fhir.igtools.publisher.Publisher.loadSpreadsheets(Publisher.java:3095) at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2602) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:770) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:661) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6704) (venv37) Erics-Air-2:IG-Template4 ehaas$
Eric Haas (Jan 15 2020 at 20:18):
and yes the ig.xml has the spreadsheet extensions, and the ini file points to the ig.xml file in the same directory as the spreadsheet file.
Jose Costa Teixeira (Jan 15 2020 at 20:22):
Yes, you can do it in the ig itself
Jose Costa Teixeira (Jan 15 2020 at 20:23):
ig.definition.parameter:
<parameter> <code value="path-resource"/> <value value="input/capabilities"/> </parameter>
Jose Costa Teixeira (Jan 15 2020 at 20:24):
or you can change the onload.xslt which does just that
Eric Haas (Jan 15 2020 at 20:33):
I see they are listed here: https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
Eric Haas (Jan 15 2020 at 20:37):
I think we need to list the default values in that table as well
Grahame Grieve (Jan 15 2020 at 20:37):
that table does list default values.
Grahame Grieve (Jan 15 2020 at 20:37):
already
Grahame Grieve (Jan 15 2020 at 20:38):
what do you think is not present?
Eric Haas (Jan 15 2020 at 20:38):
Eric Haas (Jan 15 2020 at 20:39):
I don't see the defaults for any of these: assuming they are all true.
Grahame Grieve (Jan 15 2020 at 20:40):
the all default to false. I had thought that was obvious. do you want to add that to the table?
Eric Haas (Jan 15 2020 at 20:51):
I was hoping for true but I will add default = false for the booleans so it is obvious...
so the defaults on the wiki page should be carried over to the confluence page right?
e.g.
"pages" : [ // optional; default = "pages" "[pagesFolder]"
Eric Haas (Jan 15 2020 at 21:12):
OK so I updated with explicit defaults:
these two I am unsure what the default behvior is :
- validation
- generate
And there are few paths that I did not add defaults to...
- path-liquid
- path-expansion-params
- path-suppressed-warnings
since I did see them and don't know if there is one.
Lloyd McKenzie (Jan 15 2020 at 22:53):
@Eric Haas Why aren't you using the standard template and throwing your resources in one of the standard folders?
Eric Haas (Jan 16 2020 at 01:52):
My igs are not rendering properly. So I need to get that straightened out.
I’m trying to understand the whole stack from the ground up so I can hack it.
Be able to customize and make changes that can lead to more informed prs.
Sent from my iPhone
Lloyd McKenzie (Jan 16 2020 at 01:54):
If you mean hacking so you can submit a pull request to change the base template, that's cool. But generally - at least for HL7-published IGs, we shouldn't be customizing the templates on a per-IG basis. (Aside from specific templates for accelerators or for different product families that change a bit of the branding.)
Last updated: Apr 12 2022 at 19:14 UTC