Documentation ¶
Overview ¶
Package compopts provides CompileOption values for FHIRPath.
This package exists to isolate the options away from the core FHIRPath logic, since this will simplify discovery of compile-specific options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrMultipleTransforms = errors.New("multiple transforms provided")
Functions ¶
func AddFunction ¶
func AddFunction(name string, fn any) opts.CompileOption
AddFunction creates a CompileOption that will register a custom FHIRPath function that can be called during evaluation with the given name.
If the function already exists, then compilation will return an error.
func Permissive
deprecated
func Permissive() opts.CompileOption
Permissive is an option that enables deprecated behavior in FHIRPath field navigation. This can be used as a temporary fix for FHIRpaths that have never been valid FHIRPaths, but have worked up until this point.
This option is marked Deprecated so that it nags users until the paths can be resolved.
Deprecated: Please update FHIRPaths whenever possible.
func Transform ¶
func Transform(v parser.VisitorTransform) opts.CompileOption
Transform creates a CompileOption that will set a transform to be called on each expression returned by the Visitor.
If there is already a Transform set, then compilation will return an error.
Types ¶
This section is empty.