Package org.hl7.v3

Class MO

Direct Known Subclasses:
IVXBMO, SXCMMO

public class MO extends QTY
A monetary amount is a quantity expressing the amount of money in some currency. Currencies are the units in which monetary amounts are denominated in different economic regions. While the monetary amount is a single kind of quantity (money) the exchange rates between the different units are variable. This is the principle difference between physical quantity and monetary amounts, and the reason why currency units are not physical units.

Java class for MO complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="MO">
   <complexContent>
     <extension base="{urn:hl7-org:v3}QTY">
       <attribute name="value" type="{urn:hl7-org:v3}real" />
       <attribute name="currency" type="{urn:hl7-org:v3}cs" />
     </extension>
   </complexContent>
 </complexType>
 
  • Field Details

    • value

      protected String value
    • currency

      protected String currency
  • Constructor Details

    • MO

      public MO()
  • Method Details

    • getValue

      public String getValue()
      Gets the value of the value property.
      Returns:
      possible object is String
    • setValue

      public void setValue(String value)
      Sets the value of the value property.
      Parameters:
      value - allowed object is String
    • getCurrency

      public String getCurrency()
      Gets the value of the currency property.
      Returns:
      possible object is String
    • setCurrency

      public void setCurrency(String value)
      Sets the value of the currency property.
      Parameters:
      value - allowed object is String
    • withValue

      public MO withValue(String value)
    • withCurrency

      public MO withCurrency(String value)
    • withNullFlavor

      public MO withNullFlavor(String... values)
      Overrides:
      withNullFlavor in class QTY
    • withNullFlavor

      public MO withNullFlavor(Collection<String> values)
      Overrides:
      withNullFlavor in class QTY
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class QTY
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class QTY
    • toString

      public String toString()
      Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
      Overrides:
      toString in class QTY