Class PIP

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class PIP extends AbstractComposite

Represents an HL7 PIP (Privileges) data type. This type consists of the following components:

  • privilege (CE)
  • privilege class (CE)
  • expiration date (DT)
  • activation date (DT)
  • facility (EI) (EI)
See Also:
  • Constructor Details

    • PIP

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

      public CE getPrivilege()
      Returns privilege (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getPip1_Privilege

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

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

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

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

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

      Returns activation date (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getPip4_ActivationDate

      Returns activation date (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getFacility

      public EI getFacility()
      Returns facility (EI) (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getPip5_Facility

      public EI getPip5_Facility()
      Returns facility (EI) (component 5). This is a convenience method that saves you from casting and handling an exception.