FHIR Chat · US Core R4 as dependency · IG creation

Stream: IG creation

Topic: US Core R4 as dependency


view this post on Zulip Chris Moesel (May 13 2019 at 22:20):

What's the proper way to list US Core R4 as a dependency in ig.json? I've found multiple answers on Zulip and it looks like the approach has changed over time -- but it's not clear where it landed. I've tried every variation I found here but can't figure it out. Do I have to also build US Core R4 locally for it to work? Or should it work without having to actually build US Core R4 on my machine?

view this post on Zulip Eric Haas (May 13 2019 at 23:30):

Here is what I use for the latest current R4, and it works

"dependencyList": [
{
"package": "hl7.fhir.us.core",
"version": "current",
"name": "uscore",
"location": "http://hl7.org/fhir/us/core"
}

view this post on Zulip David Pyke (May 14 2019 at 00:42):

I get
"Load core (http://hl7.org/fhir/us/core) from hl7.fhir.us.core#current (35.0568sec)
[java] Version mismatch. This IG is version 4.0.0, while the IG 'core' is from version 3.0.1 (will try to run anyway) (35.0570sec)"

view this post on Zulip Lloyd McKenzie (May 14 2019 at 00:47):

us.core is the STU3 version. You need to point to us.core.r4 for the R4 stuff

view this post on Zulip David Pyke (May 14 2019 at 01:01):

Like this?
<dependsOn>
<uri value="http://hl7.org/fhir/us/core"/>
<packageId value="hl7.fhir.us.core.r4" />
<version value="current" />
</dependsOn>
No change?

view this post on Zulip Lloyd McKenzie (May 14 2019 at 01:06):

y

view this post on Zulip David Pyke (May 14 2019 at 01:10):

THen there must be something wrong because the generated ig-new shows:
<dependsOn id="core">
<uri value="http://hl7.org/fhir/us/core"/>
<packageId value="hl7.fhir.us.core"/>
<version value="current"/>
</dependsOn>

view this post on Zulip Lloyd McKenzie (May 14 2019 at 01:13):

sigh. y. Need a change to the template - which I've made in one of my IGs. Just need to dig and figure out which...

view this post on Zulip David Pyke (May 14 2019 at 01:14):

Wonderful, I've been driving myself mad with this since Thursday.

view this post on Zulip Lloyd McKenzie (May 14 2019 at 02:13):

File provided via email. (Can't check it in yet because I'm hitting other build issues.)

view this post on Zulip Grahame Grieve (May 14 2019 at 04:03):

what's this about?

view this post on Zulip Lloyd McKenzie (May 14 2019 at 04:11):

My template was inferring the NPM url with an algorithm that worked most of the time, but not in this case. (Because at the time I wrote it, there was no way to pass in the package id.) Needed to fix the transform.

view this post on Zulip Chris Moesel (May 14 2019 at 20:49):

Bingo! This did the trick:

"dependencyList": [
    {
      "package": "hl7.fhir.us.core.r4",
      "version": "current",
      "name": "uscore",
      "location": "http://hl7.org/fhir/us/core"
    }
  ],

Thanks!

view this post on Zulip Rick Geimer (May 30 2019 at 00:36):

I still can't get this to work. No matter what when I generate an IG the links keep pointing back to the STU3 version of US Core.

Can someone please post the exact values that go in the ImplementationGuide resource and in ig.json that actually work for US Core R4?

view this post on Zulip David Pyke (May 30 2019 at 00:46):

In my ig resource I have:
<dependsOn>
<uri value="http://hl7.org/fhir/us/core/"/>
<packageId value="hl7.fhir.us.core.r4"/>
<version value="current"/>
</dependsOn>

view this post on Zulip David Pyke (May 30 2019 at 00:46):

In my ig.json I have
"dependencyList": [
{
"name" : "ig",
"version" : "current",
"package" : "hl7.fhir.us.core.r4"}
],

view this post on Zulip natus (Jun 25 2019 at 15:17):

hi
to build a r4 based IG , i used the existing template and had to modified the source code of the ig. details there: https://github.com/HL7/cdmh/issues/1


Last updated: Apr 12 2022 at 19:14 UTC