-
Install nodejs
- Binaries from https://nodejs.org/en/download/
OR
- Using conda (create new environment named "sushi" first):
conda create -n sushi conda activate sushi conda install -c conda-forge nodejs
-
Install sushi
npm install -g fsh-sushi
-
Optional: Install VSCode and VSCode extension for FSH
- vs code: https://code.visualstudio.com/
- fsh extension: https://fshschool.org/docs/vscode/
-
Clone this repository or run
sushi --init
and modify the generated sushi-config.yml to usefhirVersion: 5.0.0
.
Represent the following recommendation using FHIR resources:
Ivermectin soll nicht zur COVID-19-Behandlung verabreicht werden.
(read as: "COVID-19 Patienten sollen kein Ivermectin erhalten")
Recommendation #8 from the "S3-Leitlinie Empfehlungen zur stationären Therapie von Patienten mit COVID-19 – Living Guideline"
- Identify Population and Intervention parts
- Identify appropriate concepts in standardized vocabularies
- Create an instance of EvidenceVariable for the population part (look up the link to identify required fields)
- Create an instance of ActivityDefinition for the intervention part (look up the link to identify required fields)
- Link population to intervention (hint: look at
subject[x]
)
Create a file named exercise01.fsh
containing both instances.
Specify a simple guideline representation format by creating profiles of the following resources:
- Profile name:
Population
- Allow only
codeableConcepts
from SNOMED CT for characteristics- Disallow all other types
- Hint: bind value to
[codeableConcept].coding.system
to fix a system, e.g.:* jurisdiction.coding.system = {insert code system identifier}
- SNOMED CT's codesystem URI is http://snomed.info/sct
- Make
title
andcharacteristic.description
required
- Profile name:
InterventionMedicationAdministration
- Require
productCodeableConcept
and allow only SNOMED CT terms - Make
subjectCanonical
required and allow only your profile of EvidenceVariable forsubjectCanonical
- Hint: use the
Canonical()
function for referencing; lookuponly
keyword in the FSH reference
- Hint: use the
Create a file named exercise02.fsh
containing both profiles.
- Use your own profiles to represent the recommendation from exercise 1
- Create a file named
exercise03.fsh
containing both instances
- Make sure to use the latest FHIR release: 5.0.0 (configure in sushi-config.yml or use template from https://github.com/glichtner/digital-health-fsh-exercise )
- (Regularly) run sushi to validate your profiles & instances
- sushi treats separate .fsh files as if they are one single file, so make sure to not use the same name for different profiles/instances in different files
- Use the FHIR ShortHand reference for help:
- Further learning resources:
- FSH School: https://fshschool.org/
- FSH Quickstart: https://fshschool.org/quickstart/
- Courses: https://fshschool.org/courses/fsh-seminar/
- Online conversion tool: https://fshschool.org/FSHOnline/#/