Class CM_PTA

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_PTA extends AbstractComposite

Represents an HL7 CM_PTA (Policy Type) data type. This type consists of the following components:

  • policy type (ID)
  • amount class (ID)
  • amount (NM)
See Also:
  • Constructor Details

    • CM_PTA

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

      public ID getPolicyType()
      Returns policy type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pta1_PolicyType

      Returns policy type (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getAmountClass

      public ID getAmountClass()
      Returns amount class (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pta2_AmountClass

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

      public NM getAmount()
      Returns amount (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pta3_Amount

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