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 - UB2 (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 & Code (CM_UVC) optional repeating
  • UB2-7: Occurrence Code & 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 (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
  • UB2-17: Special Visit Count (NM) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDUB2

      public SI getSetIDUB2()
      Returns UB2-1: "Set ID - UB2" - creates it if necessary
    • getUb21_SetIDUB2

      public SI getUb21_SetIDUB2()
      Returns UB2-1: "Set ID - UB2" - 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
    • getValueAmountCode

      Returns all repetitions of Value Amount & Code (UB2-6).
    • getUb26_ValueAmountCode

      Returns all repetitions of Value Amount & Code (UB2-6).
    • getValueAmountCodeReps

      public int getValueAmountCodeReps()
      Returns a count of the current number of repetitions of Value Amount & Code (UB2-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getValueAmountCode

      public CM_UVC getValueAmountCode(int rep)
      Returns a specific repetition of UB2-6: "Value Amount & Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb26_ValueAmountCode

      public CM_UVC getUb26_ValueAmountCode(int rep)
      Returns a specific repetition of UB2-6: "Value Amount & Code" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb26_ValueAmountCodeReps

      Returns a count of the current number of repetitions of Value Amount & Code (UB2-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertValueAmountCode

      public CM_UVC insertValueAmountCode(int rep) throws HL7Exception
      Inserts a repetition of UB2-6: "Value Amount & Code" 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_ValueAmountCode

      Inserts a repetition of UB2-6: "Value Amount & Code" 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)
    • removeValueAmountCode

      public CM_UVC removeValueAmountCode(int rep) throws HL7Exception
      Removes a repetition of UB2-6: "Value Amount & Code" 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_ValueAmountCode

      Removes a repetition of UB2-6: "Value Amount & Code" 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)
    • getOccurrenceCodeDate3235

      Returns all repetitions of Occurrence Code & Date (32-35) (UB2-7).
    • getUb27_OccurrenceCodeDate3235

      Returns all repetitions of Occurrence Code & Date (32-35) (UB2-7).
    • getOccurrenceCodeDate3235Reps

      Returns a count of the current number of repetitions of Occurrence Code & 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.
    • getOccurrenceCodeDate3235

      Returns a specific repetition of UB2-7: "Occurrence Code & Date (32-35)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb27_OccurrenceCodeDate3235

      Returns a specific repetition of UB2-7: "Occurrence Code & Date (32-35)" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb27_OccurrenceCodeDate3235Reps

      Returns a count of the current number of repetitions of Occurrence Code & 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.
    • insertOccurrenceCodeDate3235

      Inserts a repetition of UB2-7: "Occurrence Code & 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_OccurrenceCodeDate3235

      Inserts a repetition of UB2-7: "Occurrence Code & 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)
    • removeOccurrenceCodeDate3235

      Removes a repetition of UB2-7: "Occurrence Code & 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_OccurrenceCodeDate3235

      Removes a repetition of UB2-7: "Occurrence Code & 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 (UB2-12).
    • getUb212_DocumentControlNumber

      Returns all repetitions of Document Control Number (UB2-12).
    • getDocumentControlNumberReps

      Returns a count of the current number of repetitions of Document Control Number (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" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getUb212_DocumentControlNumber

      Returns a specific repetition of UB2-12: "Document Control Number" - 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 (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" 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" 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" 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" 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)
    • getSpecialVisitCount

      Returns UB2-17: "Special Visit Count" - creates it if necessary
    • getUb217_SpecialVisitCount

      Returns UB2-17: "Special Visit Count" - creates it if necessary
    • createNewTypeWithoutReflection

      protected Type createNewTypeWithoutReflection(int field)
      Overrides:
      createNewTypeWithoutReflection in class AbstractSegment