Skip to content
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

PackageImportPurpose
validatorpkg/validatorMain entry point – constructor, options, Validate method
issuepkg/issueValidation results, issues, severity and code constants
terminologypkg/terminologyProvider interface for external terminology servers
registrypkg/registryProfileResolver interface for on-demand SD loading

Explore

Last updated on