Stream: tooling
Topic: IG Publisher for derived profile
Shamil Nizamov (Aug 21 2020 at 15:48):
How to tell IG Publisher that my profile is derived from the other profile (not from http://hl7.org/fhir/StructureDefinition/...)? E.g., for the following:
"id": "profile-location",
"url": "http://test.ca/fhir/StructureDefinition/profile-location",
"baseDefinition": "http://fhir.nl/fhir/StructureDefinition/nl-core-location",
I’m always getting "Cannot find or generate snapshot for base definition http://fhir.nl/fhir/StructureDefinition/nl-core-location from http://test.ca/fhir/StructureDefinition/profile-location" even though the base structuredefinition-nl-core-location.json is also in the \src\resources folder.
Update: It seems I have to include the core (derived from) profile to the resource folder as well.
Grahame Grieve (Aug 21 2020 at 20:00):
or you have to nominate it's source in an IG dependency
Shamil Nizamov (Aug 23 2020 at 15:17):
Grahame Grieve said:
or you have to nominate it's source in an IG dependency
After number of attempts and manual edits of src-generated/*.json file (the <package> element is missed in the my IG but comma appears in *.json to include it, if I include the <package> then it appears as "package": " - with missing closing quote) I'm getting:
java.lang.Exception: IG Name must be a valid token (nictiz.fhir.nl.stu3.zib2017)
[java] at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:2716)
[java] at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:2184)
[java] at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1392)
[java] at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:674)
[java] at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7939)
Few more questions:
- why the rendered ValueSet does not show concepts? Do I need to create a CodeSystem as well? (Update: Yes, that was it, with the CodeSystem defined and included to IG xml the ValueSet is rendered as expected)?
- where do I put NamingSystems to be included to the rendered IG? Currently they are shown in the artifacts list but no associated html pages.
Shamil Nizamov (Aug 23 2020 at 15:17):
(deleted)
Shamil Nizamov (Aug 23 2020 at 15:19):
(deleted)
Lloyd McKenzie (Aug 23 2020 at 17:06):
@Shamil To clarify your last question - you're listing NamingSystems in your IG and they're showing up in the artifacts list, but when you click on the links to them, there's nothing there? Is that the behavior you're seeing? (Because it shouldn't be...)
Shamil Nizamov (Aug 23 2020 at 17:10):
Lloyd McKenzie said:
Shamil To clarify your last question - you're listing NamingSystems in your IG and they're showing up in the artifacts list, but when you click on the links to them, there's nothing there? Is that the behavior you're seeing? (Because it shouldn't be...)
Yes, it shows "File not found" empty page. Do I need to put NamingSystems into a folder other than ..\src\resources ?
And if I want to exclude the CodeSystem appearing in the rendered IG (html) how do I tell that?
Lloyd McKenzie (Aug 23 2020 at 18:04):
You can't exclude artifacts from being rendered. Are you seeing any messages in the console about being unable to find the NamingSystem instances?
Shamil Nizamov (Aug 26 2020 at 17:25):
Lloyd McKenzie said:
Are you seeing any messages in the console about being unable to find the NamingSystem instances?
The problem was with the naming convention. Once those were corrected everything started rendering OK.
Last updated: Apr 12 2022 at 19:14 UTC