--- type: "fhirpath-function" title: "FHIRPath Function: max" function: "max" category: "Aggregates" section: "7.4" source: "fhirpath/functions.json" --- # FHIRPath Function: max _No canonical section match found in index.md._ ## Summary - **Category**: Aggregates - **Section**: `7.4` - **Return Type**: `Integer | Long | Decimal | Quantity | Date | DateTime | Time | String` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `false` ## Description Returns the maximum element in the input collection. ## Arguments - none ## Type Mapping - n/a ## Example ```fhirpath (2 | 4 | 8 | 6).max() // 8 ```