Class UB2

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class UB2 extends AbstractSegment

Represents an HL7 UB2 message segment (UB92 DATA). This segment has the following fields:

  • UB2-1: Set ID - UB92 (SI) optional
  • UB2-2: Co-insurance days (9) (ST) optional
  • UB2-3: Condition code (24-30) (ID) optional repeating
  • UB2-4: Covered days (7) (ST) optional
  • UB2-5: Non-covered days (8) (ST) optional
  • UB2-6: Value amount and code (39-41) (CM_UVC) optional repeating
  • UB2-7: Occurrence code and date (32-35) (CM_OCD) optional repeating
  • UB2-8: Occurrence span code / dates (36) (CM_OSP) optional repeating
  • UB2-9: UB92 locator 2 (state) (ST) optional repeating
  • UB2-10: UB92 locator 11 (state) (ST) optional repeating
  • UB2-11: UB92 locator 31 (national) (ST) optional
  • UB2-12: Document control number (37) (ST) optional repeating
  • UB2-13: UB92 locator 49 (national) (ST) optional repeating
  • UB2-14: UB92 locator 56 (state) (ST) optional repeating
  • UB2-15: UB92 locator 57 (national) (ST) optional
  • UB2-16: UB92 Locator 78 (state) (ST) optional repeating
See Also:
  • Constructor Details

  • Method Details

    • getSetIDUB92

      public SI getSetIDUB92()
      Returns UB2-1: "Set ID - UB92" - creates it if necessary
    • getUb21_SetIDUB92

      Returns UB2-1: "Set ID - UB92" - creates it if necessary
    • getCoInsuranceDays9

      Returns UB2-2: "Co-insurance days (9)" - creates it if necessary
    • getUb22_CoInsuranceDays9

      Returns UB2-2: "Co-insurance days (9)" - creates it if necessary
    • getConditionCode2430

      Returns all repetitions of Condition code (24-30) (UB2-3).
    • getUb23_ConditionCode2430

      Returns all repetitions of Condition code (24-30) (UB2-3).
    • getConditionCode2430Reps

      Returns a count of the current number of repetitions of Condition code (24-30) (UB2-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getConditionCode2430

      public ID getConditionCode2430(int rep)
      Returns a specific repetition of UB2-3: "Condition code (24-30)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb23_ConditionCode2430

      public ID getUb23_ConditionCode2430(int rep)
      Returns a specific repetition of UB2-3: "Condition code (24-30)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb23_ConditionCode2430Reps

      Returns a count of the current number of repetitions of Condition code (24-30) (UB2-3). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertConditionCode2430

      public ID insertConditionCode2430(int rep) throws HL7Exception
      Inserts a repetition of UB2-3: "Condition code (24-30)" 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)
    • insertUb23_ConditionCode2430

      public ID insertUb23_ConditionCode2430(int rep) throws HL7Exception
      Inserts a repetition of UB2-3: "Condition code (24-30)" 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)
    • removeConditionCode2430

      public ID removeConditionCode2430(int rep) throws HL7Exception
      Removes a repetition of UB2-3: "Condition code (24-30)" 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)
    • removeUb23_ConditionCode2430

      public ID removeUb23_ConditionCode2430(int rep) throws HL7Exception
      Removes a repetition of UB2-3: "Condition code (24-30)" 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)
    • getCoveredDays7

      public ST getCoveredDays7()
      Returns UB2-4: "Covered days (7)" - creates it if necessary
    • getUb24_CoveredDays7

      Returns UB2-4: "Covered days (7)" - creates it if necessary
    • getNonCoveredDays8

      Returns UB2-5: "Non-covered days (8)" - creates it if necessary
    • getUb25_NonCoveredDays8

      Returns UB2-5: "Non-covered days (8)" - creates it if necessary
    • getValueAmountAndCode3941

      Returns all repetitions of Value amount and code (39-41) (UB2-6).
    • getUb26_ValueAmountAndCode3941

      Returns all repetitions of Value amount and code (39-41) (UB2-6).
    • getValueAmountAndCode3941Reps

      Returns a count of the current number of repetitions of Value amount and code (39-41) (UB2-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getValueAmountAndCode3941

      Returns a specific repetition of UB2-6: "Value amount and code (39-41)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb26_ValueAmountAndCode3941

      Returns a specific repetition of UB2-6: "Value amount and code (39-41)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb26_ValueAmountAndCode3941Reps

      Returns a count of the current number of repetitions of Value amount and code (39-41) (UB2-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertValueAmountAndCode3941

      Inserts a repetition of UB2-6: "Value amount and code (39-41)" 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)
    • insertUb26_ValueAmountAndCode3941

      Inserts a repetition of UB2-6: "Value amount and code (39-41)" 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)
    • removeValueAmountAndCode3941

      Removes a repetition of UB2-6: "Value amount and code (39-41)" 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)
    • removeUb26_ValueAmountAndCode3941

      Removes a repetition of UB2-6: "Value amount and code (39-41)" 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)
    • getOccurrenceCodeAndDate3235

      Returns all repetitions of Occurrence code and date (32-35) (UB2-7).
    • getUb27_OccurrenceCodeAndDate3235

      Returns all repetitions of Occurrence code and date (32-35) (UB2-7).
    • getOccurrenceCodeAndDate3235Reps

      Returns a count of the current number of repetitions of Occurrence code and date (32-35) (UB2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getOccurrenceCodeAndDate3235

      Returns a specific repetition of UB2-7: "Occurrence code and date (32-35)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb27_OccurrenceCodeAndDate3235

      Returns a specific repetition of UB2-7: "Occurrence code and date (32-35)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb27_OccurrenceCodeAndDate3235Reps

      Returns a count of the current number of repetitions of Occurrence code and date (32-35) (UB2-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertOccurrenceCodeAndDate3235

      Inserts a repetition of UB2-7: "Occurrence code and date (32-35)" 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)
    • insertUb27_OccurrenceCodeAndDate3235

      Inserts a repetition of UB2-7: "Occurrence code and date (32-35)" 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)
    • removeOccurrenceCodeAndDate3235

      Removes a repetition of UB2-7: "Occurrence code and date (32-35)" 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)
    • removeUb27_OccurrenceCodeAndDate3235

      Removes a repetition of UB2-7: "Occurrence code and date (32-35)" 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)
    • getOccurrenceSpanCodeDates

      Returns all repetitions of Occurrence span code / dates (36) (UB2-8).
    • getUb28_OccurrenceSpanCodeDates

      Returns all repetitions of Occurrence span code / dates (36) (UB2-8).
    • getOccurrenceSpanCodeDatesReps

      Returns a count of the current number of repetitions of Occurrence span code / dates (36) (UB2-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getOccurrenceSpanCodeDates

      Returns a specific repetition of UB2-8: "Occurrence span code / dates (36)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb28_OccurrenceSpanCodeDates

      Returns a specific repetition of UB2-8: "Occurrence span code / dates (36)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb28_OccurrenceSpanCodeDatesReps

      Returns a count of the current number of repetitions of Occurrence span code / dates (36) (UB2-8). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertOccurrenceSpanCodeDates

      Inserts a repetition of UB2-8: "Occurrence span code / dates (36)" 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)
    • insertUb28_OccurrenceSpanCodeDates

      Inserts a repetition of UB2-8: "Occurrence span code / dates (36)" 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)
    • removeOccurrenceSpanCodeDates

      Removes a repetition of UB2-8: "Occurrence span code / dates (36)" 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)
    • removeUb28_OccurrenceSpanCodeDates

      Removes a repetition of UB2-8: "Occurrence span code / dates (36)" 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)
    • getUB92Locator2State

      Returns all repetitions of UB92 locator 2 (state) (UB2-9).
    • getUb29_UB92Locator2State

      Returns all repetitions of UB92 locator 2 (state) (UB2-9).
    • getUB92Locator2StateReps

      Returns a count of the current number of repetitions of UB92 locator 2 (state) (UB2-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getUB92Locator2State

      public ST getUB92Locator2State(int rep)
      Returns a specific repetition of UB2-9: "UB92 locator 2 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb29_UB92Locator2State

      public ST getUb29_UB92Locator2State(int rep)
      Returns a specific repetition of UB2-9: "UB92 locator 2 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb29_UB92Locator2StateReps

      Returns a count of the current number of repetitions of UB92 locator 2 (state) (UB2-9). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertUB92Locator2State

      public ST insertUB92Locator2State(int rep) throws HL7Exception
      Inserts a repetition of UB2-9: "UB92 locator 2 (state)" 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)
    • insertUb29_UB92Locator2State

      public ST insertUb29_UB92Locator2State(int rep) throws HL7Exception
      Inserts a repetition of UB2-9: "UB92 locator 2 (state)" 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)
    • removeUB92Locator2State

      public ST removeUB92Locator2State(int rep) throws HL7Exception
      Removes a repetition of UB2-9: "UB92 locator 2 (state)" 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)
    • removeUb29_UB92Locator2State

      public ST removeUb29_UB92Locator2State(int rep) throws HL7Exception
      Removes a repetition of UB2-9: "UB92 locator 2 (state)" 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)
    • getUB92Locator11State

      Returns all repetitions of UB92 locator 11 (state) (UB2-10).
    • getUb210_UB92Locator11State

      Returns all repetitions of UB92 locator 11 (state) (UB2-10).
    • getUB92Locator11StateReps

      Returns a count of the current number of repetitions of UB92 locator 11 (state) (UB2-10). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getUB92Locator11State

      public ST getUB92Locator11State(int rep)
      Returns a specific repetition of UB2-10: "UB92 locator 11 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb210_UB92Locator11State

      public ST getUb210_UB92Locator11State(int rep)
      Returns a specific repetition of UB2-10: "UB92 locator 11 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb210_UB92Locator11StateReps

      Returns a count of the current number of repetitions of UB92 locator 11 (state) (UB2-10). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertUB92Locator11State

      public ST insertUB92Locator11State(int rep) throws HL7Exception
      Inserts a repetition of UB2-10: "UB92 locator 11 (state)" 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)
    • insertUb210_UB92Locator11State

      Inserts a repetition of UB2-10: "UB92 locator 11 (state)" 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)
    • removeUB92Locator11State

      public ST removeUB92Locator11State(int rep) throws HL7Exception
      Removes a repetition of UB2-10: "UB92 locator 11 (state)" 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)
    • removeUb210_UB92Locator11State

      Removes a repetition of UB2-10: "UB92 locator 11 (state)" 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)
    • getUB92Locator31National

      Returns UB2-11: "UB92 locator 31 (national)" - creates it if necessary
    • getUb211_UB92Locator31National

      Returns UB2-11: "UB92 locator 31 (national)" - creates it if necessary
    • getDocumentControlNumber

      Returns all repetitions of Document control number (37) (UB2-12).
    • getUb212_DocumentControlNumber

      Returns all repetitions of Document control number (37) (UB2-12).
    • getDocumentControlNumberReps

      Returns a count of the current number of repetitions of Document control number (37) (UB2-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getDocumentControlNumber

      public ST getDocumentControlNumber(int rep)
      Returns a specific repetition of UB2-12: "Document control number (37)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb212_DocumentControlNumber

      Returns a specific repetition of UB2-12: "Document control number (37)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb212_DocumentControlNumberReps

      Returns a count of the current number of repetitions of Document control number (37) (UB2-12). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertDocumentControlNumber

      public ST insertDocumentControlNumber(int rep) throws HL7Exception
      Inserts a repetition of UB2-12: "Document control number (37)" 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)
    • insertUb212_DocumentControlNumber

      Inserts a repetition of UB2-12: "Document control number (37)" 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)
    • removeDocumentControlNumber

      public ST removeDocumentControlNumber(int rep) throws HL7Exception
      Removes a repetition of UB2-12: "Document control number (37)" 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)
    • removeUb212_DocumentControlNumber

      Removes a repetition of UB2-12: "Document control number (37)" 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)
    • getUB92Locator49National

      Returns all repetitions of UB92 locator 49 (national) (UB2-13).
    • getUb213_UB92Locator49National

      Returns all repetitions of UB92 locator 49 (national) (UB2-13).
    • getUB92Locator49NationalReps

      Returns a count of the current number of repetitions of UB92 locator 49 (national) (UB2-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getUB92Locator49National

      public ST getUB92Locator49National(int rep)
      Returns a specific repetition of UB2-13: "UB92 locator 49 (national)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb213_UB92Locator49National

      Returns a specific repetition of UB2-13: "UB92 locator 49 (national)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb213_UB92Locator49NationalReps

      Returns a count of the current number of repetitions of UB92 locator 49 (national) (UB2-13). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertUB92Locator49National

      public ST insertUB92Locator49National(int rep) throws HL7Exception
      Inserts a repetition of UB2-13: "UB92 locator 49 (national)" 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)
    • insertUb213_UB92Locator49National

      Inserts a repetition of UB2-13: "UB92 locator 49 (national)" 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)
    • removeUB92Locator49National

      public ST removeUB92Locator49National(int rep) throws HL7Exception
      Removes a repetition of UB2-13: "UB92 locator 49 (national)" 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)
    • removeUb213_UB92Locator49National

      Removes a repetition of UB2-13: "UB92 locator 49 (national)" 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)
    • getUB92Locator56State

      Returns all repetitions of UB92 locator 56 (state) (UB2-14).
    • getUb214_UB92Locator56State

      Returns all repetitions of UB92 locator 56 (state) (UB2-14).
    • getUB92Locator56StateReps

      Returns a count of the current number of repetitions of UB92 locator 56 (state) (UB2-14). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getUB92Locator56State

      public ST getUB92Locator56State(int rep)
      Returns a specific repetition of UB2-14: "UB92 locator 56 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb214_UB92Locator56State

      public ST getUb214_UB92Locator56State(int rep)
      Returns a specific repetition of UB2-14: "UB92 locator 56 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb214_UB92Locator56StateReps

      Returns a count of the current number of repetitions of UB92 locator 56 (state) (UB2-14). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertUB92Locator56State

      public ST insertUB92Locator56State(int rep) throws HL7Exception
      Inserts a repetition of UB2-14: "UB92 locator 56 (state)" 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)
    • insertUb214_UB92Locator56State

      Inserts a repetition of UB2-14: "UB92 locator 56 (state)" 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)
    • removeUB92Locator56State

      public ST removeUB92Locator56State(int rep) throws HL7Exception
      Removes a repetition of UB2-14: "UB92 locator 56 (state)" 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)
    • removeUb214_UB92Locator56State

      Removes a repetition of UB2-14: "UB92 locator 56 (state)" 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)
    • getUB92Locator57National

      Returns UB2-15: "UB92 locator 57 (national)" - creates it if necessary
    • getUb215_UB92Locator57National

      Returns UB2-15: "UB92 locator 57 (national)" - creates it if necessary
    • getUB92Locator78State

      Returns all repetitions of UB92 Locator 78 (state) (UB2-16).
    • getUb216_UB92Locator78State

      Returns all repetitions of UB92 Locator 78 (state) (UB2-16).
    • getUB92Locator78StateReps

      Returns a count of the current number of repetitions of UB92 Locator 78 (state) (UB2-16). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getUB92Locator78State

      public ST getUB92Locator78State(int rep)
      Returns a specific repetition of UB2-16: "UB92 Locator 78 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb216_UB92Locator78State

      public ST getUb216_UB92Locator78State(int rep)
      Returns a specific repetition of UB2-16: "UB92 Locator 78 (state)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb216_UB92Locator78StateReps

      Returns a count of the current number of repetitions of UB92 Locator 78 (state) (UB2-16). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertUB92Locator78State

      public ST insertUB92Locator78State(int rep) throws HL7Exception
      Inserts a repetition of UB2-16: "UB92 Locator 78 (state)" 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)
    • insertUb216_UB92Locator78State

      Inserts a repetition of UB2-16: "UB92 Locator 78 (state)" 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)
    • removeUB92Locator78State

      public ST removeUB92Locator78State(int rep) throws HL7Exception
      Removes a repetition of UB2-16: "UB92 Locator 78 (state)" 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)
    • removeUb216_UB92Locator78State

      Removes a repetition of UB2-16: "UB92 Locator 78 (state)" 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