Class CNE

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CNE extends AbstractComposite

Represents an HL7 CNE (coded with no exceptions) data type. This type consists of the following components:

  • identifier (ST) (ST)
  • text (ST)
  • name of coding system (IS)
  • alternate identifier (ST) (ST)
  • alternate text (ST)
  • name of alternate coding system (IS)
  • coding system version ID (ST)
  • alternate coding system version ID (ST)
  • original text (ST)
See Also:
  • Constructor Details

    • CNE

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

      public ST getIdentifier()
      Returns identifier (ST) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getCne1_Identifier

      Returns identifier (ST) (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getText

      public ST getText()
      Returns text (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getCne2_Text

      public ST getCne2_Text()
      Returns text (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getNameOfCodingSystem

      Returns name of coding system (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCne3_NameOfCodingSystem

      Returns name of coding system (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateIdentifier

      Returns alternate identifier (ST) (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCne4_AlternateIdentifier

      Returns alternate identifier (ST) (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateText

      public ST getAlternateText()
      Returns alternate text (component 5). This is a convenience method that saves you from casting and handling an exception.
    • getCne5_AlternateText

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

      Returns name of alternate coding system (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCne6_NameOfAlternateCodingSystem

      Returns name of alternate coding system (component 6). This is a convenience method that saves you from casting and handling an exception.
    • getCodingSystemVersionID

      Returns coding system version ID (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getCne7_CodingSystemVersionID

      Returns coding system version ID (component 7). This is a convenience method that saves you from casting and handling an exception.
    • getAlternateCodingSystemVersionID

      Returns alternate coding system version ID (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getCne8_AlternateCodingSystemVersionID

      Returns alternate coding system version ID (component 8). This is a convenience method that saves you from casting and handling an exception.
    • getOriginalText

      public ST getOriginalText()
      Returns original text (component 9). This is a convenience method that saves you from casting and handling an exception.
    • getCne9_OriginalText

      Returns original text (component 9). This is a convenience method that saves you from casting and handling an exception.