FHIR Chat · ImplementationGuide: ImplementationGuide instance misses url · shorthand

Stream: shorthand

Topic: ImplementationGuide: ImplementationGuide instance misses url


view this post on Zulip Patrick Werner (Oct 29 2021 at 13:43):

If i have a dependency to a package, created with Simplifier - but without an ImplementationGuide sushi throws this message:

Failed to add de.gkvsv.eRezeptAbrechnungsdaten:1.1.0-rc to ImplementationGuide instance because SUSHI could not find the IG URL in the dependency IG. To specify the IG URL in your sushi-config.yaml, use the dependency details format:

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:23):

If a simplifier project has not a a (Implementation)Guide the package doesn't contain a ImplentationGuide.

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:24):

fyi @Ward Weistra @Alexander Zautke

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:24):

@Chris Moesel why does sushi need the IG resource/url?

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:32):

ah i assume this is caused because sushi needs ImplementationGuide.dependsOn to get parent IG (packages)

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:34):

whereas Simplifier/Java Validator relies on the package.json

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:37):

as an ImplementationGuide is optional inside a FHIR package, and the package.json is mandatory, i think relying on the package.json is more secure

view this post on Zulip Patrick Werner (Oct 29 2021 at 14:38):

fyi @Matthijs van der Wielen

view this post on Zulip Nick Freiter (Nov 01 2021 at 17:31):

SUSHI needs to somehow obtain a canonical URI for the package, so that it can populate IG.dependsOn. In this case, we have hit this issue before, and SUSHI does provide an extended syntax for specifying the URI manually. See the example snippet from a sushi-config.yaml file below:

dependencies:
  de.gkvsv.eRezeptAbrechnungsdaten:
    version: 1.1.0-rc
    uri: https://simplifier.net/packages/de.gkvsv.eRezeptAbrechnungsdaten

Doing that should remove the error. That being said, it makes sense that we could try to automatically infer the URI from the package.json, so I will add that as a feature to our backlog.

view this post on Zulip Chris Moesel (Nov 01 2021 at 17:44):

Right. To clarify further, ImplementationGuide.dependsOn.uri is a required field (e.g., 1..1) -- so it's not so much that SUSHI needs it, but moreso that the ImplementationGuide resource requires it.

view this post on Zulip Alexander Zautke (Nov 01 2021 at 17:45):

In many cases packages generated based on a Simplifier project won't have an IG resource in it, therefore having a fallback to the package.json would be awesome


Last updated: Apr 12 2022 at 19:14 UTC