Class ERR

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class ERR extends AbstractSegment

Represents an HL7 ERR message segment (ERROR). This segment has the following fields:

  • ERR-1: Error Code and Location (CM_ELD) repeating
See Also:
  • Constructor Details

  • Method Details

    • getErrorCodeAndLocation

      Returns all repetitions of Error Code and Location (ERR-1).
    • getErr1_ErrorCodeAndLocation

      Returns all repetitions of Error Code and Location (ERR-1).
    • getErrorCodeAndLocationReps

      Returns a count of the current number of repetitions of Error Code and Location (ERR-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getErrorCodeAndLocation

      public CM_ELD getErrorCodeAndLocation(int rep)
      Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getErr1_ErrorCodeAndLocation

      Returns a specific repetition of ERR-1: "Error Code and Location" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getErr1_ErrorCodeAndLocationReps

      Returns a count of the current number of repetitions of Error Code and Location (ERR-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertErrorCodeAndLocation

      Inserts a repetition of ERR-1: "Error Code and Location" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • insertErr1_ErrorCodeAndLocation

      Inserts a repetition of ERR-1: "Error Code and Location" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeErrorCodeAndLocation

      Removes a repetition of ERR-1: "Error Code and Location" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • removeErr1_ErrorCodeAndLocation

      Removes a repetition of ERR-1: "Error Code and Location" at a specific index
      Parameters:
      rep - The repetition index (0-indexed)
      Throws:
      HL7Exception - If the rep is invalid (below 0, or too high for the allowable repetitions)
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment