Documentation
¶
Overview ¶
Package funcs provides the implementations for all base FHIRPath functions. Provides a wrapper, and function table for compilation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FHIRPathFunc ¶
type FHIRPathFunc func(ctx *expr.Context, input system.Collection, args ...expr.Expression) (system.Collection, error)
FHIRPathFunc is the common abstraction for all function types supported by FHIRPath.
type Function ¶
type Function struct { Func FHIRPathFunc MinArity int MaxArity int IsTypeFunction bool }
Function contains the FHIRPathFunction, along with metadata
func ToFunction ¶
ToFunction takes in a function with any arguments and attempts to convert it to a functions.Function type. If the conversion is successful, the new function will assert the argument expressions resolve to the original argument types.
type FunctionTable ¶
FunctionTable is the data structure used to store valid FHIRPath functions, and maps their case-sensitive names.
func AddExperimentalFuncs ¶ added in v1.2.1
func AddExperimentalFuncs(table FunctionTable) FunctionTable
AddExperimentalFuncs adds experimental functions to the given function table and returns it. If a function already exists in the table, it is not overridden.