--- type: "datatype" title: "Range" datatype: "Range" --- # Range - [Datatypes](/datatypes) - [Definitions](/datatypes-definitions#Range) - [Examples](/datatypes-examples#Range) - [Mappings](/datatypes-mappings#Range) - [Profiles](/datatypes-profiles#Range) ## Overview See also [Examples](datatypes-examples#Range), [Detailed Descriptions](datatypes-definitions#Range), [Mappings](datatypes-mappings#Range), [Profiles](datatypes-profiles#Range) and [Extensions]([%extensions-location%]extensions-datatypes#Range) A set of ordered Quantity values defined by a low and high limit. A Range specifies a set of possible values; usually, one value from the range applies (e.g., "give the patient between 2 and 4 tablets"). Ranges are typically used in instructions. \[%dt Range 5%\] The `unit` and `code`/`system` elements of the `low` or `high` elements SHALL match. If the `low` or `high` elements are missing, the meaning is that the low or high boundaries are not known and therefore neither is the complete range. The `comparator` flag on the `low` or `high` elements cannot be present. Note that the Range type should not be used to represent out of range measurements: A quantity type with the comparator element should be used instead. The low and the high values are inclusive and are assumed to have arbitrarily high precision; e.g., the range 1.5 to 2.5 includes 1.50, and 2.50 but not 1.49 or 2.51. **Constraints** \[%dt.constraints Range%\] Range is used in the following places: \[%dtusage Range%\] ## Elements - **[Range.low](/datatypes-definitions#Range.low)** [0..1]: [SimpleQuantity](/SimpleQuantity) The low limit. The boundary is inclusive. - **[Range.high](/datatypes-definitions#Range.high)** [0..1]: [SimpleQuantity](/SimpleQuantity) The high limit. The boundary is inclusive. ## Comments - **Range.low**: If the low element is missing, the low boundary is not known. - **Range.high**: If the high element is missing, the high boundary is not known. ## Mappings - **Range.low**: RIM Mapping: ./low - **Range.low**: v2 Mapping: NR.1 - **Range.high**: RIM Mapping: ./high - **Range.high**: v2 Mapping: NR.2