3.36 StructureDefinition: Shared Health Money
The official URL for this profile is:
http://sharedhealth.exchange/fhir/StructureDefinition/dtprofile-quantity-money
3.36.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 Money
Name | Card. | Type | Constraints and Usage |
---|---|---|---|
Quantity | 0..* | qty-3: If a code for the unit is present, the system SHALL also be present mny-1: There SHALL be a code if there is a value and it SHALL be an expression of currency. If system is present, it SHALL be ISO 4217 (system = "urn:iso:std:iso:4217" - currency). Definition: A dollar amount expressed in Canadian funds 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. |
code | 1..1 | code | Fixed Value: CAD Definition: A computer processable form of the unit in some unit representation system. Comments: Fixed value: CAD |
This structure is derived from Money
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | SI | 0..* | Canadian money | |
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) |
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required) |
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 Fixed Value: CAD |
Documentation for this format |
Grid View
This structure is derived from Money
Name | Card. | Type | Constraints and Usage |
---|---|---|---|
Quantity | 0..* | qty-3: If a code for the unit is present, the system SHALL also be present mny-1: There SHALL be a code if there is a value and it SHALL be an expression of currency. If system is present, it SHALL be ISO 4217 (system = "urn:iso:std:iso:4217" - currency). Definition: A dollar amount expressed in Canadian funds 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. |
code | 1..1 | code | Fixed Value: CAD Definition: A computer processable form of the unit in some unit representation system. Comments: Fixed value: CAD |
This structure is derived from Money
Differential View
This structure is derived from Money
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Quantity | SI | 0..* | Canadian money | |
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) |
comparator | ?!Σ | 0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required) |
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 Fixed Value: CAD |
Documentation for this format |
Other representations of profile: Schematron
3.36.3 Terminology Bindings
Terminology Bindings
Path | Name | Conformance | ValueSet |
Quantity.comparator | QuantityComparator | required | QuantityComparator |
3.36.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() | |
mny-1 | Quantity | There SHALL be a code if there is a value and it SHALL be an expression of currency. If system is present, it SHALL be ISO 4217 (system = "urn:iso:std:iso:4217" - currency). : (code.exists() or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217') |