CH EMED EPR
1.0.0 - trial-use
This page is part of the FHIR eMedication exchange formats for the implementation effort of CARA within its EPR community (v1.0.0: STU1) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version. For a full list of available versions, see the Directory of published versions
Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-time-quantity | Version: 1.0.0 | |||
Draft as of 2024-01-26 | Computable Name: CHEMEDEPRTimeQuantity | |||
Copyright/Legal: CC0-1.0 |
A quantity with a time unit (a duration)
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from CHEMEDQuantityWithEmedUnits
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | CHEMEDQuantityWithEmedUnits | |||
id | D | 0..1 | string | ✕ This element is not supported |
extension | D | 0..* | Extension | ✕ This element is not supported |
value | C | 1..1 | decimal | Numerical value (with implicit precision) time-quantity-strict-positive: A time quantity shall have a strictly positive value time-quantity-only-integer: A time quantity shall only have an integer value |
comparator | 0..0 | code | ||
system | 1..1 | uri | System of the code from Units of Presentation Required Pattern: http://unitsofmeasure.org | |
code | 1..1 | code | Coded form of the unit Binding: Time Quantity Unit Codes (required) | |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRTimeQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
time-quantity-only-integer | error | Quantity.value | A time quantity shall only have an integer value : $this.convertsToInteger() | |
time-quantity-strict-positive | error | Quantity.value | A time quantity shall have a strictly positive value : $this > 0 |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHEMEDQuantityWithEmedUnits | A fixed quantity (no comparator) |
id | 0..1 | string | ✕ This element is not supported | |
extension | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url | |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) time-quantity-strict-positive: A time quantity shall have a strictly positive value time-quantity-only-integer: A time quantity shall only have an integer value |
unit | Σ | 1..1 | string | Unit representation |
system | ΣC | 1..1 | uri | System of the code from Units of Presentation Required Pattern: http://unitsofmeasure.org |
code | Σ | 1..1 | code | Coded form of the unit Binding: Time Quantity Unit Codes (required) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRTimeQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
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() | |
time-quantity-only-integer | error | Quantity.value | A time quantity shall only have an integer value : $this.convertsToInteger() | |
time-quantity-strict-positive | error | Quantity.value | A time quantity shall have a strictly positive value : $this > 0 |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHEMEDQuantityWithEmedUnits | A fixed quantity (no comparator) |
id | 0..1 | string | ✕ This element is not supported | |
extension | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url | |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) time-quantity-strict-positive: A time quantity shall have a strictly positive value time-quantity-only-integer: A time quantity shall only have an integer value |
unit | Σ | 1..1 | string | Unit representation |
system | ΣC | 1..1 | uri | System of the code from Units of Presentation Required Pattern: http://unitsofmeasure.org |
code | Σ | 1..1 | code | Coded form of the unit Binding: Time Quantity Unit Codes (required) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRTimeQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
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() | |
time-quantity-only-integer | error | Quantity.value | A time quantity shall only have an integer value : $this.convertsToInteger() | |
time-quantity-strict-positive | error | Quantity.value | A time quantity shall have a strictly positive value : $this > 0 |
This structure is derived from CHEMEDQuantityWithEmedUnits
Differential View
This structure is derived from CHEMEDQuantityWithEmedUnits
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | CHEMEDQuantityWithEmedUnits | |||
id | D | 0..1 | string | ✕ This element is not supported |
extension | D | 0..* | Extension | ✕ This element is not supported |
value | C | 1..1 | decimal | Numerical value (with implicit precision) time-quantity-strict-positive: A time quantity shall have a strictly positive value time-quantity-only-integer: A time quantity shall only have an integer value |
comparator | 0..0 | code | ||
system | 1..1 | uri | System of the code from Units of Presentation Required Pattern: http://unitsofmeasure.org | |
code | 1..1 | code | Coded form of the unit Binding: Time Quantity Unit Codes (required) | |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRTimeQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
time-quantity-only-integer | error | Quantity.value | A time quantity shall only have an integer value : $this.convertsToInteger() | |
time-quantity-strict-positive | error | Quantity.value | A time quantity shall have a strictly positive value : $this > 0 |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHEMEDQuantityWithEmedUnits | A fixed quantity (no comparator) |
id | 0..1 | string | ✕ This element is not supported | |
extension | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url | |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) time-quantity-strict-positive: A time quantity shall have a strictly positive value time-quantity-only-integer: A time quantity shall only have an integer value |
unit | Σ | 1..1 | string | Unit representation |
system | ΣC | 1..1 | uri | System of the code from Units of Presentation Required Pattern: http://unitsofmeasure.org |
code | Σ | 1..1 | code | Coded form of the unit Binding: Time Quantity Unit Codes (required) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRTimeQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
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() | |
time-quantity-only-integer | error | Quantity.value | A time quantity shall only have an integer value : $this.convertsToInteger() | |
time-quantity-strict-positive | error | Quantity.value | A time quantity shall have a strictly positive value : $this > 0 |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHEMEDQuantityWithEmedUnits | A fixed quantity (no comparator) |
id | 0..1 | string | ✕ This element is not supported | |
extension | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url | |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) time-quantity-strict-positive: A time quantity shall have a strictly positive value time-quantity-only-integer: A time quantity shall only have an integer value |
unit | Σ | 1..1 | string | Unit representation |
system | ΣC | 1..1 | uri | System of the code from Units of Presentation Required Pattern: http://unitsofmeasure.org |
code | Σ | 1..1 | code | Coded form of the unit Binding: Time Quantity Unit Codes (required) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRTimeQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-time-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
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() | |
time-quantity-only-integer | error | Quantity.value | A time quantity shall only have an integer value : $this.convertsToInteger() | |
time-quantity-strict-positive | error | Quantity.value | A time quantity shall have a strictly positive value : $this > 0 |
This structure is derived from CHEMEDQuantityWithEmedUnits
Other representations of profile: CSV, Excel, Schematron