# Quantity

Canonical page: https://docs.ovok.com/fhir-elements/complex/quantity

Base StructureDefinition for Quantity Type: A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.

Complex data type in FHIR R4. Maturity: Not stated.

## Elements [#elements]

| **Element** | **Type** | **Cardinality** | **Description** |
| --- | --- | --- | --- |
| <span id="element-id"></span>`id` | [string](/fhir-elements/primitive/string) | `0..1` | Unique id for inter-element referencing |
| <span id="element-extension"></span>`extension` | [Extension](/fhir-elements/complex/extension) | `0..*` | Additional content defined by implementations |
| <span id="element-value"></span>`value` | [decimal](/fhir-elements/primitive/decimal) | `0..1` | Numerical value (with implicit precision) |
| <span id="element-comparator"></span>`comparator` | [code](/fhir-elements/primitive/code) | `0..1` | &lt; \| &lt;= \| &gt;= \| &gt; - how to understand the value |
| <span id="element-unit"></span>`unit` | [string](/fhir-elements/primitive/string) | `0..1` | Unit representation |
| <span id="element-system"></span>`system` | [uri](/fhir-elements/primitive/uri) | `0..1` | System that defines coded unit form |
| <span id="element-code"></span>`code` | [code](/fhir-elements/primitive/code) | `0..1` | Coded form of the unit |

## Reference [#reference]

Official FHIR R4 specification: [Quantity](https://hl7.org/fhir/R4/datatypes.html#Quantity).
