Data Management with FHIR
0.1.0 - ci-build

Data Management with FHIR - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## Data Type Profile: SimpleQuantity with UCUM quantity unit

Official URL: https://interop.aphp.fr/ig/fhir/dm/StructureDefinition/FrSimpleQuantityUcum | Version: 0.1.0
Draft as of 2025-10-23 | Computable Name: FrSimpleQuantityUcum

simple quantity datatype requiring a UCUM unit

Usages:

- Use this DataType Profile: Prise de médicaments, Prescription de médicaments, Range with UCUM quantity units and Ratio with UCUM quantity units

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Nom | Drapeaux | Card. | Type | Description et contraintes Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Quantity | C | 0..* | SimpleQuantity | A fixed quantity (no comparator) with UCUM unit Constraints: qty-3, sqty-1
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Constraints

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())`
qty-3 | error | Quantity | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
sqty-1 | error | Quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

This structure is derived from SimpleQuantity

Nom | Drapeaux | Card. | Type | Description et contraintes Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Quantity |  | 0..* | SimpleQuantity | A fixed quantity (no comparator) with UCUM unit
system | S | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S | 1..1 | code | Coded form of the unit
Documentation for this format

Nom | Drapeaux | Card. | Type | Description et contraintes Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Quantity | C | 0..* | SimpleQuantity | A fixed quantity (no comparator) with UCUM unit Constraints: qty-3, sqty-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | Σ | 0..1 | decimal | Numerical value (with implicit precision)
unit | Σ | 0..1 | string | Unit representation
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Constraints

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()`
sqty-1 | error | Quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

This structure is derived from SimpleQuantity

Résumé

Mandatory: 2 elements
Must-Support: 2 elements
Fixed: 1 element

Key Elements View

Nom | Drapeaux | Card. | Type | Description et contraintes Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Quantity | C | 0..* | SimpleQuantity | A fixed quantity (no comparator) with UCUM unit Constraints: qty-3, sqty-1
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Constraints

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())`
qty-3 | error | Quantity | If a code for the unit is present, the system SHALL also be present | `code.empty() or system.exists()`
sqty-1 | error | Quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

Differential View

This structure is derived from SimpleQuantity

Nom | Drapeaux | Card. | Type | Description et contraintes Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Quantity |  | 0..* | SimpleQuantity | A fixed quantity (no comparator) with UCUM unit
system | S | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S | 1..1 | code | Coded form of the unit
Documentation for this format

Snapshot View

Nom | Drapeaux | Card. | Type | Description et contraintes Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
Quantity | C | 0..* | SimpleQuantity | A fixed quantity (no comparator) with UCUM unit Constraints: qty-3, sqty-1
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
value | Σ | 0..1 | decimal | Numerical value (with implicit precision)
unit | Σ | 0..1 | string | Unit representation
system | S Σ C | 1..1 | uri | System that defines coded unit form Fixed Value: http://unitsofmeasure.org
code | S Σ | 1..1 | code | Coded form of the unit
Documentation for this format

#### Constraints

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()`
sqty-1 | error | Quantity | The comparator is not used on a SimpleQuantity | `comparator.empty()`

This structure is derived from SimpleQuantity

Résumé

Mandatory: 2 elements
Must-Support: 2 elements
Fixed: 1 element

Other representations of profile: CSV, Excel, Schematron