invocation
An invocation refers to a named member or function call. It also includes special invocations: $this (current element), $index (current index), and $total (current aggregate total).
Examples
Identifier reference
"Measurement Period"
Function call
AgeInYears()
Current element in a where clause
(Conditions C where C.clinicalStatus ~ "Active" return $this)
Current index in a query
(Items I return $index)
Running aggregate total
from Items I aggregate Total starting 0: $total + I.value
EBNF
invocation : referentialIdentifier | function | '$this' | '$index' | '$total' ;