Skip to content

Built-in Rules

FSH Lint comes with a comprehensive set of 25+ built-in rules organized into categories:

Rules that must pass before other rules can run. These validate critical requirements.

Rules that ensure FHIR specification compliance and prevent errors

Rules that enforce consistent naming and formatting patterns

Rules that detect potentially problematic patterns in FSH code

Rules that ensure proper resource metadata and documentation

  • Error - Must be fixed; prevents compilation or causes runtime issues
  • Warning - Should be fixed; best practice violation or potential issue
  • Info - Informational; suggestions for improvement
  • Hint - Optional; minor style suggestions

See the Rule Configuration guide for details on:

  • Enabling/disabling rules
  • Changing rule severity
  • Rule-specific options
  • Creating custom rules

Total built-in rules: 25

By severity:

  • Error: Most critical rules
  • Warning: Best practice violations
  • Info: Documentation suggestions