FHIR Chat · US Core R4 dependency error · IG creation

Stream: IG creation

Topic: US Core R4 dependency error


view this post on Zulip Rick Geimer (Feb 04 2019 at 19:39):

I'm trying to create a FHIR R4-based IG with a dependency on the current build of US Core, which is also on FHIR R4. However, I keep getting the following error:

Publishing Content Failed: Unknown Package hl7.fhir.us.core#4.0.0                (18.0084sec)
Stack Dump (for debugging):                                                      (18.0085sec)
java.lang.Exception: Unknown Package hl7.fhir.us.core#4.0.0
    at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:1527)

My ImplementationGuide resoruce has the following:

<dependsOn>
<uri value="http://hl7.org/fhir/us/core"></uri>
<packageId value="hl7.fhir.us.core"></packageId>
<version value="current"></version>
</dependsOn>

And ig.json has the following:

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

view this post on Zulip Grahame Grieve (Feb 04 2019 at 19:47):

it's on my list to look at tomorrow. SOmething very weird is going on...

view this post on Zulip Eric Haas (Feb 04 2019 at 21:42):

I'm getting something weird on the autobuild when I try to run US-Meds with dependency on US core version 1.1.0.

Here is the ig.json :

"dependencyList": [
{
"version": "1.1.0",
"location": "http://hl7.org/fhir/us/core",
"name": "uscore",
"source": "dependencies/uscore-vp"
}
],
works fine locally:

...
Load hl7.fhir.core-3.0.1 package from /Users/ehaas/.fhir/packages/hl7.fhir.core#3.0.1 (02.0417sec)
Load Terminology Cache from /Users/ehaas/Documents/FHIR/FHIR-ONC-Meds/generated_output/txCache (34.0623sec)
Connect to Terminology Server at http://tx.fhir.org                              (34.0708sec)
-tx cache miss: Connect to http://tx.fhir.org//r3
Load uscore (http://hl7.org/fhir/us/core) from hl7.fhir.us.core#1.1.0            (36.0177sec)
...

causes this builderror on the autobuild :-)

...
Load hl7.fhir.core-3.0.1 package from var/lib/.fhir/packages/hl7.fhir.core#3.0.1 (16.0645sec)
Load Terminology Cache from /scratch/ig-build-temp-IIC1JO/repo/generated_output/txCache (26.0057sec)
Connect to Terminology Server at http://tx.fhir.org                              (26.0059sec)
-tx cache miss: Connect to http://tx.fhir.org//r3
Publishing Content Failed: Unknown Package hl7.fhir.us.core#3.0.1                (26.0443sec)
                                                                                 (26.0443sec)
Use -? to get command line help                                                  (26.0443sec)
                                                                                 (26.0443sec)
Stack Dump (for debugging):                                                      (26.0443sec)
java.lang.Exception: Unknown Package hl7.fhir.us.core#3.0.1
    at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:1527)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromJson(Publisher.java:1146)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:949)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:524)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4933)
Exception in thread "main" java.lang.NullPointerException
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4943)
...

it is looking for version 3.0.1 of US core which is curious....

view this post on Zulip Eric Haas (Feb 04 2019 at 21:48):

looks like others getting this too... hl7au/au-fhir-childhealth has a similar error. @Josh Mandel ?

view this post on Zulip Josh Mandel (Feb 04 2019 at 21:49):

I'm sure what differences there are vs the local build. @Grahame Grieve may have ideas?

view this post on Zulip Rick Geimer (Feb 04 2019 at 22:06):

Not sure if this helps, but I just tried POSTing the ImplementationGuide resource in question to http://fhirtest.uhn.ca/baseR4/ImplementationGuide and got this error:

Invalid resource reference found at path[ImplementationGuide.dependsOn.uri] - Resource type is unknown or not supported on this server - http://hl7.org/fhir/us/core

So maybe this is related to the move of some of the core code to HAPI?

view this post on Zulip Rick Geimer (Feb 04 2019 at 22:20):

Was able to fix that HAPI error by changing ImplementationGuide.dependsOn.uri to http://hl7.org/fhir/us/core/ImplementationGuide/ig (i.e. the cannonical URL of the ImplementationGuide resource vs. the cannonical URL of the implementation guide...the fact that those two things are different is sure to confuse no one at all :)

But now I get the following error from the build:

Fetch Package history from http://hl7.org/fhir/us/core/ImplementationGuide/ig/package-list.json

So seems like the build wants the cannonical URL of the implementation guide, but the ImplementationGuide resource requires a cannonical reference to another ImplementationGuide resource.

view this post on Zulip Eric Haas (Feb 04 2019 at 22:58):

(deleted)

view this post on Zulip Grahame Grieve (Feb 05 2019 at 11:57):

I don't know why it's broken. It's first thing on my list for tomorrow once I'm back working (meetings all day today)

view this post on Zulip Rick Geimer (Feb 06 2019 at 21:24):

@Grahame Grieve Just wondering if you were able to dig into this at all yet.

view this post on Zulip Grahame Grieve (Feb 06 2019 at 21:30):

just made a commit around this right now

view this post on Zulip Brett Esler (Feb 06 2019 at 23:20):

happy new year @Grahame Grieve - is this resolved now? i am still having problems; any thing more than rebuilds needed?

view this post on Zulip Brett Esler (Feb 06 2019 at 23:22):

@Shovan Roy fyi

view this post on Zulip Shovan Roy (Feb 06 2019 at 23:27):

Thanks Brett. I had tried as well .. still the issue exists. Only difference I can notice is related to the error message:
Previously: Publishing Content Failed: Unknown Package hl7.fhir.au.base#3.0.1
Today: Publishing Content Failed: Unknown Package hl7.fhir.au.base#current

view this post on Zulip Grahame Grieve (Feb 06 2019 at 23:31):

just merged the fix (I think it's the fix) - give it 20min and try agin

view this post on Zulip Shovan Roy (Feb 06 2019 at 23:47):

thanks @Grahame Grieve it's working for me now..

view this post on Zulip Grahame Grieve (Feb 06 2019 at 23:52):

good

view this post on Zulip Grahame Grieve (Feb 06 2019 at 23:53):

it was a combination of two things: reporting the wrong version in the error message, and doing package resolution wrongly. The wrong error message pointed me off in the wrong direction

view this post on Zulip John Moehrke (Feb 07 2019 at 14:24):

how do I add a formal dependency on US-Core? Who has a good example IG?


Last updated: Apr 12 2022 at 19:14 UTC