fhirvalidate

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 12 Imported by: 2

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

func Validate(msg proto.Message) error

Validate a FHIR msg against the rules defined in the FHIR spec. See package description for what is included.

func ValidatePrimitives

func ValidatePrimitives(msg proto.Message) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL