petit/quantity/quantity library
Classes
Constants
-
definiteQuantityDurationUnits
→ const Map<
String, String> -
stringUnitToProperty
→ const Map<
String, Enum> -
timeValuedQuantitiesUnits
→ const Map<
String, String> -
unitCode
→ const List<
String>
Properties
-
prefixData
→ List<
UcumPrefix> -
final
-
unitsData
→ List<
UcumUnit> -
final
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)