--- type: "fhir-fhirpath-function" title: "FHIR FHIRPath Function: comparable" source: "source/fhirpath.html" --- # FHIR FHIRPath Function: comparable This page is part of **FHIR FHIRPath** (FHIR-specific extensions). Base spec lives at [FHIRPath](/fhirpath). `comparable(quantity) : boolean` This function returns true if the engine executing the FHIRPath statement can compare the singleton Quantity with the singleton other Quantity and determine their relationship to each other. Comparable means that both have values and that the code and system for the units are the same (irrespective of system) or both have code + system, system is recognized by the FHIRPath implementation and the codes are comparable within that code system. e.g., days and hours or inches and cm. This function is intended to be added to the core FHIRPath specification in a future version. * * * [Back to FHIR FHIRPath](/fhir-fhirpath)