Skip to main content


class HS.FHIR.DTL.vDSTU2.Model.Datatype.Money extends HS.FHIR.DTL.vDSTU2.Model.Base.Element

This is a variation on Quantity: A measured amount (or an amount that can potentially be measured). 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).

Property Inventory


Inherited description: ELEMENTQUALIFIED controls the format of exported XML. The ELEMENTQUALIFIED specification should be based on the elementFormDefault attribute of the schema that defines the type. To maintain compatibility, ELEMENTQUALIFIED will default to 1 (true) for literal format export and will default to 0 (false) for encoded or encoded12 format export. These were the values always previously assumed for the elementFormDefault attribute.

NOTE: Direct use of XMLExport method does not support the ELEMENTQUALIFIED. The export must be done using %XML.Writer or SOAP support.

parameter XMLNAME = Money;
Inherited description: This parameter provides the default XMLNAME for the class. If it is empty then the class name will be used to construct a default XML name. The default XMLNAME is used as the top level tag when exporting objects and the export context did not provide an XML container name.
parameter XMLSEQUENCE = 1;
Inherited description: If the XMLSEQUENCE = 1, then the order of the XML elements must match the order of the class properties. This allows us to deal with XML where the same field appears multiple times and is distinguished by the order.
parameter XMLTYPE = Money;
Inherited description: This parameter provides the default XMLTYPE for the class. If it is empty then the class name will be used to construct a default XML type.

The default XMLTYPE is used when naming and referencing this type in a schema and the schema context did not provide an XML type name.


property code as %String (MAXLEN = 1000000, XMLNAME = "code", XMLPROJECTION = "ATTRIBUTE");

Coded form of the unit.

any FHIR2 code from any ValueSet may be used.

Property methods: codeDisplayToLogical(), codeGet(), codeIsValid(), codeLogicalToDisplay(), codeLogicalToOdbc(), codeNormalize(), codeSet()
property comparator as %String (MAXLEN = 1000000, XMLNAME = "comparator", XMLPROJECTION = "ATTRIBUTE");

< | <= | >= | > - how to understand the value

quantity-comparator is the REQUIRED FHIR2 ValueSet for codes; you may NOT extend quantity-comparator and you may NOT use codes from other ValueSets.

Property methods: comparatorDisplayToLogical(), comparatorGet(), comparatorIsValid(), comparatorLogicalToDisplay(), comparatorLogicalToOdbc(), comparatorNormalize(), comparatorSet()
property system as %String (MAXLEN = 1000000, XMLNAME = "system", XMLPROJECTION = "ATTRIBUTE");

System that defines coded unit form.

Property methods: systemDisplayToLogical(), systemGet(), systemIsValid(), systemLogicalToDisplay(), systemLogicalToOdbc(), systemNormalize(), systemSet()
property unit as %String (MAXLEN = 1000000, XMLNAME = "unit", XMLPROJECTION = "ATTRIBUTE");

Unit representation.

Property methods: unitDisplayToLogical(), unitGet(), unitIsValid(), unitLogicalToDisplay(), unitLogicalToOdbc(), unitNormalize(), unitSet()
property value as %Decimal (XMLNAME = "value", XMLPROJECTION = "ATTRIBUTE");

Numerical value (with implicit precision)

Property methods: valueDisplayToLogical(), valueGet(), valueIsValid(), valueLogicalToDisplay(), valueNormalize(), valueSet(), valueXSDToLogical()

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab