CH EMED EPR
2.0.0-ci-build - ci-build
CH EMED EPR, published by CARA. This guide is not an authorized publication; it is the continuous build for version 2.0.0-ci-build built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/CARA-ch/ch-emed-epr/ and changes regularly. See the Directory of published versions
Official URL: http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity | Version: 2.0.0-ci-build | |||
Draft as of 2024-12-20 | Computable Name: CHEMEDEPRAmountQuantity | |||
Copyright/Legal: CC0-1.0 |
A quantity with an amount unit (no time unit)
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from CHCoreQuantityWithEmedUnits
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | 0..* | CHCoreQuantityWithEmedUnits | A fixed quantity (no comparator) | |
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) amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) |
comparator | 0..0 | code | ||
code | 1..1 | code | Coded form of the unit Binding: Amount Quantity Unit Codes (required) | |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRAmountQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-amount-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
amount-quantity-int-or-simple-decimal | warning | Quantity.value | An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) : $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75') |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHCoreQuantityWithEmedUnits | A fixed quantity (no comparator) ele-1: All FHIR elements must have a @value or children qty-3: If a code for the unit is present, the system SHALL also be present sqty-1: The comparator is not used on a SimpleQuantity |
id | D | 0..1 | string | ✕ This element is not supported |
extension | D | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) ele-1: All FHIR elements must have a @value or children amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) |
unit | Σ | 1..1 | string | Unit representation ele-1: All FHIR elements must have a @value or children |
system | ΣC | 1..1 | uri | System that defines coded unit form ele-1: All FHIR elements must have a @value or children |
code | Σ | 1..1 | code | Coded form of the unit Binding: Amount Quantity Unit Codes (required) ele-1: All FHIR elements must have a @value or children |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRAmountQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-amount-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
amount-quantity-int-or-simple-decimal | warning | Quantity.value | An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) : $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75') | |
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() |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHCoreQuantityWithEmedUnits | A fixed quantity (no comparator) qty-3: If a code for the unit is present, the system SHALL also be present sqty-1: The comparator is not used on a SimpleQuantity |
id | D | 0..1 | string | ✕ This element is not supported |
extension | D | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) |
unit | Σ | 1..1 | string | Unit representation |
system | ΣC | 1..1 | uri | System that defines coded unit form |
code | Σ | 1..1 | code | Coded form of the unit Binding: Amount Quantity Unit Codes (required) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRAmountQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-amount-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
amount-quantity-int-or-simple-decimal | warning | Quantity.value | An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) : $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75') | |
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 CHCoreQuantityWithEmedUnits
Differential View
This structure is derived from CHCoreQuantityWithEmedUnits
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | 0..* | CHCoreQuantityWithEmedUnits | A fixed quantity (no comparator) | |
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) amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) |
comparator | 0..0 | code | ||
code | 1..1 | code | Coded form of the unit Binding: Amount Quantity Unit Codes (required) | |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRAmountQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-amount-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
amount-quantity-int-or-simple-decimal | warning | Quantity.value | An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) : $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75') |
Key Elements View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHCoreQuantityWithEmedUnits | A fixed quantity (no comparator) ele-1: All FHIR elements must have a @value or children qty-3: If a code for the unit is present, the system SHALL also be present sqty-1: The comparator is not used on a SimpleQuantity |
id | D | 0..1 | string | ✕ This element is not supported |
extension | D | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url ele-1: All FHIR elements must have a @value or children ext-1: Must have either extensions or value[x], not both |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) ele-1: All FHIR elements must have a @value or children amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) |
unit | Σ | 1..1 | string | Unit representation ele-1: All FHIR elements must have a @value or children |
system | ΣC | 1..1 | uri | System that defines coded unit form ele-1: All FHIR elements must have a @value or children |
code | Σ | 1..1 | code | Coded form of the unit Binding: Amount Quantity Unit Codes (required) ele-1: All FHIR elements must have a @value or children |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRAmountQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-amount-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
amount-quantity-int-or-simple-decimal | warning | Quantity.value | An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) : $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75') | |
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() |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | C | 0..* | CHCoreQuantityWithEmedUnits | A fixed quantity (no comparator) qty-3: If a code for the unit is present, the system SHALL also be present sqty-1: The comparator is not used on a SimpleQuantity |
id | D | 0..1 | string | ✕ This element is not supported |
extension | D | 0..* | Extension | ✕ This element is not supported Slice: Unordered, Open by value:url |
value | ΣC | 1..1 | decimal | Numerical value (with implicit precision) amount-quantity-int-or-simple-decimal: An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) |
unit | Σ | 1..1 | string | Unit representation |
system | ΣC | 1..1 | uri | System that defines coded unit form |
code | Σ | 1..1 | code | Coded form of the unit Binding: Amount Quantity Unit Codes (required) |
Documentation for this format |
Path | Conformance | ValueSet | URI |
Quantity.code | required | CHEMEDEPRAmountQuantityUnitCodehttp://fhir.ch/ig/ch-emed-epr/ValueSet/ch-emed-epr-amount-quantity-unit-code from this IG |
Id | Grade | Path(s) | Details | Requirements |
amount-quantity-int-or-simple-decimal | warning | Quantity.value | An amount quantity should be either an integer, or a decimal that ends with '.25', '.5', or '.75' for non-scientific units (like tablets, pillules, ampules, etc.) : $this.toString().contains('.').not() or $this.toString().endsWith('.25') or $this.toString().endsWith('.5') or $this.toString().endsWith('.75') | |
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 CHCoreQuantityWithEmedUnits
Other representations of profile: CSV, Excel, Schematron