Class CM_PEN

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_PEN extends AbstractComposite

Represents an HL7 CM_PEN (penalty) data type. This type consists of the following components:

  • Penalty ID (ID)
  • penalty amount (NM)
See Also:
  • Constructor Details

    • CM_PEN

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

      public ID getPenaltyID()
      Returns Penalty ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pen1_PenaltyID

      Returns Penalty ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getPenaltyAmount

      public NM getPenaltyAmount()
      Returns penalty amount (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pen2_PenaltyAmount

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