All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class RP extends AbstractComposite

Represents an HL7 RP (Reference Pointer) data type. This type consists of the following components:

  • Pointer (ST)
  • Application ID (HD)
  • Type of Data (ID)
  • Subtype (ID)
See Also:
  • Constructor Details

    • RP

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

      public ST getPointer()
      Returns Pointer (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getRp1_Pointer

      public ST getRp1_Pointer()
      Returns Pointer (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getApplicationID

      public HD getApplicationID()
      Returns Application ID (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getRp2_ApplicationID

      Returns Application ID (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getTypeOfData

      public ID getTypeOfData()
      Returns Type of Data (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getRp3_TypeOfData

      Returns Type of Data (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getSubtype

      public ID getSubtype()
      Returns Subtype (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getRp4_Subtype

      public ID getRp4_Subtype()
      Returns Subtype (component 4). This is a convenience method that saves you from casting and handling an exception.