The FHIR StructureDefinition
resources used in the CEDAR API are generated from FHIR Shorthand (FSH) source files. Instead of changing an extension by editing the corresponding file in the ../resources
directory, make changes to the files in input/fsh
and follow the instructions below to update the generated files.
gem install jekyll
npm install -g fsh-sushi
cd fsh
./_updatePublisher.sh
./_genonce.sh
Note that you can also just run the initial Sushi compile via sushi .
at development time. ./_genonce.sh
is needed to generate the complete FHIR StructureDefinition
resources that include the snapshot
in addition to the differential
created by Sushi.
cp output/StructureDefinition-extension-*.json ../resources