FHIR Chat · FSH crashing? · shorthand

Stream: shorthand

Topic: FSH crashing?


view this post on Zulip Grahame Grieve (Nov 17 2020 at 01:19):

I'm running https://github.com/openhie/covid-ig/tree/es-working from the Ig publisher, and getting this output:

view this post on Zulip Grahame Grieve (Nov 17 2020 at 01:19):

Run Sushi on C:\work\org.hl7.fhir.igs\covid-ig                                   (00:00.0012)
Sushi: info  Running SUSHI v1.0.1 (implements FHIR Shorthand specification v1.0.0) (00:00.0467)
Sushi: info  Arguments:                                                          (00:00.0467)
Sushi: info    --out C:\work\org.hl7.fhir.igs\covid-ig                           (00:00.0468)
Sushi: info    C:\work\org.hl7.fhir.igs\covid-ig                                 (00:00.0468)
Sushi: info  Using configuration file: C:\work\org.hl7.fhir.igs\covid-ig\sushi-config.yaml (00:00.0471)
Sushi: info  Importing FSH text...                                               (00:00.0477)
Sushi: info  Preprocessed 14 documents with 24 aliases.                          (00:00.0672)
Sushi: info  Imported 17 definitions and 58 instances.                           (00:00.0700)
Sushi: info  Checking local cache for hl7.fhir.us.core#current...                (00:00.0700)
Sushi: info  Found hl7.fhir.us.core#current in local cache.                      (00:00.0736)
Sushi: info  Checking local cache for hl7.fhir.uv.sdc#current...                 (00:00.0737)
Sushi: info  Found hl7.fhir.uv.sdc#current in local cache.                       (00:00.0769)
Sushi: info  Checking local cache for hl7.fhir.r4.core#4.0.1...                  (00:00.0769)
Sushi: info  Found hl7.fhir.r4.core#4.0.1 in local cache.                        (00:01.0278)
Sushi: info  Loaded package hl7.fhir.r4.core#4.0.1                               (00:01.0279)
Sushi: info  Loaded package hl7.fhir.us.core#current                             (00:06.0059)
Sushi: info  Loaded package hl7.fhir.uv.sdc#current                              (00:06.0061)
Sushi: info  Converting FSH to FHIR resources...                                 (00:06.0069)
Sushi: info  Converted 2 FHIR StructureDefinitions.                              (00:06.0194)
Sushi: info  Converted 11 FHIR ValueSets.                                        (00:06.0260)
Sushi: info  Converted 4 FHIR CodeSystems.                                       (00:06.0276)
Sushi: error Structure Definition http://openhie.github.io/covid-19/StructureDefinition/WhoCrComposition is missing snapshot. Snapshot is required for import. (00:06.0278)
Sushi: error Structure Definition http://openhie.github.io/covid-19/StructureDefinition/WhoCrPatient is missing snapshot. Snapshot is required for import. (00:07.0490)
Sushi: info  Converted 58 FHIR instances.                                        (00:15.0157)
Sushi: info  Exporting FHIR resources as JSON...                                 (00:15.0157)

view this post on Zulip Grahame Grieve (Nov 17 2020 at 01:19):

nothing further....

view this post on Zulip Grahame Grieve (Nov 17 2020 at 01:20):

I've waited a loooooong time and got nothing more

view this post on Zulip Chris Moesel (Nov 17 2020 at 02:53):

It's working fine for me:

