Schedule a demo
Segment

Guarantor

Identifies the person or organization financially responsible for the patient's account, including guarantor name, address, employer, and relationship to the patient. It appears in ADT, BAR, and DFT messages, typically sent by registration or patient accounting systems to billing and accounts receivable systems to establish who is responsible for payment.

57fields
2required
v2.9HL7 version
gt1.py
from zato.hl7v2 import GT1

gt1 = GT1()
gt1.set_id_gt1 = '1'
gt1.guarantor_name = 'SMITH^JOHN'
gt1.guarantor_type = 'I'
gt1.guarantor_relationship = 'SEL'

Build GT1 segments in Python

How to construct and work with real-world GT1 segments.

1

Self guarantor

Patient registered as their own guarantor with name, address, and phone

from zato.hl7v2.v2_9 import GT1
from zato.hl7v2.v2_9 import XPN, XAD, XTN, CWE

gt1 = GT1()
gt1.set_id_gt1 = '1'
gt1.guarantor_name = XPN(
    family_name='SMITH',
    given_name='JOHN',
    middle_name='A'
)
gt1.guarantor_address = XAD(
    street_address='123 Oak Ln',
    city='Portland',
    state_or_province='OR',
    zip_or_postal_code='97201'
)
gt1.guarantor_ph_num_home = XTN(
    telecommunication_use_code='PRN',
    telecommunication_equipment_type='PH',
    country_code='1',
    area_city_code='503',
    local_number='5551234'
)
gt1.guarantor_date_time_of_birth = '19850615'
gt1.guarantor_administrative_sex = CWE(identifier='M')
gt1.guarantor_type = CWE(identifier='I')
gt1.guarantor_relationship = CWE(identifier='SEL')
2

Parent guarantor

Parent listed as guarantor for a child's wellness visit

from zato.hl7v2.v2_9 import GT1
from zato.hl7v2.v2_9 import XPN, XAD, XTN, CWE

gt1 = GT1()
gt1.set_id_gt1 = '1'
gt1.guarantor_name = XPN(
    family_name='GARCIA',
    given_name='ELENA',
    middle_name='R'
)
gt1.guarantor_address = XAD(
    street_address='456 Elm Dr',
    city='Austin',
    state_or_province='TX',
    zip_or_postal_code='73301'
)
gt1.guarantor_ph_num_home = XTN(
    telecommunication_use_code='PRN',
    telecommunication_equipment_type='PH',
    country_code='1',
    area_city_code='512',
    local_number='5556789'
)
gt1.guarantor_ph_num_business = XTN(
    telecommunication_use_code='WPN',
    telecommunication_equipment_type='PH',
    country_code='1',
    area_city_code='512',
    local_number='5550100'
)
gt1.guarantor_date_time_of_birth = '19780320'
gt1.guarantor_administrative_sex = CWE(identifier='F')
gt1.guarantor_type = CWE(identifier='I')
gt1.guarantor_relationship = CWE(identifier='PAR')
3

Employer guarantor

Organization listed as guarantor with employer details for a routine checkup

from zato.hl7v2.v2_9 import GT1
from zato.hl7v2.v2_9 import XPN, XAD, XTN, CWE, CX, XON

gt1 = GT1()
gt1.set_id_gt1 = '1'
gt1.guarantor_name = XPN(family_name='GREENVALLEY WELLNESS')
gt1.guarantor_type = CWE(identifier='O')
gt1.guarantor_employer_name = XPN(family_name='GREENVALLEY WELLNESS')
gt1.guarantor_employer_address = XAD(
    street_address='100 Wellness Blvd',
    city='Denver',
    state_or_province='CO',
    zip_or_postal_code='80202'
)
gt1.guarantor_employer_phone_number = XTN(
    telecommunication_use_code='WPN',
    telecommunication_equipment_type='PH',
    country_code='1',
    area_city_code='720',
    local_number='5558000'
)
gt1.guarantor_employee_id_number = CX(id_number='EMP-7001')
gt1.guarantor_employment_status = CWE(identifier='FT')

Learn by building

Step-by-step guides for working with HL7 v2 in Zato.

Frequently asked questions

GT1 identifies the person or organization financially responsible for a patient's account. It carries the guarantor's name, address, phone numbers, relationship to the patient, employer information, and demographic details. It appears in ADT, BAR, and DFT messages.

Create the segment, set its fields, then read them back:

from zato.hl7v2.v2_9 import GT1, XPN, CWE

gt1 = GT1()
gt1.guarantor_name = XPN(
    family_name='SMITH',
    given_name='JOHN'
)
gt1.guarantor_type = CWE(identifier='I')

name = gt1.guarantor_name
gtype = gt1.guarantor_type

The guarantor_relationship field uses the CWE datatype with HL7 table 0063 codes:

from zato.hl7v2.v2_9 import GT1, CWE

gt1 = GT1()
gt1.guarantor_relationship = CWE(identifier='SEL')

# Common codes:
# SEL = Self
# SPO = Spouse
# PAR = Parent
# GRD = Guardian

Create separate GT1 instances for each guarantor, each with its own set_id_gt1:

