FHIR Chat · Inferno/Simplifier issue · inferno

Stream: inferno

Topic: Inferno/Simplifier issue


view this post on Zulip Elliot Silver (Feb 15 2022 at 05:31):

I started a thread over on #conformance about issues loading my IG package into Inferno. It appears that Inferno is choking on the fact that I don't have the optional .index.json file in my package. If anyone has thoughts on how to address, your comments on the other thread would be appreciated.
@Stephen MacVicar

view this post on Zulip Stephen MacVicar (Feb 15 2022 at 12:55):

The validator currently requires that IG packages contain .index.json: https://github.com/inferno-framework/fhir-validator-wrapper/blob/master/rest-api.md#load-a-custom-ig

view this post on Zulip Grahame Grieve (Feb 15 2022 at 13:17):

you should generate them on install. The validator can do that for you if you want - it will aut-generate it when it first loads the package

view this post on Zulip Elliot Silver (Feb 15 2022 at 17:44):

@Stephen MacVicar , is this something you'd consider addressing, or do I need to figure out how to get Simplifier to include an .index.json file? (While we're at it, is there any reason that you only accept files with the name "package.tgz" and not any tgz file; or why you don't accept tar files? MacOS appears to unzip the files automatically on download.)
(@Ward Weistra)

view this post on Zulip Stephen MacVicar (Feb 15 2022 at 17:59):

I think we would consider addressing this, but I'd also expect it to be pretty low priority.

While we're at it, is there any reason that you only accept files with the name "package.tgz" and not any tgz file; or why you don't accept tar files?

The answer to those questions is probably that we didn't have an immediate or anticipated need for it and it would take effort to implement. I wasn't aware that we only accepted files named package.tgz. You can put any .tgz files in the igs folder and they will be loaded at startup: https://github.com/inferno-framework/fhir-validator-wrapper/tree/master/igs

view this post on Zulip Elliot Silver (Feb 15 2022 at 19:03):

Stephen MacVicar said:

You can put any .tgz files in the igs folder and they will be loaded at startup: https://github.com/inferno-framework/fhir-validator-wrapper/tree/master/igs

Will this bypass the .index.json issue as well?

view this post on Zulip Stephen MacVicar (Feb 15 2022 at 19:46):

I'm not sure. It looks like we don't use .index.json to load an IG, but we use it to tell the front end what profiles are associated with an IG.

So maybe it's possible to work around the issue by populating meta.profile on the resource you're validating rather than selecting the profile from the dropdown.

view this post on Zulip Ward Weistra (Feb 17 2022 at 11:30):

There are many published packages not containing an .index.json, like the Canadian, English, German, etc. It would be great if Inferno would support these.


Last updated: Apr 12 2022 at 19:14 UTC