Stream: IG creation
Topic: Substitute for "id" element?
Cees de Jonge (Dec 04 2019 at 16:28):
Running IG-publisher with the sample-ig template on our resources, we get errors like:
java.io.FileNotFoundException: /Users/nlv09090/Projects/ILS/IG-publisher/kanweg/sample-ig/temp/pages/StructureDefinition-common/resource/general/observation-v1/ILSObservation.xml (No such file or directory)
This is probably caused by the canonical URL's we are using which is in this case:
https://www.fhir.philips.com/4.0/StructureDefinition/common/resource/general/observation-v1/ILSObservation
and maybe because we do not specify the "id" element in our StructureDefinitions. The error disappears if we specify the "id".
Could it be IG-publisher uses the "id" element if present for file-naming and in case it is not present it takes the part of the canonical URL after the ResourceType?
In our case this is "common/resource/general/observation-v1/ILSObservation", which is what is mentioned in the error-message.
I do not remember we had this problem with older versions of IG-publisher.
We have our resources in a tree-like structure, which is reflected in our canonical URL. Is this something which should be possible or should be discouraged?
Lloyd McKenzie (Dec 04 2019 at 16:42):
Those URLs aren't valid FHIR endpoints, though canonical URLs aren't required to be. To be a FHIR endpoint, the only thing that's allowed to follow StructureDefinition is the id - no hierarchy permitted.
Grahame Grieve (Dec 04 2019 at 16:55):
that's a case where you'll need ids
Cees de Jonge (Dec 04 2019 at 19:46):
Thanks Lloyd for explaining, think we should reconsider our naming,
Last updated: Apr 12 2022 at 19:14 UTC