Datatype MoneyQuantity

An amount of money. With regard to precision, see [Decimal Precision](datatypes.html#precision)

Rule

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).

Expression:

(code.exists() or value.empty()) and (system.empty() or system = 'urn:iso:std:iso:4217')