Quantity

A quantity is a number with an associated unit. For example:

6 'gm/cm3'
80 'mm[Hg]'
3 months

CQL supports the following built-in units for time granularities:

years
months
weeks
days
hours
minutes
seconds
milliseconds

FieldCard.TypeDescription
value1..1DecimalThe value of the Quantity. The value can be an Integer or Decimal. Note however that most operations involving time-based quantities ignore the decimal portion of a time-based quantity.
unit1..1StringThe unit of the Quantity. CQL supports any valid Unified Code for Units of Measure (UCUM) unit code using the String representation of the UCUM code immediately following the numeric value, as shown in the first example in this section. UCUM codes can be specified in the case-sensitive (c/s) or case-insenstive form (c/i).