X.aggregate(<iteration>, <init>) === Aggregate(<iteration>, <init>)
This page is part of the Clinical Quality Language Specification (v1.5.2: Normative - Normative) based on FHIR R4. This is the current published version. For a full list of available versions, 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>)