FHIR Chat · failed to load · shorthand

Stream: shorthand

Topic: failed to load


view this post on Zulip David Hay (Jan 06 2020 at 00:04):

I'm guessing the following message means SUSHI can't load the core resource types? (It just seemed to stop working). I'll try again later - but, is it possible to download all the core types to the local machine?

error: Failed to load hl7.fhir.core#3.0.1

view this post on Zulip Nick Freiter (Jan 06 2020 at 12:35):

SUSHI tries to load the packages that are specified in the dependencies section of the package.json file. So I think you must have

"dependencies": {
      "hl7.fhir.core": "3.0.1"
    }

in your package.json. SUSHI looks on packages.fhir.org for the packages, and I don't believe there is a package called "hl7.fhir.core" available there. The package that contains the latest core definitions is called "hl7.fhir.r4.core", so if you want the core FHIR definitions, you should change the dependencies section of your package.json to the following:

"dependencies": {
      "hl7.fhir.r4.core": "4.0.1"
    }

view this post on Zulip Chris Moesel (Jan 06 2020 at 16:17):

Note -- it's implied in Nick's post above, but I'll say it explicitly -- currently, SUSHI supports only FHIR 4.0.1. DSTU2 and STU3 are not yet supported.

view this post on Zulip David Hay (Jan 06 2020 at 17:20):

Thanks Nick - that worked. It's weird though, I could have sworn that it was working with a dependency of "hl7.fhir.core": "4.0.1" at one point... sigh. BTW - the wiki entry at https://github.com/HL7/fhir-shorthand/wiki/1.1-Configuration-File does have:

 "dependencies": {
    "hl7.fhir.core": "3.0.0",
    "hl7.fhir.us.core": "1.1.0"
 },

so you might want to change that...

BTW - have you thought about a cache for off line use? Low priority though...

view this post on Zulip Chris Moesel (Jan 06 2020 at 17:28):

Thanks, @David Hay -- I just updated the wiki.

@Nick Freiter -- I thought we were caching the libraries. Was a I wrong?

view this post on Zulip David Hay (Jan 06 2020 at 17:37):

Looks like you do actually - I turned off the network and it build just fine...

view this post on Zulip Nick Freiter (Jan 06 2020 at 17:38):

Yeah sorry for the confusion, so we are actually caching the definitions in your local FHIR cache, which is a folder called .fhir that is within your home directory. What SUSHI does is first look in <home>/.fhir/packages to see if a package is available locally, and if the package is there, SUSHI will load from there. Only if the package is not locally available will SUSHI download the definitions into this local cache. So as long as the definitions have been cached one time, and as long as you don't delete them from your FHIR cache, SUSHI can be used offline.

view this post on Zulip David Hay (Jan 06 2020 at 18:17):

cool!

view this post on Zulip David Hay (Jan 06 2020 at 21:54):

btw - the 'go here' link in the first paragraph on the wiki doesn't work: https://github.com/HL7/fhir-shorthand/wiki

view this post on Zulip Chris Moesel (Jan 06 2020 at 22:37):

It looks like it failed the last IG autobuild for some reason. Looks like maybe an issue w/ the builder itself:

Stack Dump (for debugging):                                                      (00:02.0157)
org.hl7.fhir.exceptions.FHIRException: Unable to execute 'onLoad' in script 'scripts/ant.xml' as the script is not trusted
    at org.hl7.fhir.igtools.templates.Template.runScriptTarget(Template.java:162)
    at org.hl7.fhir.igtools.templates.Template.onLoadEvent(Template.java:322)
    at org.hl7.fhir.igtools.publisher.Publisher.initializeFromIg(Publisher.java:1246)
    at org.hl7.fhir.igtools.publisher.Publisher.initialize(Publisher.java:1174)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:655)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6705)

view this post on Zulip Jose Costa Teixeira (Jan 06 2020 at 22:41):

this is a known issue.
https://chat.fhir.org/#narrow/stream/179252-IG-creation/topic/Publisher.20Error.3A.20Unable.20to.20execute.20'onLoad'.20in.20script.20'scrip


Last updated: Apr 12 2022 at 19:14 UTC