3.35 StructureDefinition: Shared Health Quantity
The official URL for this profile is:
http://sharedhealth.exchange/fhir/StructureDefinition/dtprofile-quantity
3.35.2 Formal Views of Profile Content
Download Excel representation
Description of Profiles, Differentials, Snapshots and how the different presentations work.
>
This structure is derived from Quantity
Name | Card. | Type | Constraints and Usage |
---|---|---|---|
Quantity | 0..* | qty-3: If a code for the unit is present, the system SHALL also be present Definition: 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. Comments: The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator. | |
value | 1..1 | decimal | Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value. Comments: The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books). |
system | 1..1 | uri | Definition: The identification of the system that provides the coded form of the unit. Comments: Conformance: Must be http://unitsofmeasure.org |
code | 1..1 | code | Definition: A computer processable form of the unit in some unit representation system. Comments: The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system. |
This structure is derived from Quantity
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | SI | 0..* | A measured or measurable amount | |
id | 0..1 | id | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
value | SΣ | 1..1 | decimal | Numerical value (with implicit precision) |
unit | Σ | 0..1 | string | Unit representation |
system | SΣI | 1..1 | uri | System that defines coded unit form |
code | SΣ | 1..1 | code | Coded form of the unit |
Documentation for this format |
Grid View
This structure is derived from Quantity
Name | Card. | Type | Constraints and Usage |
---|---|---|---|
Quantity | 0..* | qty-3: If a code for the unit is present, the system SHALL also be present Definition: 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. Comments: The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator. | |
value | 1..1 | decimal | Definition: The value of the measured amount. The value includes an implicit precision in the presentation of the value. Comments: The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books). |
system | 1..1 | uri | Definition: The identification of the system that provides the coded form of the unit. Comments: Conformance: Must be http://unitsofmeasure.org |
code | 1..1 | code | Definition: A computer processable form of the unit in some unit representation system. Comments: The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system. |
This structure is derived from Quantity
Differential View
This structure is derived from Quantity
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | SI | 0..* | A measured or measurable amount | |
id | 0..1 | id | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
value | SΣ | 1..1 | decimal | Numerical value (with implicit precision) |
unit | Σ | 0..1 | string | Unit representation |
system | SΣI | 1..1 | uri | System that defines coded unit form |
code | SΣ | 1..1 | code | Coded form of the unit |
Documentation for this format |
Other representations of profile: Schematron
3.35.3 Terminology Bindings
3.35.4 Constraints
Constraints
Id | Path | Details | Requirements |
qty-3 | Quantity | If a code for the unit is present, the system SHALL also be present : code.empty() or system.exists() |