Class CM_MOC

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_MOC extends AbstractComposite

Represents an HL7 CM_MOC (Charge To Practise) data type. This type consists of the following components:

  • dollar amount (ST)
  • charge code (ST)
See Also:
  • Constructor Details

    • CM_MOC

      public CM_MOC(Message message)
      Creates a new CM_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.
    • getDollarAmount

      public ST getDollarAmount()
      Returns dollar amount (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_moc1_DollarAmount

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

      public ST getChargeCode()
      Returns charge code (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_moc2_ChargeCode

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