Class GT1

All Implemented Interfaces:
Segment, Structure, Visitable, Serializable

public class GT1 extends AbstractSegment

Represents an HL7 GT1 message segment (GUARANTOR). This segment has the following fields:

  • GT1-1: Set ID - guarantor (SI)
  • GT1-2: Guarantor number (CK) optional
  • GT1-3: Guarantor name (PN)
  • GT1-4: Guarantor spouse name (PN) optional
  • GT1-5: Guarantor address (AD) optional
  • GT1-6: Guarantor phone number - home (TN) optional repeating
  • GT1-7: Guarantor phone number - business (TN) optional repeating
  • GT1-8: Guarantor date of birth (DT) optional
  • GT1-9: Guarantor sex (ID) optional
  • GT1-10: Guarantor type (ID) optional
  • GT1-11: Guarantor relationship (ID) optional
  • GT1-12: Guarantor social security number (ST) optional
  • GT1-13: Guarantor date - begin (DT) optional
  • GT1-14: Guarantor date - end (DT) optional
  • GT1-15: Guarantor priority (NM) optional
  • GT1-16: Guarantor employer name (ST) optional
  • GT1-17: Guarantor employer address (AD) optional
  • GT1-18: Guarantor employ phone number (TN) optional repeating
  • GT1-19: Guarantor employee ID number (ST) optional
  • GT1-20: Guarantor employment status (ID) optional
  • GT1-21: Guarantor organization (ST) optional
