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