All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CK extends AbstractComposite

Represents an HL7 CK (composite ID with check digit) data type. This type consists of the following components:

  • ID number (NM) (NM)
  • check digit (NM) (ST)
  • code identifying the check digit scheme employed (ID)
  • assigning authority (HD)
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 NM getIDNumber()
      Returns ID number (NM) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCk1_IDNumber

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

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

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

      Returns code identifying the check digit scheme employed (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCk3_CodeIdentifyingTheCheckDigitSchemeEmployed

      Returns code identifying the check digit scheme employed (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getAssigningAuthority

      Returns assigning authority (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCk4_AssigningAuthority

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