See Also:
  • Constructor Details

  • Method Details

    • getSetIDGuarantor

      Returns GT1-1: "Set ID - guarantor" - creates it if necessary
    • getGt11_SetIDGuarantor

      Returns GT1-1: "Set ID - guarantor" - creates it if necessary
    • getGuarantorNumber

      Returns GT1-2: "Guarantor number" - creates it if necessary
    • getGt12_GuarantorNumber

      Returns GT1-2: "Guarantor number" - creates it if necessary
    • getGuarantorName

      public PN getGuarantorName()
      Returns GT1-3: "Guarantor name" - creates it if necessary
    • getGt13_GuarantorName

      Returns GT1-3: "Guarantor name" - creates it if necessary
    • getGuarantorSpouseName

      Returns GT1-4: "Guarantor spouse name" - creates it if necessary
    • getGt14_GuarantorSpouseName

      Returns GT1-4: "Guarantor spouse name" - creates it if necessary
    • getGuarantorAddress

      Returns GT1-5: "Guarantor address" - creates it if necessary
    • getGt15_GuarantorAddress

      Returns GT1-5: "Guarantor address" - creates it if necessary
    • getGuarantorPhoneNumberHome

      Returns all repetitions of Guarantor phone number - home (GT1-6).
    • getGt16_GuarantorPhoneNumberHome

      Returns all repetitions of Guarantor phone number - home (GT1-6).
    • getGuarantorPhoneNumberHomeReps

      Returns a count of the current number of repetitions of Guarantor phone number - home (GT1-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getGuarantorPhoneNumberHome

      public TN getGuarantorPhoneNumberHome(int rep)
      Returns a specific repetition of GT1-6: "Guarantor phone number - home" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGt16_GuarantorPhoneNumberHome

      Returns a specific repetition of GT1-6: "Guarantor phone number - home" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGt16_GuarantorPhoneNumberHomeReps

      Returns a count of the current number of repetitions of Guarantor phone number - home (GT1-6). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertGuarantorPhoneNumberHome

      Inserts a repetition of GT1-6: "Guarantor phone number - home" 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)
    • insertGt16_GuarantorPhoneNumberHome

      Inserts a repetition of GT1-6: "Guarantor phone number - home" 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)
    • removeGuarantorPhoneNumberHome

      Removes a repetition of GT1-6: "Guarantor phone number - home" 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)
    • removeGt16_GuarantorPhoneNumberHome

      Removes a repetition of GT1-6: "Guarantor phone number - home" 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)
    • getGuarantorPhoneNumberBusiness

      Returns all repetitions of Guarantor phone number - business (GT1-7).
    • getGt17_GuarantorPhoneNumberBusiness

      Returns all repetitions of Guarantor phone number - business (GT1-7).
    • getGuarantorPhoneNumberBusinessReps

      Returns a count of the current number of repetitions of Guarantor phone number - business (GT1-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getGuarantorPhoneNumberBusiness

      Returns a specific repetition of GT1-7: "Guarantor phone number - business" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGt17_GuarantorPhoneNumberBusiness

      Returns a specific repetition of GT1-7: "Guarantor phone number - business" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGt17_GuarantorPhoneNumberBusinessReps

      Returns a count of the current number of repetitions of Guarantor phone number - business (GT1-7). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertGuarantorPhoneNumberBusiness

      Inserts a repetition of GT1-7: "Guarantor phone number - business" 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)
    • insertGt17_GuarantorPhoneNumberBusiness

      Inserts a repetition of GT1-7: "Guarantor phone number - business" 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)
    • removeGuarantorPhoneNumberBusiness

      Removes a repetition of GT1-7: "Guarantor phone number - business" 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)
    • removeGt17_GuarantorPhoneNumberBusiness

      Removes a repetition of GT1-7: "Guarantor phone number - business" 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)
    • getGuarantorDateOfBirth

      Returns GT1-8: "Guarantor date of birth" - creates it if necessary
    • getGt18_GuarantorDateOfBirth

      Returns GT1-8: "Guarantor date of birth" - creates it if necessary
    • getGuarantorSex

      public ID getGuarantorSex()
      Returns GT1-9: "Guarantor sex" - creates it if necessary
    • getGt19_GuarantorSex

      Returns GT1-9: "Guarantor sex" - creates it if necessary
    • getGuarantorType

      public ID getGuarantorType()
      Returns GT1-10: "Guarantor type" - creates it if necessary
    • getGt110_GuarantorType

      Returns GT1-10: "Guarantor type" - creates it if necessary
    • getGuarantorRelationship

      Returns GT1-11: "Guarantor relationship" - creates it if necessary
    • getGt111_GuarantorRelationship

      Returns GT1-11: "Guarantor relationship" - creates it if necessary
    • getGuarantorSocialSecurityNumber

      Returns GT1-12: "Guarantor social security number" - creates it if necessary
    • getGt112_GuarantorSocialSecurityNumber

      Returns GT1-12: "Guarantor social security number" - creates it if necessary
    • getGuarantorDateBegin

      Returns GT1-13: "Guarantor date - begin" - creates it if necessary
    • getGt113_GuarantorDateBegin

      Returns GT1-13: "Guarantor date - begin" - creates it if necessary
    • getGuarantorDateEnd

      Returns GT1-14: "Guarantor date - end" - creates it if necessary
    • getGt114_GuarantorDateEnd

      Returns GT1-14: "Guarantor date - end" - creates it if necessary
    • getGuarantorPriority

      Returns GT1-15: "Guarantor priority" - creates it if necessary
    • getGt115_GuarantorPriority

      Returns GT1-15: "Guarantor priority" - creates it if necessary
    • getGuarantorEmployerName

      Returns GT1-16: "Guarantor employer name" - creates it if necessary
    • getGt116_GuarantorEmployerName

      Returns GT1-16: "Guarantor employer name" - creates it if necessary
    • getGuarantorEmployerAddress

      Returns GT1-17: "Guarantor employer address" - creates it if necessary
    • getGt117_GuarantorEmployerAddress

      Returns GT1-17: "Guarantor employer address" - creates it if necessary
    • getGuarantorEmployPhoneNumber

      Returns all repetitions of Guarantor employ phone number (GT1-18).
    • getGt118_GuarantorEmployPhoneNumber

      Returns all repetitions of Guarantor employ phone number (GT1-18).
    • getGuarantorEmployPhoneNumberReps

      Returns a count of the current number of repetitions of Guarantor employ phone number (GT1-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • getGuarantorEmployPhoneNumber

      Returns a specific repetition of GT1-18: "Guarantor employ phone number" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGt118_GuarantorEmployPhoneNumber

      Returns a specific repetition of GT1-18: "Guarantor employ phone number" - creates it if necessary
      Parameters:
      rep - The repetition index (0-indexed)
    • getGt118_GuarantorEmployPhoneNumberReps

      Returns a count of the current number of repetitions of Guarantor employ phone number (GT1-18). This method does not create a repetition, so if no repetitions have currently been defined or accessed, it will return zero.
    • insertGuarantorEmployPhoneNumber

      Inserts a repetition of GT1-18: "Guarantor employ phone 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)
    • insertGt118_GuarantorEmployPhoneNumber

      Inserts a repetition of GT1-18: "Guarantor employ phone 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)
    • removeGuarantorEmployPhoneNumber

      Removes a repetition of GT1-18: "Guarantor employ phone 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)
    • removeGt118_GuarantorEmployPhoneNumber

      Removes a repetition of GT1-18: "Guarantor employ phone 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)
    • getGuarantorEmployeeIDNumber

      Returns GT1-19: "Guarantor employee ID number" - creates it if necessary
    • getGt119_GuarantorEmployeeIDNumber

      Returns GT1-19: "Guarantor employee ID number" - creates it if necessary
    • getGuarantorEmploymentStatus

      Returns GT1-20: "Guarantor employment status" - creates it if necessary
    • getGt120_GuarantorEmploymentStatus

      Returns GT1-20: "Guarantor employment status" - creates it if necessary
    • getGuarantorOrganization

      Returns GT1-21: "Guarantor organization" - creates it if necessary
    • getGt121_GuarantorOrganization

      Returns GT1-21: "Guarantor organization" - creates it if necessary
    • createNewTypeWithoutReflection

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