type: fhirpath-functionssource: fhirpath/functions.json
FHIRPath Functions
Existence
- section:
5.1 - empty() -
5.1.1 - exists() -
5.1.2 - all() -
5.1.3 - allTrue() -
5.1.4 - anyTrue() -
5.1.5 - allFalse() -
5.1.6 - anyFalse() -
5.1.7 - subsetOf() -
5.1.8 - supersetOf() -
5.1.9 - count() -
5.1.10 - distinct() -
5.1.11 - isDistinct() -
5.1.12
Filtering and projection
- section:
5.2 - where() -
5.2.1 - select() -
5.2.2 - sort() -
5.2.4 - repeat() -
5.2.5 - repeatAll() -
5.2.6 - ofType() -
5.2.7 - coalesce() -
5.2.8
Subsetting
- section:
5.3 - single() -
5.3.2 - first() -
5.3.3 - last() -
5.3.4 - tail() -
5.3.5 - skip() -
5.3.6 - take() -
5.3.7 - intersect() -
5.3.8 - exclude() -
5.3.9
Combining
Conversion
- section:
5.5 - iif() -
5.5.1 - toBoolean() -
5.5.2.1 - convertsToBoolean() -
5.5.2.2 - toInteger() -
5.5.3.1 - convertsToInteger() -
5.5.3.2 - toLong() -
5.5.3.3 - convertsToLong() -
5.5.3.4 - toDate() -
5.5.4.2 - convertsToDate() -
5.5.4.3 - toDateTime() -
5.5.5.1 - convertsToDateTime() -
5.5.5.2 - toDecimal() -
5.5.6.1 - convertsToDecimal() -
5.5.6.2 - toQuantity() -
5.5.7.1 - convertsToQuantity() -
5.5.7.2 - toString() -
5.5.8.1 - convertsToString() -
5.5.8.2 - toTime() -
5.5.9.1 - convertsToTime() -
5.5.9.2
String Manipulation
- section:
5.6 - indexOf() -
5.6.1 - lastIndexOf() -
5.6.2 - substring() -
5.6.3 - startsWith() -
5.6.4 - endsWith() -
5.6.5 - contains() -
5.6.6 - upper() -
5.6.7 - lower() -
5.6.8 - replace() -
5.6.9 - matches() -
5.6.10 - matchesFull() -
5.6.11 - replaceMatches() -
5.6.12 - length() -
5.6.13 - toChars() -
5.6.14
Additional String Functions
- section:
5.7 - encode() -
5.7.1 - decode() -
5.7.2 - escape() -
5.7.3 - unescape() -
5.7.4 - trim() -
5.7.5 - split() -
5.7.6 - join() -
5.7.7
Math
- section:
5.8 - abs() -
5.8.1 - ceiling() -
5.8.2 - exp() -
5.8.3 - floor() -
5.8.4 - ln() -
5.8.5 - log() -
5.8.6 - power() -
5.8.7 - round() -
5.8.8 - sqrt() -
5.8.9 - truncate() -
5.8.10
Tree navigation
- section:
5.9 - children() -
5.9.1 - descendants() -
5.9.2
Utility functions
- section:
5.10 - trace() -
5.10.1 - pathname() -
5.10.2 - now() -
5.10.3.1 - timeOfDay() -
5.10.3.2 - today() -
5.10.3.3 - defineVariable() -
5.10.4 - lowBoundary() -
5.10.5 - highBoundary() -
5.10.6 - precision() -
5.10.7 - yearOf() -
5.10.8.1 - monthOf() -
5.10.8.2 - dayOf() -
5.10.8.3 - hourOf() -
5.10.8.4 - minuteOf() -
5.10.8.5 - secondOf() -
5.10.8.6 - millisecondOf() -
5.10.8.7 - timezoneOffsetOf() -
5.10.8.8 - dateOf() -
5.10.8.9 - timeOf() -
5.10.8.10
Date and Time Interval Functions
- section:
5.11 - duration() -
5.11.1 - difference() -
5.11.2
Comparison
- section:
6.2 - comparable() -
6.2.5
Types
Boolean Logic
- section:
6.5 - not() -
6.5.3
Aggregates
- section:
7 - aggregate() -
7.1 - sum() -
7.2 - min() -
7.3 - max() -
7.4 - avg() -
7.5
Reflection
- section:
10.2 - type() -
10.2.2