codfsh extension READMETable of ContentsAbout The ProjectThis extension wraps SUSHI (FHIR Shorthand) and the HAPI Validator, providing comprehensive warning and error messages. It allows you to "run" your .fsh shorthand files to both generate FHIR .json files and validate them simultaneously. Release NotesSee CHANGELOG.md for all information regarding the (newest) releases. FeaturesKey features are the commands to run SUSHI and/or Hapi validator via Execute Sushi ShorthandExecute SUSHI Shorthand with
Execute Hapi ValidatorExecute the HAPI Validator with the Run HAPI Validator command to get line-based error or warning messages in the Problems tab of your terminal. Install missing FHIR Packages from your sushi-config.yamlIf you have Firely Terminal installed and a RequirementsThe SUSHI Shorthand and HAPI Validator must be installed on your system. These two FHIR Tools depend on other libraries and tools. Please follow the steps below to set up your Install Java JREJava JRE is needed to run the Hapi validator. Any newer version will be fine. The Hapi documentation refers to > JDK 17
Install dotnet SDKDotnet SDK >= 6.0 is needed to run firely.terminal
Install npmnpm is needed to run SUSHI.
Install Sushi ShorthandSUSHI is the interpreter for
Install firely.terminal (optional)The Firely Terminal will be used in the background to manage your
The path of the HAPI Validator needs to be specified in the settings of the extension. Download HAPI FHIR validatorHAPI FHIR Validator is used via its command line interface. To download the HAPI FHIR Validator, please refer to the official documentation Alternatively, you can download the
The path to the downloaded HAPI Validator jar-file needs to be specified in the settings of the extension. Extension SettingsTo work properly the following settings need to be set: Configuring Additional Parameters for HAPI ValidatorThe extension supports additional parameter configuration for HAPI Validator. These parameters influence the behavior of the validation process. You can set these parameters in two ways:
If a parameter is set in both the settings file and the configuration field, it will only be used once in the validation command. This gives you flexibility in configuring your validation parameters. For instance, you might want to set common parameters in the settings file and override or add specific ones via the configuration field for a particular workspace. To see all the available parameters for the HAPI Validator, please refer to the HAPI Validator documentation. |