evalopts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package evalopts provides EvaluateOption values for FHIRPath.

This package exists to isolate the options away from the core FHIRPath logic, since this will simplify discovery of evaluation-specific options.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedType  = errors.New("external constant type not supported")
	ErrExistingConstant = errors.New("constant already exists")
)

Functions

func EnvVariable

func EnvVariable(name string, value any) opts.EvaluateOption

EnvVariable returns an EvaluateOption that sets FHIRPath environment variables (e.g. %action).

The input must be one of:

  • A FHIRPath System type,
  • A FHIR Element or Resource type, or
  • A FHIRPath Collection, containing the above types.

If an EnvVariable is specified that already exists in the expression, then evaluation will yield an ErrExistingConstant error. If an EnvVariable is contains a type that is not one of the above valid types, then evaluation will yield an ErrUnsupportedType error.

func OverrideTime

func OverrideTime(t time.Time) opts.EvaluateOption

OverrideTime returns an EvaluateOption that can be used to override the time that will be used in FHIRPath expressions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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