This Repo contains the fsh files to the published E-Rezept charge item files on https://simplifier.net/erezept-abrechnungsinformationen and a script to validate them.
- Clone this project to your local machine.
- Run the install script once.
- Work on teh FHIR Profiles build and validate them with the given script.
To install the necessary tools run
sudo ./install_fhir_tools.sh
This will install
- Java SDK 17 JRE
- Sushi from https://github.com/FHIR/sushi
- dotnet-sdk-3.1
- firely.terminal
- yq yaml-parser
After successfull installation run:
./validate.sh -i
See ../val_out/<current_directory_name>
for results.
Run script validate.sh
to
- Run sushi FHIR Files generator
- Validate all files in the
./Resources
folder - Get a html output file for each FHIR file in
../val_out/<current_directory_name>
You can use following script options
-i
installs dependencies with firely.terminal from ./<foldername>/sushi-config.yaml
file
./validate.sh -i
-s
sorts resulting html files in folders by the severities of the findings.
Categories are: error
, warning
, information
and unknown
./validate.sh -s
-d foldername
sets foldername for validation. Default is: ./Resources
validate.sh -d ./Testresources
-f filename
sets filename for single validation.
validate.sh -f ./Resources/fsh-generated/resources/myProfile.json
-v version
defines a version od the used Hapi Validator. If the specified version of the hapi validator is not present it will be downloaded to ~/.fhir/validators/
validate.sh -v 5.6.70