petit/quantity/fhir_path_quantity library

Functions

isQuantity(dynamic value) bool
Validating function. First checks if passed value is a FhirPathQuantity or a Quantity from any type of FHIR version. If not, it checks if it is a Map that contains both a numerical value, as well as a unit as defined by the UCUM specification (https://hl7.org/fhirpath/#UCUM), as long as it meets these requirements it is considered a valid Quantity for FHIRPath (https://hl7.org/fhirpath/#quantity)