SUSHI 0.12.2 contains the following enhancements and bug fixes:
- Adds support for overriding and/or assigning sub-paths of inlined instances (details below)
- Fixes bug that listed inline instances in the generated ImplementationGuide JSON (#366)
Overriding and/or Assigning Sub-paths of Inlined Instances
When an inlined instance is assigned to an element of type Resource, previous versions of SUSHI did not allow authors to access sub-paths of that inlined instance (since SUSHI still understood the type as being Resource). SUSHI 0.12.2 now allows authors to access any valid sub-path of the inlined instance. For example:
Instance: MyBundle
InstanceOf: Bundle
* type = #transaction
* entry[0].resource = MyPatient
* entry[0].resource.name.given = "Bob" // <-- this is now allowed in SUSHI 0.12.2
In addition, new resources can be fully inlined (without separate Instance definitions) by setting the resourceType. For example:
Instance: MyBundle
InstanceOf: Bundle
* type = #transaction
* entry[0].resource.resourceType = "Patient" // <-- this is now allowed in SUSHI 0.12.2
* entry[0].resource.name.given = "Bob"
Full Documentation
For additional documentation, refer to the FSH language reference.
Install or Update
To install or update to the latest version, run the following command:
$ npm install -g fsh-sushi