Class ERQ

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class ERQ extends AbstractSegment

Represents an HL7 ERQ message segment (Event Replay Query). This segment has the following fields:

  • ERQ-1: Query Tag (ST) optional
  • ERQ-2: Event Identifier (CE)
  • ERQ-3: Input Parameter List (QIP) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getQueryTag

      public ST getQueryTag()
      Returns ERQ-1: "Query Tag" - creates it if necessary
    • getErq1_QueryTag

      public ST getErq1_QueryTag()
      Returns ERQ-1: "Query Tag" - creates it if necessary
    • getEventIdentifier

      Returns ERQ-2: "Event Identifier" - creates it if necessary
    • getErq2_EventIdentifier

      Returns ERQ-2: "Event Identifier" - creates it if necessary
    • getInputParameterList

      Returns all repetitions of Input Parameter List (ERQ-3).
    • getErq3_InputParameterList

      Returns all repetitions of Input Parameter List (ERQ-3).
    • getInputParameterListReps

      Returns a count of the current number of repetitions of Input Parameter List (ERQ-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getInputParameterList

      public QIP getInputParameterList(int rep)
      Returns a specific repetition of ERQ-3: "Input Parameter List" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getErq3_InputParameterList

      public QIP getErq3_InputParameterList(int rep)
      Returns a specific repetition of ERQ-3: "Input Parameter List" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getErq3_InputParameterListReps

      Returns a count of the current number of repetitions of Input Parameter List (ERQ-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertInputParameterList

      public QIP insertInputParameterList(int rep) throws HL7Exception
      Inserts a repetition of ERQ-3: "Input Parameter List" 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)
    • insertErq3_InputParameterList

      Inserts a repetition of ERQ-3: "Input Parameter List" 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)
    • removeInputParameterList

      public QIP removeInputParameterList(int rep) throws HL7Exception
      Removes a repetition of ERQ-3: "Input Parameter List" 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)
    • removeErq3_InputParameterList

      Removes a repetition of ERQ-3: "Input Parameter List" 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