A Style and lint checker tool for validating FHIR Shorthand (FSH) files.
Prebuilt binaries are available through GitHub Releases, or you can build from source if you have Go installed, with:
go install github.com/verily-src/fsh-lint@latest
The linter can be run from the command line. The basic usage is:
fsh-lint --paths path/to/YourFile.fsh
Automatic fixes are available for some rules as well, which can be applied with
the --fix
flag:
fsh-lint --paths path/to/YourFile.fsh --fix
Below is the complete list of rules by their rule-id grouped by their category.
- code-system-name-format
- code-system-name-matches-filename
- code-system-name-matches-id
- code-system-name-matches-title
- binding-strength-present
- profile-name-matches-filename
- profile-name-matches-id
- profile-name-matches-title
- profile-parent-not-retired
- value-set-name-format
- value-set-name-matches-filename
- value-set-name-matches-id
- value-set-name-matches-title
See CONTRIBUTING.md for more information.