HL7 Europe Laboratory Report, published by HL7 Europe. This guide is not an authorized publication; it is the continuous build for version 2.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-eu/laboratory/ and changes regularly. See the Directory of published versions
| Official URL: http://hl7.eu/fhir/laboratory/StructureDefinition/Quantity-eu-lab | Version: 2.0.0 | |||
| Active as of 2026-05-05 | Computable Name: QuantityEuLab | |||
Copyright/Legal: Copyright HL7 Europe. Licensed under creative commons public domain (CC0 1.0). |
||||
This profile constrains the Quantity data type to use UCUM for units. When using the Quantity datatype, the unit is represented using a coded form with UCUM as the system in the code element. The human-readable textual representation is is captured in the unit element. If no suitable UCUM code exists, the code is set to “1”, and the textual unit representation is used. If both coded and textual representations are present, they need to be semantically consistent.
This profile of the Quantity data type imposes the usage of the UCUM as the code system for units and allows expressing uncertainty of measurement
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Quantity | A measured amount using UCUM Constraints: qty-3 |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | decimal | Standard Deviation (same units as the quantity) URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty | |
![]() ![]() ![]() |
0..1 | code | Probability Distribution Type for uncertainty URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType Binding: ProbabilityDistributionType (required) | |
![]() ![]() |
?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. |
![]() ![]() |
ΣC | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Quantity.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| qty-3 | error | Quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
This structure is derived from Quantity
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Quantity | A measured amount using UCUM | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | decimal | Standard Deviation (same units as the quantity) URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty | |
![]() ![]() ![]() |
0..1 | code | Probability Distribution Type for uncertainty URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType Binding: ProbabilityDistributionType (required) | |
![]() ![]() |
0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Quantity | A measured amount using UCUM Constraints: qty-3 |
![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | decimal | Standard Deviation (same units as the quantity) URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty | |
![]() ![]() ![]() |
0..1 | code | Probability Distribution Type for uncertainty URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType Binding: ProbabilityDistributionType (required) | |
![]() ![]() |
Σ | 0..1 | decimal | Numerical value (with implicit precision) |
![]() ![]() |
?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. |
![]() ![]() |
Σ | 0..1 | string | Unit representation |
![]() ![]() |
ΣC | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org |
![]() ![]() |
Σ | 0..1 | code | Coded form of the unit |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Quantity.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| qty-3 | error | Quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
This structure is derived from Quantity
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Quantity | A measured amount using UCUM Constraints: qty-3 |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | decimal | Standard Deviation (same units as the quantity) URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty | |
![]() ![]() ![]() |
0..1 | code | Probability Distribution Type for uncertainty URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType Binding: ProbabilityDistributionType (required) | |
![]() ![]() |
?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. |
![]() ![]() |
ΣC | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Quantity.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| qty-3 | error | Quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
Differential View
This structure is derived from Quantity
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | Quantity | A measured amount using UCUM | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | decimal | Standard Deviation (same units as the quantity) URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty | |
![]() ![]() ![]() |
0..1 | code | Probability Distribution Type for uncertainty URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType Binding: ProbabilityDistributionType (required) | |
![]() ![]() |
0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
C | 0..* | Quantity | A measured amount using UCUM Constraints: qty-3 |
![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |
![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |
![]() ![]() ![]() |
0..1 | decimal | Standard Deviation (same units as the quantity) URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty | |
![]() ![]() ![]() |
0..1 | code | Probability Distribution Type for uncertainty URL: http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType Binding: ProbabilityDistributionType (required) | |
![]() ![]() |
Σ | 0..1 | decimal | Numerical value (with implicit precision) |
![]() ![]() |
?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. |
![]() ![]() |
Σ | 0..1 | string | Unit representation |
![]() ![]() |
ΣC | 0..1 | uri | System that defines coded unit form Required Pattern: http://unitsofmeasure.org |
![]() ![]() |
Σ | 0..1 | code | Coded form of the unit |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| Quantity.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| qty-3 | error | Quantity | If a code for the unit is present, the system SHALL also be present |
code.empty() or system.exists()
|
This structure is derived from Quantity
Other representations of profile: CSV, Excel, Schematron