All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class PT extends AbstractComposite

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

  • Processing ID (ID)
  • Processing Mode (ID)
See Also:
  • Constructor Details

    • PT

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

      public ID getProcessingID()
      Returns Processing ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getPt1_ProcessingID

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

      Returns Processing Mode (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getPt2_ProcessingMode

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