All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CX extends AbstractComposite

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

  • ID (ST)
  • check digit (ST) (ST)
  • code identifying the check digit scheme employed (ID)
  • assigning authority (HD)
  • identifier type code (ID) (ID)
  • assigning facility (HD)
  • effective date (DT) (DT)
  • expiration date (DT)
See Also:
  • Constructor Details

    • CX

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

      public ST getID()
      Returns ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCx1_ID

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

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

      Returns check digit (ST) (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.
    • getCx3_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.
    • getCx4_AssigningAuthority

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

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

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

      Returns assigning facility (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCx6_AssigningFacility

      Returns assigning facility (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getEffectiveDate

      public DT getEffectiveDate()
      Returns effective date (DT) (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getCx7_EffectiveDate

      Returns effective date (DT) (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getExpirationDate

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

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