All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class MOC extends AbstractComposite

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

  • Monetary Amount (MO)
  • Charge Code (CE)
See Also:
  • Constructor Details

    • MOC

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

      Returns Monetary Amount (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getMoc1_MonetaryAmount

      Returns Monetary Amount (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getChargeCode

      public CE getChargeCode()
      Returns Charge Code (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getMoc2_ChargeCode

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