Class URS

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class URS extends AbstractSegment

Represents an HL7 URS message segment (UNSOLICITED SELECTION). This segment has the following fields:

  • URS-1: R/U Where Subject Definition (ST) repeating
  • URS-2: R/U when data start date / time (TS) optional
  • URS-3: R/U when data end date / time (TS) optional
  • URS-4: R/U What User Qualifier (ST) optional repeating
  • URS-5: R/U Other Results Subject Definition (ST) optional repeating
  • URS-6: R/U which date / time qualifier (ID) optional repeating
  • URS-7: R/U which date / time status qualifier (ID) optional repeating
  • URS-8: R/U date / time selection qualifier (ID) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getRUWhereSubjectDefinition

      Returns all repetitions of R/U Where Subject Definition (URS-1).
    • getUrs1_RUWhereSubjectDefinition

      Returns all repetitions of R/U Where Subject Definition (URS-1).
    • getRUWhereSubjectDefinitionReps

      Returns a count of the current number of repetitions of R/U Where Subject Definition (URS-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRUWhereSubjectDefinition

      public ST getRUWhereSubjectDefinition(int rep)
      Returns a specific repetition of URS-1: "R/U Where Subject Definition" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs1_RUWhereSubjectDefinition

      Returns a specific repetition of URS-1: "R/U Where Subject Definition" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs1_RUWhereSubjectDefinitionReps

      Returns a count of the current number of repetitions of R/U Where Subject Definition (URS-1). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRUWhereSubjectDefinition

      Inserts a repetition of URS-1: "R/U Where Subject Definition" 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)
    • insertUrs1_RUWhereSubjectDefinition

      Inserts a repetition of URS-1: "R/U Where Subject Definition" 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)
    • removeRUWhereSubjectDefinition

      Removes a repetition of URS-1: "R/U Where Subject Definition" 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)
    • removeUrs1_RUWhereSubjectDefinition

      Removes a repetition of URS-1: "R/U Where Subject Definition" 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)
    • getRUWhenDataStartDateTime

      Returns URS-2: "R/U when data start date / time" - creates it if necessary
    • getUrs2_RUWhenDataStartDateTime

      Returns URS-2: "R/U when data start date / time" - creates it if necessary
    • getRUWhenDataEndDateTime

      Returns URS-3: "R/U when data end date / time" - creates it if necessary
    • getUrs3_RUWhenDataEndDateTime

      Returns URS-3: "R/U when data end date / time" - creates it if necessary
    • getRUWhatUserQualifier

      Returns all repetitions of R/U What User Qualifier (URS-4).
    • getUrs4_RUWhatUserQualifier

      Returns all repetitions of R/U What User Qualifier (URS-4).
    • getRUWhatUserQualifierReps

      Returns a count of the current number of repetitions of R/U What User Qualifier (URS-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRUWhatUserQualifier

      public ST getRUWhatUserQualifier(int rep)
      Returns a specific repetition of URS-4: "R/U What User Qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs4_RUWhatUserQualifier

      public ST getUrs4_RUWhatUserQualifier(int rep)
      Returns a specific repetition of URS-4: "R/U What User Qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs4_RUWhatUserQualifierReps

      Returns a count of the current number of repetitions of R/U What User Qualifier (URS-4). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRUWhatUserQualifier

      public ST insertRUWhatUserQualifier(int rep) throws HL7Exception
      Inserts a repetition of URS-4: "R/U What User Qualifier" 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)
    • insertUrs4_RUWhatUserQualifier

      Inserts a repetition of URS-4: "R/U What User Qualifier" 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)
    • removeRUWhatUserQualifier

      public ST removeRUWhatUserQualifier(int rep) throws HL7Exception
      Removes a repetition of URS-4: "R/U What User Qualifier" 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)
    • removeUrs4_RUWhatUserQualifier

      Removes a repetition of URS-4: "R/U What User Qualifier" 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)
    • getRUOtherResultsSubjectDefinition

      Returns all repetitions of R/U Other Results Subject Definition (URS-5).
    • getUrs5_RUOtherResultsSubjectDefinition

      Returns all repetitions of R/U Other Results Subject Definition (URS-5).
    • getRUOtherResultsSubjectDefinitionReps

      Returns a count of the current number of repetitions of R/U Other Results Subject Definition (URS-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRUOtherResultsSubjectDefinition

      Returns a specific repetition of URS-5: "R/U Other Results Subject Definition" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs5_RUOtherResultsSubjectDefinition

      Returns a specific repetition of URS-5: "R/U Other Results Subject Definition" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs5_RUOtherResultsSubjectDefinitionReps

      Returns a count of the current number of repetitions of R/U Other Results Subject Definition (URS-5). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRUOtherResultsSubjectDefinition

      Inserts a repetition of URS-5: "R/U Other Results Subject Definition" 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)
    • insertUrs5_RUOtherResultsSubjectDefinition

      Inserts a repetition of URS-5: "R/U Other Results Subject Definition" 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)
    • removeRUOtherResultsSubjectDefinition

      Removes a repetition of URS-5: "R/U Other Results Subject Definition" 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)
    • removeUrs5_RUOtherResultsSubjectDefinition

      Removes a repetition of URS-5: "R/U Other Results Subject Definition" 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)
    • getRUWhichDateTimeQualifier

      Returns all repetitions of R/U which date / time qualifier (URS-6).
    • getUrs6_RUWhichDateTimeQualifier

      Returns all repetitions of R/U which date / time qualifier (URS-6).
    • getRUWhichDateTimeQualifierReps

      Returns a count of the current number of repetitions of R/U which date / time qualifier (URS-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRUWhichDateTimeQualifier

      public ID getRUWhichDateTimeQualifier(int rep)
      Returns a specific repetition of URS-6: "R/U which date / time qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs6_RUWhichDateTimeQualifier

      Returns a specific repetition of URS-6: "R/U which date / time qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs6_RUWhichDateTimeQualifierReps

      Returns a count of the current number of repetitions of R/U which date / time qualifier (URS-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRUWhichDateTimeQualifier

      Inserts a repetition of URS-6: "R/U which date / time qualifier" 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)
    • insertUrs6_RUWhichDateTimeQualifier

      Inserts a repetition of URS-6: "R/U which date / time qualifier" 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)
    • removeRUWhichDateTimeQualifier

      Removes a repetition of URS-6: "R/U which date / time qualifier" 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)
    • removeUrs6_RUWhichDateTimeQualifier

      Removes a repetition of URS-6: "R/U which date / time qualifier" 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)
    • getRUWhichDateTimeStatusQualifier

      Returns all repetitions of R/U which date / time status qualifier (URS-7).
    • getUrs7_RUWhichDateTimeStatusQualifier

      Returns all repetitions of R/U which date / time status qualifier (URS-7).
    • getRUWhichDateTimeStatusQualifierReps

      Returns a count of the current number of repetitions of R/U which date / time status qualifier (URS-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRUWhichDateTimeStatusQualifier

      Returns a specific repetition of URS-7: "R/U which date / time status qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs7_RUWhichDateTimeStatusQualifier

      Returns a specific repetition of URS-7: "R/U which date / time status qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs7_RUWhichDateTimeStatusQualifierReps

      Returns a count of the current number of repetitions of R/U which date / time status qualifier (URS-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRUWhichDateTimeStatusQualifier

      Inserts a repetition of URS-7: "R/U which date / time status qualifier" 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)
    • insertUrs7_RUWhichDateTimeStatusQualifier

      Inserts a repetition of URS-7: "R/U which date / time status qualifier" 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)
    • removeRUWhichDateTimeStatusQualifier

      Removes a repetition of URS-7: "R/U which date / time status qualifier" 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)
    • removeUrs7_RUWhichDateTimeStatusQualifier

      Removes a repetition of URS-7: "R/U which date / time status qualifier" 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)
    • getRUDateTimeSelectionQualifier

      Returns all repetitions of R/U date / time selection qualifier (URS-8).
    • getUrs8_RUDateTimeSelectionQualifier

      Returns all repetitions of R/U date / time selection qualifier (URS-8).
    • getRUDateTimeSelectionQualifierReps

      Returns a count of the current number of repetitions of R/U date / time selection qualifier (URS-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getRUDateTimeSelectionQualifier

      Returns a specific repetition of URS-8: "R/U date / time selection qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs8_RUDateTimeSelectionQualifier

      Returns a specific repetition of URS-8: "R/U date / time selection qualifier" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUrs8_RUDateTimeSelectionQualifierReps

      Returns a count of the current number of repetitions of R/U date / time selection qualifier (URS-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertRUDateTimeSelectionQualifier

      Inserts a repetition of URS-8: "R/U date / time selection qualifier" 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)
    • insertUrs8_RUDateTimeSelectionQualifier

      Inserts a repetition of URS-8: "R/U date / time selection qualifier" 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)
    • removeRUDateTimeSelectionQualifier

      Removes a repetition of URS-8: "R/U date / time selection qualifier" 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)
    • removeUrs8_RUDateTimeSelectionQualifier

      Removes a repetition of URS-8: "R/U date / time selection qualifier" 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