SUSHI 1.3.1 includes the following enhancements and bug fixes:
- Improved support for R5
CodeableReferencetype (details below) - Don't export untyped
value[x]properties in instances (#760) - Fix bug that caused arrays to sometimes be exported as single items (#776)
- Fix handling of
onlyrules when profiles are applied to elements with existing slices (#769) - Fix typos in logging statements (#779)
Improved Support for R5 CodeableReference Type
SUSHI now provides improved support for the FHIR R5 CodeableReference type. Authors can now apply bindings directly to CodeableReferences and directly constrain types on CodeableReferences. In the following example, we constrain Substance.code, which is a CodeableReference(SubstanceDefinition):
Profile: LatexSubstance
Parent: Substance
// restrict code concept to LatexCodes value set
* code from LatexCodes
// restrict code reference from SubstanceDefinition to LatexSubstanceDefinition profile
* code only Reference(LatexSubstanceDefinition)
Note that in an Instance, authors cannot assign a CodeableReference directly, but rather, should assign one (or both) of its parts. For example:
Instance: MyLatexSubstanceExample
InstanceOf: LatexSubstance
* code.concept = SCT#1003754000 "Natural rubber latex (substance)"
* code.reference = Reference(MyNaturalLatexDefinitionExample)
Full Documentation
For additional documentation, refer to FSH School's SUSHI documentation, the FSH STU1 specification, and/or the FSH current build specification.
Install or Update
To install or update to this release, run the following command:
$ npm install -g fsh-sushiTo revert to a previous stable release, run a command like the following:
$ npm install -g fsh-sushi@1.3.0To check or confirm what version of SUSHI you have installed, you can run the following command:
$ sushi -v