All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class MO extends AbstractComposite

Represents an HL7 MO (Money) data type. This type consists of the following components:

  • Quantity (NM)
  • Denomination (ID)
See Also:
  • Constructor Details

    • MO

      public MO(Message message)
      Creates a new MO type
  • Method Details

    • getComponents

      public Type[] getComponents()
      Returns an array containing the data elements.
    • getComponent

      public Type getComponent(int number) throws DataTypeException
      Returns an individual data component.
      Parameters:
      number - The component number (0-indexed)
      Throws:
      DataTypeException - if the given element number is out of range.
    • getQuantity

      public NM getQuantity()
      Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getMo1_Quantity

      public NM getMo1_Quantity()
      Returns Quantity (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getDenomination

      public ID getDenomination()
      Returns Denomination (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getMo2_Denomination

      Returns Denomination (component 2). This is a convenience method that saves you from casting and handling an exception.