Stream: shorthand
Topic: Dependency 'hl7.fhir.us.core' has no id
Jean Duteau (Apr 25 2020 at 20:16):
I get this strange warning/info message when I'm running my IG build:
Dependency 'hl7.fhir.us.core' has no id, so can't be referred to in markdown in the IG (00:30.0255)
Is this something I'm doing wrong in my package.json?
Grahame Grieve (Apr 25 2020 at 20:18):
i don't think it's a shorthand question. are you using the new IG driven approach or the old json config approach?
Jean Duteau (Apr 25 2020 at 20:19):
i'm using whatever SUSHI generates for me, so I'm assuming the new IG driven approach
Grahame Grieve (Apr 25 2020 at 20:23):
so the dependency will look something like this:
"dependsOn": [ { "uri": "http://hl7.org/fhir/ImplementationGuide/uscore", "version" : "3.1.0" } ]
Grahame Grieve (Apr 25 2020 at 20:23):
what that message is saying is that it could like this:
Grahame Grieve (Apr 25 2020 at 20:23):
"dependsOn": [ { "id" : "uscore", "uri": "http://hl7.org/fhir/ImplementationGuide/uscore", "version" : "3.1.0" } ]
Jean Duteau (Apr 25 2020 at 20:23):
"dependsOn": [
{
"uri": "http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core",
"packageId": "hl7.fhir.us.core",
"version": "3.1.0"
}
],
Jean Duteau (Apr 25 2020 at 20:24):
so SUSHI isn't generating an ID in the dependsOn section of IG json
Grahame Grieve (Apr 25 2020 at 20:24):
and if it does, then you can use the id uscore
in your markdown and it will automatically refer to the right version of us-core
Grahame Grieve (Apr 25 2020 at 20:24):
if you don't want to do that, then you can ignore that note
Jean Duteau (Apr 25 2020 at 20:24):
okay. thx
Chris Moesel (Apr 26 2020 at 03:13):
@Grahame Grieve -- a few questions based on this:
- You said to expect this:
"uri": "http://hl7.org/fhir/ImplementationGuide/uscore"
but SUSHI found this URL in US Core's actual IG resource:http://hl7.org/fhir/us/core/ImplementationGuide/hl7.fhir.us.core"
. I just want to confirm we're not missing something here. - You said it could have
"id" : "uscore"
... is the id arbitrary (and only used for that markdown feature) or is there somewhere in the IG source we should be extracting that? (Note that US Core's IG JSON id ishl7.fhir.us.core
).
Grahame Grieve (Apr 26 2020 at 03:56):
it's arbitrary
Grahame Grieve (Apr 26 2020 at 03:56):
the full URL is correct
Last updated: Apr 12 2022 at 19:14 UTC