Schedule a demo
Segment

Grouping/reimbursement - visit

Carries visit-level grouping and reimbursement data specific to CMS Ambulatory Payment Classifications (APCs) and the Outpatient Prospective Payment System (OPPS), including type of bill code, revenue codes, claim disposition code, and outlier cost. It appears in DFT and billing-related messages sent between hospital billing systems and claims processing applications. GP1 is specific to U.S. healthcare reimbursement workflows.

5fields
1required
v2.9HL7 version
gp1.py
from zato.hl7v2.v2_9 import GP1
from zato.hl7v2.v2_9 import CWE

gp1 = GP1()
gp1.type_of_bill_code = CWE(
    identifier='131',
    text='Hospital Outpatient'
)
gp1.revenue_code = CWE(
    identifier='0942',
    text='Wellness Program'
)

Build GP1 segments in Python

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

1

Wellness visit billing

Outpatient wellness program visit

from zato.hl7v2.v2_9 import GP1
from zato.hl7v2.v2_9 import CWE

gp1 = GP1()
gp1.type_of_bill_code = CWE(
    identifier='131',
    text='Hospital Outpatient'
)
gp1.revenue_code = CWE(
    identifier='0942',
    text='Wellness Program'
)
gp1.reimbursement_action_code = CWE(
    identifier='1',
    text='Claim submitted'
)
2

Preventive care billing

Annual wellness screening visit

from zato.hl7v2.v2_9 import GP1
from zato.hl7v2.v2_9 import CWE

gp1 = GP1()
gp1.type_of_bill_code = CWE(
    identifier='131',
    text='Hospital Outpatient'
)
gp1.revenue_code = CWE(
    identifier='0770',
    text='Preventive Care'
)
gp1.reimbursement_action_code = CWE(
    identifier='1',
    text='Claim submitted'
)
3

Nutrition counseling billing

Dietary services visit

from zato.hl7v2.v2_9 import GP1
from zato.hl7v2.v2_9 import CWE

gp1 = GP1()
gp1.type_of_bill_code = CWE(
    identifier='131',
    text='Hospital Outpatient'
)
gp1.revenue_code = CWE(
    identifier='0943',
    text='Nutrition Services'
)
gp1.reimbursement_action_code = CWE(
    identifier='1',
    text='Claim submitted'
)

Learn by building

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

Frequently asked questions

GP1 contains grouping and reimbursement information for visits including type of bill, revenue codes, and reimbursement action codes for wellness program billing.

Common wellness revenue codes include 0942 (Wellness Program), 0770 (Preventive Care), and 0943 (Nutrition Services).

GP1 contains visit-level grouping information while GP2 contains procedure line item details. Both work together for complete reimbursement information.

Type of bill code 131 is commonly used for hospital outpatient visits including wellness and preventive care services.

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.

GP1 field reference

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

#Python nameDatatypeUsageRepeatableTable
1type_of_bill_codeCWERequiredNoHL70455
2revenue_codeCWEOptionalYesHL70456
3overall_claim_disposition_codeCWEOptionalNoHL70457
4oce_edits_per_visit_codeCWEOptionalYesHL70458
5outlier_costCPOptionalNo-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python