Class CM_PAT_ID

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_PAT_ID extends AbstractComposite

Represents an HL7 CM_PAT_ID (Patient ID) data type. This type consists of the following components:

  • ID number (ST)
  • Check digit (NM)
  • Check digit scheme (ID)
  • Facility ID (ID)
  • type (ID)
See Also:
  • Constructor Details

  • 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 (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pat_id1_IDNumber

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

      public NM getCheckDigit()
      Returns Check digit (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pat_id2_CheckDigit

      Returns Check digit (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCheckDigitScheme

      Returns Check digit scheme (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pat_id3_CheckDigitScheme

      Returns Check digit scheme (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getFacilityID

      public ID getFacilityID()
      Returns Facility ID (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pat_id4_FacilityID

      Returns Facility ID (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getType

      public ID getType()
      Returns type (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getCm_pat_id5_Type

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