All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CK extends AbstractComposite

Represents an HL7 CK (CK für Patienten-IDs) data type. This type consists of the following components:

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

    • CK

      public CK(Message message)
      Creates a new CK 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 (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCk1_IDNumber

      public ST getCk1_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.
    • getCk2_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.
    • getCk3_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.
    • getCk4_FacilityID

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