from zato.hl7v2.v2_9 import GT1, XPN, CWE

primary = GT1()
primary.set_id_gt1 = '1'
primary.guarantor_name = XPN(
    family_name='SMITH',
    given_name='JOHN'
)

secondary = GT1()
secondary.set_id_gt1 = '2'
secondary.guarantor_name = XPN(
    family_name='GARCIA',
    given_name='ELENA'
)

Use the employer fields to capture the guarantor's workplace information:

from zato.hl7v2.v2_9 import GT1
from zato.hl7v2.v2_9 import XPN, XAD, XTN

gt1 = GT1()
gt1.guarantor_employer_name = XPN(family_name='GREENVALLEY WELLNESS')
gt1.guarantor_employer_address = XAD(
    street_address='100 Wellness Blvd',
    city='Denver',
    state_or_province='CO',
    zip_or_postal_code='80202'
)
gt1.guarantor_employer_phone_number = XTN(
    telecommunication_use_code='WPN',
    telecommunication_equipment_type='PH',
    country_code='1',
    area_city_code='720',
    local_number='5558000'
)

Zato connects to any system that speaks HL7v2 over MLLP or FHIR over REST. This includes Epic, Cerner, Meditech, Allscripts, and other EHR platforms.

Yes, Zato has built-in MLLP support for sending and receiving HL7v2 messages. MLLP channels handle the framing protocol automatically.

Zato supports HL7 v2.9, which is backward compatible with earlier versions including v2.3, v2.5, and v2.7. Standard segments and datatypes are available as typed Python classes.

Yes. Zato handles both HL7v2 and FHIR natively, so you can parse v2 messages and build FHIR resources with IG-specific extensions in the same service. Typed Python classes are available for both protocols, including extensions from US Core, UK Core, Da Vinci, and other Implementation Guides.

GT1 field reference

Complete list of fields in the GT1 segment, HL7 v2.9.

#Python nameDatatypeUsageRepeatableTable
1set_id_gt1SIRequiredNo-
2guarantor_numberCXOptionalYes-
3guarantor_nameXPNRequiredYes-
4guarantor_spouse_nameXPNOptionalYes-
5guarantor_addressXADOptionalYes-
6guarantor_ph_num_homeXTNOptionalYes-
7guarantor_ph_num_businessXTNOptionalYes-
8guarantor_date_time_of_birthDTMOptionalNo-
9guarantor_administrative_sexCWEOptionalNoHL70001
10guarantor_typeCWEOptionalNoHL70068
11guarantor_relationshipCWEOptionalNoHL70063
12guarantor_ssnSTOptionalNo-
13guarantor_date_beginDTOptionalNo-
14guarantor_date_endDTOptionalNo-
15guarantor_priorityNMOptionalNo-
16guarantor_employer_nameXPNOptionalYes-
17guarantor_employer_addressXADOptionalYes-
18guarantor_employer_phone_numberXTNOptionalYes-
19guarantor_employee_id_numberCXOptionalYes-
20guarantor_employment_statusCWEOptionalNoHL70066
21guarantor_organization_nameXONOptionalYes-
22guarantor_billing_hold_flagIDOptionalNoHL70136
23guarantor_credit_rating_codeCWEOptionalNoHL70341
24guarantor_death_date_and_timeDTMOptionalNo-
25guarantor_death_flagIDOptionalNoHL70136
26guarantor_charge_adjustment_codeCWEOptionalNoHL70218
27guarantor_household_annual_incomeCPOptionalNo-
28guarantor_household_sizeNMOptionalNo-
29guarantor_employer_id_numberCXOptionalYes-
30guarantor_marital_status_codeCWEOptionalNoHL70002
31guarantor_hire_effective_dateDTOptionalNo-
32employment_stop_dateDTOptionalNo-
33living_dependencyCWEOptionalNoHL70223
34ambulatory_statusCWEOptionalYesHL70009
35citizenshipCWEOptionalYesHL70171
36primary_languageCWEOptionalNoHL70296
37living_arrangementCWEOptionalNoHL70220
38publicity_codeCWEOptionalNoHL70215
39protection_indicatorIDOptionalNoHL70136
40student_indicatorCWEOptionalNoHL70231
41religionCWEOptionalNoHL70006
42mothers_maiden_nameXPNOptionalYes-
43nationalityCWEOptionalNoHL70212
44ethnic_groupCWEOptionalYesHL70189
45contact_persons_nameXPNOptionalYes-
46contact_persons_telephone_numberXTNOptionalYes-
47contact_reasonCWEOptionalNoHL70222
48contact_relationshipCWEOptionalNoHL70063
49job_titleSTOptionalNo-
50job_code_classJCCOptionalNo-
51guarantor_employers_organization_nameXONOptionalYes-
52handicapCWEOptionalNoHL70295
53job_statusCWEOptionalNoHL70311
54guarantor_financial_classFCOptionalNo-
55guarantor_raceCWEOptionalYesHL70005
56guarantor_birth_placeSTOptionalNo-
57vip_indicatorCWEOptionalNoHL70099

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python