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@latestThe linter can be run from the command line. The basic usage is:
fsh-lint --paths path/to/YourFile.fshAutomatic fixes are available for some rules as well, which can be applied with
the --fix flag:
fsh-lint --paths path/to/YourFile.fsh --fixBelow 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.