How fhirlint/fhirlint works
fhirlint is a FHIR validation CLI and Go library that wraps the HL7 FHIR Validator, then adds developer-oriented analysis and reporting. The principal workflow takes resources through validation and presents findings in pipeline-friendly formats; documented branches include profile coverage, linting, suppression, baselines, audits, and editor support. The graph uses sampled source and the README; some capability links rely on README-level documentation because their command implementations were not sampled.
Main entry points: run.go HL7 validator · root.go CLI commands · coverage.go Coverage command · server.go Language server
Components 20
User Interfaces
- CLI commands
cmd/root.go - Go API
pkg/fhirlint/fhirlint.go - Language server
internal/lsp/server.go
Validation
- Resource input
internal/input/reader.go - HL7 validator
internal/validator/run.go - Validator JAR
internal/validator/jar.go
Analysis
- Custom rules
internal/rules/engine.go - Style lint
internal/lint/lint.go - Reference checks
internal/refcheck/refcheck.go - Coverage command
cmd/coverage.go - Profile coverage
internal/coverage/coverage.go - IG audit
internal/igaudit/igaudit.go - Config checks
internal/configcheck/check.go
Findings and Reports
- Suppressions
internal/suppress/suppress.go - Validation baselines
internal/baseline/baseline.go - Report formats
internal/reporter/group.go
FHIR Ecosystem
- FHIR package cache
internal/fhirpkg/fhirpkg.go - FHIR registries
internal/registry/registry.go - Java runtime
Other components
- Developer
Connections 23
- Developer → CLI commands: runs commands
README.md - Developer → Go API: calls API
pkg/fhirlint/fhirlint.go - Developer → Language server: uses editor
README.md - CLI commands → HL7 validator: validates resources
- CLI commands → Coverage command: requests coverage
README.md - Coverage command → Profile coverage: runs measurement
cmd/coverage.go - CLI commands → Config checks: checks configuration
README.md - CLI commands → IG audit: audits packages
README.md - Go API → HL7 validator: runs validation
pkg/fhirlint/fhirlint.go - Language server → HL7 validator: validates documents
internal/lsp/server.go - HL7 validator → Resource input: reads resources
- HL7 validator → Validator JAR: invokes JAR
README.md - HL7 validator → Java runtime: requires runtime
README.md - HL7 validator → Custom rules: applies rules
README.md - HL7 validator → Style lint: checks style
README.md - HL7 validator → Reference checks: checks references
README.md - HL7 validator → Suppressions: filters findings
README.md - HL7 validator → Validation baselines: compares baseline
README.md - HL7 validator → Report formats: formats findings
README.md - Coverage command → FHIR package cache: loads packages
cmd/coverage.go - Coverage command → FHIR registries: downloads packages
cmd/coverage.go - IG audit → FHIR registries: checks package versions
internal/igaudit/igaudit.go - Language server → Suppressions: offers suppressions
internal/lsp/server.go