View raw Markdown
type: fhirpath-functionfunction: toBooleancategory: Conversionsection: 5.5.2.1source: fhirpath/functions.json

FHIRPath Function: toBoolean

No canonical section match found in index.md.

Summary

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