compopts

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: 3 Imported by: 0

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

View Source
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

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.

Jump to

Keyboard shortcuts

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