All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class PI extends AbstractComposite

Represents an HL7 PI (person identifier) data type. This type consists of the following components:

  • ID number (ST) (ST)
  • type of ID number (IS) (IS)
  • other qualifying info (ST)
See Also:
  • Constructor Details

    • PI

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

      public ST getIDNumber()
      Returns ID number (ST) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getPi1_IDNumber

      public ST getPi1_IDNumber()
      Returns ID number (ST) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getTypeOfIDNumber

      Returns type of ID number (IS) (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getPi2_TypeOfIDNumber

      Returns type of ID number (IS) (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getOtherQualifyingInfo

      Returns other qualifying info (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getPi3_OtherQualifyingInfo

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