Documentation ¶
Overview ¶
Package fhirvalidate performs additional validations on FHIR protos according to rules in the FHIR spec.
This includes regexes for string-based types, bounds checking for integers, required fields and enforcing reference typings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
Validate a FHIR msg against the rules defined in the FHIR spec. See package description for what is included.
func ValidatePrimitives ¶
ValidatePrimitives on the msg according to the FHIR spec. This includes regexes for string-based types and bounds checking for integers.
func ValidatePrimitivesWithErrorReporter ¶
func ValidatePrimitivesWithErrorReporter(msg proto.Message, er errorreporter.ErrorReporter) error
ValidatePrimitivesWithErrorReporter on the msg according to the FHIR spec. This includes regexes for string-based types and bounds checking for integers. Validation errors will be reported according to provided error reporter.
func ValidateWithErrorReporter ¶
func ValidateWithErrorReporter(msg proto.Message, er errorreporter.ErrorReporter) error
ValidateWithErrorReporter validates a FHIR msg against the rules defined in the FHIR spec, validation errors will be reported according to provided error reporter. See package description for what is included.
Types ¶
This section is empty.