type: fhirpath-functionfunction: toIntegercategory: Conversionsection: 5.5.3.1source: fhirpath/functions.json
FHIRPath Function: toInteger
No canonical section match found in index.md.
Summary
- Category: Conversion
- Section:
5.5.3.1 - Return Type:
Integer - Empty Input Result:
empty - Errors on Multiple Input:
true
Description
If the input collection contains a single item, this function will return a single integer if the item is an Integer, a String convertible to an integer, or a Boolean.
Arguments
Type Mapping
Example
'123'.toInteger() // returns 123