Shared Health Specification and Guide Version 2.0 Revision F

 

The official URL for this profile is:

http://sharedhealth.exchange/fhir/StructureDefinition/dtprofile-quantity-money

Download Excel representation

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

>

This structure is derived from Money

NameCard.TypeConstraints 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..1decimalDefinition:
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..1uriDefinition:
The identification of the system that provides the coded form of the unit.

..  code 1..1codeFixed 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

Summary

Mandatory: 3 elements
Must-Support: 3 elements
Fixed Value: 1 element

This structure is derived from Money

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity SI0..*Canadian money
... id 0..1idxml:id (or equivalent in JSON)
... extension 0..*ExtensionAdditional Content defined by implementations
... value SΣ1..1decimalNumerical value (with implicit precision)
... comparator ?!Σ0..1code< | <= | >= | > - how to understand the value
Binding: QuantityComparator (required)
... unit Σ0..1stringUnit representation
... system SΣI1..1uriSystem that defines coded unit form
... code SΣ1..1codeCoded form of the unit
Fixed Value: CAD

doco Documentation for this format

Grid View

This structure is derived from Money

NameCard.TypeConstraints 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..1decimalDefinition:
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..1uriDefinition:
The identification of the system that provides the coded form of the unit.

..  code 1..1codeFixed 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

Summary

Mandatory: 3 elements
Must-Support: 3 elements
Fixed Value: 1 element

Differential View

This structure is derived from Money

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Quantity SI0..*Canadian money
... id 0..1idxml:id (or equivalent in JSON)
... extension 0..*ExtensionAdditional Content defined by implementations
... value SΣ1..1decimalNumerical value (with implicit precision)
... comparator ?!Σ0..1code< | <= | >= | > - how to understand the value
Binding: QuantityComparator (required)
... unit Σ0..1stringUnit representation
... system SΣI1..1uriSystem that defines coded unit form
... code SΣ1..1codeCoded form of the unit
Fixed Value: CAD

doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathNameConformanceValueSet
Quantity.comparatorQuantityComparatorrequiredQuantityComparator

Constraints

IdPathDetailsRequirements
qty-3QuantityIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
mny-1QuantityThere 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')