API Reference
API Reference
The GoFHIR Validator Go library lives under a single import path:
import "github.com/gofhir/validator/pkg/validator"The library follows the functional options pattern for configuration. You create a Validator once with all the options you need, then call Validate or ValidateJSON as many times as required.
Thread safety – After creation, the
Validator is safe for concurrent use. You can call Validate from multiple goroutines without synchronization. All internal caches and indexes are built during construction and are read-only at validation time.Packages
| Package | Import | Purpose |
|---|---|---|
validator | pkg/validator | Main entry point – constructor, options, Validate method |
issue | pkg/issue | Validation results, issues, severity and code constants |
terminology | pkg/terminology | Provider interface for external terminology servers |
registry | pkg/registry | ProfileResolver interface for on-demand SD loading |
Explore
Last updated on