FHIR Chat · Publisher broken when using uscore dependency? · implementers

Stream: implementers

Topic: Publisher broken when using uscore dependency?


view this post on Zulip Chris Moesel (Mar 16 2018 at 17:31):

I am trying to publish an IG (based on FHIR 3.0.1) that declares a dependency on uscore in the ig.json:

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

Using the 3.0.1 publisher jar, it works fine. If I use the current build publisher jar, however, it crashes:

Load uscore (http://hl7.org/fhir/us/core/1.0.1) from http://hl7.org/fhir/us/core/1.0.1 (11.0686sec)
Version mismatch. This IG is version 3.2.0, while the IG 'uscore' is from version 3.1.0. Will try to run anyway) (12.0035sec)
Exception in thread "main" java.lang.Error: Not the right type for ElementDefinition.binding.valueSet[x]: Reference
    at org.hl7.fhir.r4.model.ElementDefinition$ElementDefinitionBindingComponent.setValueSet(ElementDefinition.java:3466)
    at org.hl7.fhir.r4.formats.JsonParser.parseElementDefinitionElementDefinitionBindingComponentProperties(JsonParser.java:1739)
    at org.hl7.fhir.r4.formats.JsonParser.parseElementDefinitionElementDefinitionBindingComponent(JsonParser.java:1723)
    at org.hl7.fhir.r4.formats.JsonParser.parseElementDefinitionProperties(JsonParser.java:1526)
    at org.hl7.fhir.r4.formats.JsonParser.parseElementDefinition(JsonParser.java:1363)
    at org.hl7.fhir.r4.formats.JsonParser.parseStructureDefinitionStructureDefinitionSnapshotComponentProperties(JsonParser.java:20735)
    at org.hl7.fhir.r4.formats.JsonParser.parseStructureDefinitionStructureDefinitionSnapshotComponent(JsonParser.java:20726)
    at org.hl7.fhir.r4.formats.JsonParser.parseStructureDefinitionProperties(JsonParser.java:20675)
    at org.hl7.fhir.r4.formats.JsonParser.parseStructureDefinition(JsonParser.java:20543)
    at org.hl7.fhir.r4.formats.JsonParser.parseResource(JsonParser.java:24564)
    at org.hl7.fhir.r4.formats.JsonParserBase.parse(JsonParserBase.java:90)
    at org.hl7.fhir.igtools.publisher.Publisher.loadIg(Publisher.java:1151)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:869)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:352)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4125)

I've tried also adding a "source" parameter to the dependency object, but that doesn't seem to fix it.

If I remove the uscore dependency, however, the publisher jar doesn't crash and I get my published IG. Any tips or is this a flat-out bug?

view this post on Zulip Eric Haas (Mar 16 2018 at 18:09):

To make a long story short - here is a good definitions.json.zip. I had to update US-Core to run on latest ig-pub.but not ready to be added to CI build since refactored the folders and still in the middle of ballot changes.

definitions.json.zip

view this post on Zulip Chris Moesel (Mar 17 2018 at 03:51):

Thanks, @Eric Haas -- that seems to have done the trick!

view this post on Zulip Richard Townley-O'Neill (Mar 22 2018 at 01:50):

So the publisher only runs cleanly when dependencyList in the ig.json file is empty.
Is there another work-around?

view this post on Zulip Richard Townley-O'Neill (Mar 22 2018 at 04:45):

Cross posted to implementers: https://chat.fhir.org/#narrow/stream/IG.20creation/topic/Problem.20with.20dependencyList

view this post on Zulip Chris Moesel (Mar 22 2018 at 05:42):

Previously I fixed it like this:

view this post on Zulip Chris Moesel (Mar 22 2018 at 05:44):

"dependencyList": [
    {
      "name": "USCore",
      "location": "http://hl7.org/fhir/us/core/1.0.1",
      "source": "uscore"
    }
  ],

And having a uscore folder in the root of my IG source project, containing the definitions.json.zip that Eric posted earlier in this thread.

view this post on Zulip Chris Moesel (Mar 22 2018 at 05:46):

That worked the last few days, but apparently does not anymore. See: https://chat.fhir.org/#narrow/stream/committers/subject/IG.20Publisher.20Error/near/136483

view this post on Zulip Chris Moesel (Mar 22 2018 at 13:35):

@Richard Townley-O'Neill -- see the end of the thread linked above for the solution.

view this post on Zulip Richard Townley-O'Neill (Mar 22 2018 at 23:42):

Thanks


Last updated: Apr 12 2022 at 19:14 UTC