All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CE extends AbstractComposite

Represents an HL7 CE (coded element) data type. This type consists of the following components:

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

    • CE

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

      Returns identifier (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.
    • getCe2_Text

      public ST getCe2_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.
    • getCe3_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 (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getCe4_AlternateIdentifier

      Returns alternate identifier (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.
    • getCe5_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.
    • getCe6_NameOfAlternateCodingSystem

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