Skip to content

Numeric Field

A numeric field collects a number. Its required datatype fixes the kind of number, from an integer of a given width to a decimal or floating-point value. minValue and maxValue bound the range, decimalPlaces sets how many digits follow the decimal point, and unit records a unit of measure shown alongside the value, written as a free-text label such as mg or degree Celsius. In YAML its type is numeric-field.

Key Value Presence Meaning
datatype numeric datatype token required The value's type: xsd:decimal, xsd:int, xsd:long, xsd:short, xsd:byte, xsd:float, or xsd:double.
minValue number optional Minimum value.
maxValue number optional Maximum value.
decimalPlaces integer optional Number of decimal places.
unit string optional A unit of measure, as a free-text label (for example mg).
default number optional Default value.
- key: completed
  type: numeric-field
  name: Treatment Completed %
  datatype: xsd:int
  minValue: 0
  maxValue: 100
  default: 0