X.aggregate(<iteration>, <init>) === Aggregate(<iteration>, <init>)
Clinical Quality Language Specification, published by Clinical Decision Support WG. This is not an authorized publication; it is the continuous build for version 1.5.2). This version is based on the current content of https://github.com/HL7/cql/ and changes regularly. See the Directory of published versions
Clinical Decision Support Work Group | Maturity Level: N | Standards Status: Normative |
This appendix provides detailed mappings for each FHIRPath function in terms of the ELM output produced.
X.as(T) === X as T
Note that the type argument T is expected to be a literal string and must resolve to the name of a type.
X.conformsTo(Y) === FHIRSupport.ConformsTo(Y)
Note that this mapping relies on an external library, FHIRSupport to provide conformance validation checking.
X.indexOf(Y) === PositionOf(Y, X) // Note carefully the order of arguments here, it’s the opposite of IndexOf
X.is(T) === X is T
Note that the argument T is expected to be a literal string and must resolve to the name of a type.
X.lastIndexOf(Y) === LastPositionOf(Y, X) // Note carefully the order of arguments here, it’s the opposite of lastIndexOf.
X.ofType(T) === X $this where $this is T return $this as T
Note that the argument T is required to be a literal string, and is interpreted as the name of a type. For non-named-types, type specifier syntax applies.
X.repeat(<element>) === Repeat(X, <element>)
The type of X.repeat(<element>) is inferred as the type of:
X.select(<element>).select(<element>)