FHIR Chat · SUSHI 2.2.2 · shorthand

Stream: shorthand

Topic: SUSHI 2.2.2


view this post on Zulip Chris Moesel (Dec 10 2021 at 21:07):

Announcing SUSHI 2.2.2, with the following bug fixes and minor improvements:

  • Use package.json canonical when a package does not have an IG resource
  • Log an error when a modifier extension is used in a non-modifier extension array (and vice-versa)
  • Mirror slice base extensions in slices to accommodate validator
  • Improve handling of package name case insensitivity
  • Fix handling of soft-indexing when used with indent rules
  • Fix package loading errors by no longer using HTTP HEAD method

To install or update to this release, run the following command:

$ npm install -g fsh-sushi

For more information, see the SUSHI 2.2.2 Release Notes.

view this post on Zulip John Moehrke (Dec 10 2021 at 22:00):

where is the documentation on how to use the new + logic? The release notes are not clear, except something drastic changed.

view this post on Zulip John Moehrke (Dec 10 2021 at 22:01):

I had this before... now it throws lots of warnings

* name[+].use = #usual
* name[=].family = "Smith"
* name[=].given = "John"
* name[+].use = #old
* name[=].family = "Schnidt"
* name[=].given[+] = "John"
* name[=].given[+] = "Jacob"
* name[=].given[+] = "Jingle"
* name[=].given[+] = "Heimer"
* name[=].period.end = "1960"
* name[+].use = #official
* name[=].family = "Smith"
* name[=].given[+] = "John"
* name[=].given[+] = "Jacob"
* name[=].given[+] = "Jingleheimer"
* name[=].period.start = "1960-01-01"
* name[+].use = #nickname
* name[=].family = "Smith"
* name[=].given = "Jack"

view this post on Zulip Chris Moesel (Dec 10 2021 at 22:45):

SUSHI 2.2.2's change to [+] should only be a bug fix and shouldn't represent any major changes. If the code you posted above causes lots of warnings, that was unintentional. I'll take a look at it.

view this post on Zulip Chris Moesel (Dec 10 2021 at 22:48):

Sigh. I see what you mean, @John Moehrke. That warning is wrong and should not be triggering there. You can safely ignore it. I'm sorry.

view this post on Zulip Chris Moesel (Dec 10 2021 at 22:49):

For others, if you see this warning and it doesn't seem right, you can ignore it:

warn The previous line(s) use path rules to establish a context using soft indexing (e.g., [+]), but that context is reset by the following rule before it is ever used. As a result, the previous path context will be ignored and its soft-indices will not be incremented

view this post on Zulip Chris Moesel (Dec 10 2021 at 23:10):

I think we'll be able to roll out another update to SUSHI on Monday that fixes this. Thanks for reporting it, @John Moehrke.

view this post on Zulip John Moehrke (Dec 10 2021 at 23:37):

:+1:

view this post on Zulip John Moehrke (Dec 11 2021 at 18:03):

note, that I can ignore them, but the IG builder refuses to ignore the warnings.

view this post on Zulip Chris Moesel (Dec 14 2021 at 00:47):

@John Moehrke - the brand new SUSHI 2.2.3 release fixes all those incorrect warnings. You shouldn't see those warnings anymore except in cases where they are actually true!

view this post on Zulip John Moehrke (Dec 14 2021 at 00:49):

Yeah

view this post on Zulip John Moehrke (Dec 14 2021 at 12:56):

so the indexing warnings went away.


Last updated: Apr 12 2022 at 19:14 UTC