--- type: "fhirpath-function" title: "FHIRPath Function: convertsToQuantity" function: "convertsToQuantity" category: "Conversion" section: "5.5.7.2" source: "fhirpath/functions.json" --- # FHIRPath Function: convertsToQuantity _No canonical section match found in index.md._ ## Summary - **Category**: Conversion - **Section**: `5.5.7.2` - **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 true if the item can be converted to a Quantity. ## Arguments - `unit` (optional): `String` - Optional unit to check convertibility to ## Type Mapping - `Any-Boolean` ## Example ```fhirpath '10 mg'.convertsToQuantity() // returns true 'abc'.convertsToQuantity() // returns false ```