This is Clinical Quality Language STU2.1 (1.2 Published w/ Errata) in it's permanent home (it will always be available at this URL). It has been superseded by 1.4.
For a full list of available versions, see the Directory of published versions .
Clinical Decision Support Work Group | Maturity Level: 4 | Ballot Status: STU 2.1 |
This appendix provides detailed mappings for each FHIRPath function in terms of the ELM output produced.
X.indexOf(Y) === PositionOf(Y, X) // Note carefully the order of arguments here, it’s the opposite of IndexOf
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
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>)