Group
Statements
Executable declarations within a CQL library: expression definitions, context switches, and function definitions.
contextDefinition
Changes the current evaluation context. Subsequent expression definitions are implicitly scoped to the specified context (e.g., Patient, Practitioner).
expressionDefinition
Defines a named expression. The optional access modifier controls visibility (public is the default). The expression is evaluated lazily when referenced.
fluentModifier
An optional modifier on a function definition that marks the function as fluent, allowing it to be called using dot-notation as a method on its first argument. For example, a fluent function F(x) can be called as x.F().
functionDefinition
Defines a named function with typed parameters and an optional return type. Functions may be fluent (usable via dot notation), external (implemented by the host environment), or defined by a CQL expression body.
functionBody
The implementation of a function definition. Contains a single expression whose value is returned when the function is invoked. Functions whose body is the keyword external are implemented by the host environment.
operandDefinition
Declares a single parameter of a function definition, consisting of a name and its type. Operand names are available as local identifiers within the function body.