Class VTQ

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class VTQ extends AbstractSegment

Represents an HL7 VTQ message segment (Virtual Table Query Request). This segment has the following fields:

  • VTQ-1: Query Tag (ST) optional
  • VTQ-2: Query/Response Format Code (ID)
  • VTQ-3: VT Query Name (CE)
  • VTQ-4: Virtual Table Name (CE)
  • VTQ-5: Selection Criteria (QSC) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getQueryTag

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

      public ST getVtq1_QueryTag()
      Returns VTQ-1: "Query Tag" - creates it if necessary
    • getQueryResponseFormatCode

      Returns VTQ-2: "Query/Response Format Code" - creates it if necessary
    • getVtq2_QueryResponseFormatCode

      Returns VTQ-2: "Query/Response Format Code" - creates it if necessary
    • getVTQueryName

      public CE getVTQueryName()
      Returns VTQ-3: "VT Query Name" - creates it if necessary
    • getVtq3_VTQueryName

      Returns VTQ-3: "VT Query Name" - creates it if necessary
    • getVirtualTableName

      Returns VTQ-4: "Virtual Table Name" - creates it if necessary
    • getVtq4_VirtualTableName

      Returns VTQ-4: "Virtual Table Name" - creates it if necessary
    • getSelectionCriteria

      Returns all repetitions of Selection Criteria (VTQ-5).
    • getVtq5_SelectionCriteria

      Returns all repetitions of Selection Criteria (VTQ-5).
    • getSelectionCriteriaReps

      Returns a count of the current number of repetitions of Selection Criteria (VTQ-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getSelectionCriteria

      public QSC getSelectionCriteria(int rep)
      Returns a specific repetition of VTQ-5: "Selection Criteria" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getVtq5_SelectionCriteria

      public QSC getVtq5_SelectionCriteria(int rep)
      Returns a specific repetition of VTQ-5: "Selection Criteria" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getVtq5_SelectionCriteriaReps

      Returns a count of the current number of repetitions of Selection Criteria (VTQ-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertSelectionCriteria

      public QSC insertSelectionCriteria(int rep) throws HL7Exception
      Inserts a repetition of VTQ-5: "Selection Criteria" 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)
    • insertVtq5_SelectionCriteria

      Inserts a repetition of VTQ-5: "Selection Criteria" 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)
    • removeSelectionCriteria

      public QSC removeSelectionCriteria(int rep) throws HL7Exception
      Removes a repetition of VTQ-5: "Selection Criteria" 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)
    • removeVtq5_SelectionCriteria

      Removes a repetition of VTQ-5: "Selection Criteria" 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