Class CM_ELD

All Implemented Interfaces:
Composite, Type, Visitable, Serializable

public class CM_ELD extends AbstractComposite

Represents an HL7 CM_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

    • CM_ELD

      public CM_ELD(Message message)
      Creates a new CM_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.
    • getCm_eld1_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.
    • getCm_eld2_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.
    • getCm_eld3_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.
    • getCm_eld4_CodeIdentifyingError

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