Class SPR

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class SPR extends AbstractSegment

Represents an HL7 SPR message segment (Stored Procedure Request Definition). This segment has the following fields:

  • SPR-1: Query tag (ST) optional
  • SPR-2: Query/ Response Format Code (ID)
  • SPR-3: Stored procedure name (CE)
  • SPR-4: Input parameter list (QIP) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getQueryTag

      public ST getQueryTag()
      Returns SPR-1: "Query tag" - creates it if necessary
    • getSpr1_QueryTag

      public ST getSpr1_QueryTag()
      Returns SPR-1: "Query tag" - creates it if necessary
    • getQueryResponseFormatCode

      Returns SPR-2: "Query/ Response Format Code" - creates it if necessary
    • getSpr2_QueryResponseFormatCode

      Returns SPR-2: "Query/ Response Format Code" - creates it if necessary
    • getStoredProcedureName

      Returns SPR-3: "Stored procedure name" - creates it if necessary
    • getSpr3_StoredProcedureName

      Returns SPR-3: "Stored procedure name" - creates it if necessary
    • getInputParameterList

      Returns all repetitions of Input parameter list (SPR-4).
    • getSpr4_InputParameterList

      Returns all repetitions of Input parameter list (SPR-4).
    • getInputParameterListReps

      Returns a count of the current number of repetitions of Input parameter list (SPR-4). 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 SPR-4: "Input parameter list" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getSpr4_InputParameterList

      public QIP getSpr4_InputParameterList(int rep)
      Returns a specific repetition of SPR-4: "Input parameter list" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getSpr4_InputParameterListReps

      Returns a count of the current number of repetitions of Input parameter list (SPR-4). 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 SPR-4: "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)
    • insertSpr4_InputParameterList

      Inserts a repetition of SPR-4: "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 SPR-4: "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)
    • removeSpr4_InputParameterList

      Removes a repetition of SPR-4: "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