Class ELD

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class ELD extends AbstractComposite

Represents an HL7 ELD (error) data type. This type consists of the following components:

  • segment ID (ST)
  • sequence (NM)
  • field position (NM)
  • code identifying error (CE)
See Also:
  • Constructor Details

    • ELD

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

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

      Returns segment ID (component 1). This is a convenience method that saves you from casting and handling an exception.
    • getSequence

      public NM getSequence()
      Returns sequence (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getEld2_Sequence

      public NM getEld2_Sequence()
      Returns sequence (component 2). This is a convenience method that saves you from casting and handling an exception.
    • getFieldPosition

      public NM getFieldPosition()
      Returns field position (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getEld3_FieldPosition

      Returns field position (component 3). This is a convenience method that saves you from casting and handling an exception.
    • getCodeIdentifyingError

      Returns code identifying error (component 4). This is a convenience method that saves you from casting and handling an exception.
    • getEld4_CodeIdentifyingError

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