All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class MOP extends AbstractComposite

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

  • Money or Percentage Indicator (ID)
  • Money or Percentage Quantity (NM)
  • Currency Denomination (ID)
See Also:
  • Constructor Details

    • MOP

      public MOP(Message message)
      Creates a new MOP 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.
    • getMoneyOrPercentageIndicator

      Returns Money or Percentage Indicator (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getMop1_MoneyOrPercentageIndicator

      Returns Money or Percentage Indicator (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getMoneyOrPercentageQuantity

      Returns Money or Percentage Quantity (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getMop2_MoneyOrPercentageQuantity

      Returns Money or Percentage Quantity (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCurrencyDenomination

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

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