Run Sushi on /Users/cmoesel/dev/HL7/covid-ig                                     (00:00.0037)
Sushi: npx: installed 111 in 7.295s                                              (00:07.0441)
Sushi: info  Running SUSHI v1.0.1 (implements FHIR Shorthand specification v1.0.0) (00:07.0772)
Sushi: info  Arguments:                                                          (00:07.0773)
Sushi: info    --out /Users/cmoesel/dev/HL7/covid-ig                             (00:07.0773)
Sushi: info    /Users/cmoesel/dev/HL7/covid-ig                                   (00:07.0773)
Sushi: info  Using configuration file: /Users/cmoesel/dev/HL7/covid-ig/sushi-config.yaml (00:07.0793)
Sushi: info  Importing FSH text...                                               (00:07.0800)
Sushi: info  Preprocessed 14 documents with 24 aliases.                          (00:08.0005)
Sushi: info  Imported 17 definitions and 58 instances.                           (00:08.0033)
Sushi: info  Checking local cache for hl7.fhir.us.core#current...                (00:08.0034)
Sushi: info  Found hl7.fhir.us.core#current in local cache.                      (00:08.0116)
Sushi: info  Checking local cache for hl7.fhir.uv.sdc#current...                 (00:08.0117)
Sushi: info  Found hl7.fhir.uv.sdc#current in local cache.                       (00:08.0178)
Sushi: info  Checking local cache for hl7.fhir.r4.core#4.0.1...                  (00:08.0179)
Sushi: info  Found hl7.fhir.r4.core#4.0.1 in local cache.                        (00:09.0588)
Sushi: info  Loaded package hl7.fhir.r4.core#4.0.1                               (00:09.0588)
Sushi: info  Loaded package hl7.fhir.uv.sdc#current                              (00:11.0372)
Sushi: info  Loaded package hl7.fhir.us.core#current                             (00:11.0412)
Sushi: info  Converting FSH to FHIR resources...                                 (00:11.0419)
Sushi: info  Converted 2 FHIR StructureDefinitions.                              (00:11.0529)
Sushi: info  Converted 11 FHIR ValueSets.                                        (00:11.0574)
Sushi: info  Converted 4 FHIR CodeSystems.                                       (00:11.0586)
Sushi: info  Converted 58 FHIR instances.                                        (00:21.0107)
Sushi: info  Exporting FHIR resources as JSON...                                 (00:21.0108)
Sushi: info  Exported 75 FHIR resources as JSON.                                 (00:21.0148)
Sushi: info  Assembling Implementation Guide sources...                          (00:21.0149)
Sushi: info  Generated ImplementationGuide-who.cr.covid19.json                   (00:21.0159)
Sushi: info  Assembled Implementation Guide sources; ready for IG Publisher.     (00:21.0160)
Sushi:                                                                           (00:21.0161)
Sushi: ╔════════════════════════ SUSHI RESULTS ══════════════════════════╗       (00:21.0161)
Sushi: ║ ╭──────────┬────────────┬───────────┬─────────────┬───────────╮ ║       (00:21.0162)
Sushi: ║ │ Profiles │ Extensions │ ValueSets │ CodeSystems │ Instances │ ║       (00:21.0162)
Sushi: ║ ├──────────┼────────────┼───────────┼─────────────┼───────────┤ ║       (00:21.0163)
Sushi: ║ │    2     │     0      │    11     │      4      │    58     │ ║       (00:21.0164)
Sushi: ║ ╰──────────┴────────────┴───────────┴─────────────┴───────────╯ ║       (00:21.0164)
Sushi: ║                                                                 ║       (00:21.0165)
Sushi: ╠═════════════════════════════════════════════════════════════════╣       (00:21.0166)
Sushi: ║ You earned a PhD in Ichthyology!       0 Errors      0 Warnings ║       (00:21.0167)
Sushi: ╚═════════════════════════════════════════════════════════════════╝       (00:21.0192)

view this post on Zulip Chris Moesel (Nov 17 2020 at 02:56):

Note that you're getting two errors that I'm not getting:

Sushi: error Structure Definition http://openhie.github.io/covid-19/StructureDefinition/WhoCrComposition is missing snapshot. Snapshot is required for import. (00:06.0278)
Sushi: error Structure Definition http://openhie.github.io/covid-19/StructureDefinition/WhoCrPatient is missing snapshot. Snapshot is required for import. (00:07.0490)

I'm not sure what that's about. Are you sure you've pulled the latest and your local repo is clean (e.g., no extra files that shouldn't be there)? It looks almost like you or someone copied some SUSHI outputs into other input/* folders.

view this post on Zulip Elliot Silver (Nov 17 2020 at 02:57):

Ah, @Grahame Grieve tried to run sushi 0.15 on input/fsh first, I wonder if that messed it up?

view this post on Zulip Grahame Grieve (Nov 17 2020 at 04:17):

yes it was

view this post on Zulip Chris Moesel (Nov 17 2020 at 06:48):

OK. And that is exactly why we decided to move away from that approach (outputting generated SUSHI files directly into input/*). It's always nice to have that decision confirmed. ;-)


Last updated: Apr 12 2022 at 19:14 UTC