Skip to content

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.

License

Notifications You must be signed in to change notification settings

gematik/fhir-profiles-erpchrg

Repository files navigation

E-Rezept-Workflow FHIR-Profiles for ChargeItem

Table of Contents

About

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.

Getting Started

  1. Clone this project to your local machine.
  2. Run the install script once.
  3. Work on teh FHIR Profiles build and validate them with the given script.

Installing

To install the necessary tools run

sudo ./install_fhir_tools.sh

This will install

After successfull installation run:

./validate.sh -i

See ../val_out/<current_directory_name> for results.

Usage

Run script validate.sh to

  1. Run sushi FHIR Files generator
  2. Validate all files in the ./Resources folder
  3. Get a html output file for each FHIR file in ../val_out/<current_directory_name>

You can use following script options

Install dependencies from sushi-config.yaml

-i installs dependencies with firely.terminal from ./<foldername>/sushi-config.yaml file

./validate.sh -i

Sort resulting html files into severity folders

-s sorts resulting html files in folders by the severities of the findings. Categories are: error, warning, information and unknown

./validate.sh -s

Change default folder

-d foldername sets foldername for validation. Default is: ./Resources

validate.sh -d ./Testresources

Process single file

-f filename sets filename for single validation.

validate.sh -f ./Resources/fsh-generated/resources/myProfile.json

Work with specific version of Hapi Validator

-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