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 ¶
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.