Schedule a demo
Segment

Grouping/reimbursement - procedure line item

Carries procedure-line-item-level grouping and reimbursement data for CMS APC processing, including revenue code linked to procedure codes, modifier codes, payment adjustment code, and packaging status. It complements GP1 by providing line-item detail for each procedure within a visit, used in the same U.S. outpatient reimbursement billing workflows and messages.

14fields
0required
v2.9HL7 version
gp2.py
from zato.hl7v2.v2_9 import GP2
from zato.hl7v2.v2_9 import CWE, CP

gp2 = GP2()
gp2.revenue_code = CWE(
    identifier='0942',
    text='Wellness Program'
)
gp2.number_of_service_units = '1'
gp2.charge = CP(price='75.00')

Build GP2 segments in Python

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

1

Fitness assessment line item

Billing for wellness fitness evaluation

from zato.hl7v2.v2_9 import GP2
from zato.hl7v2.v2_9 import CWE, CP

gp2 = GP2()
gp2.revenue_code = CWE(
    identifier='0942',
    text='Wellness Program'
)
gp2.number_of_service_units = '1'
gp2.charge = CP(price='75.00')
gp2.procedure_code = CWE(
    identifier='S5000',
    text='Fitness Assessment',
    name_of_coding_system='CPT'
)
2

Nutrition consultation line item

Billing for dietary counseling session

from zato.hl7v2.v2_9 import GP2
from zato.hl7v2.v2_9 import CWE, CP

gp2 = GP2()
gp2.revenue_code = CWE(
    identifier='0943',
    text='Nutrition Services'
)
gp2.number_of_service_units = '1'
gp2.charge = CP(price='95.00')
gp2.procedure_code = CWE(
    identifier='97802',
    text='Medical Nutrition Therapy',
    name_of_coding_system='CPT'
)
3

Preventive screening line item

Billing for annual wellness screening

from zato.hl7v2.v2_9 import GP2
from zato.hl7v2.v2_9 import CWE, CP

gp2 = GP2()
gp2.revenue_code = CWE(
    identifier='0770',
    text='Preventive Care'
)
gp2.number_of_service_units = '1'
gp2.charge = CP(price='150.00')
gp2.procedure_code = CWE(
    identifier='99395',
    text='Preventive Visit',
    name_of_coding_system='CPT'
)

Learn by building

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

Frequently asked questions

GP2 contains grouping and reimbursement information for procedure line items including revenue codes, procedure codes, and charges for wellness service billing.

Use CPT or HCPCS codes in the procedure_code field:

gp2.procedure_code = CWE(
    identifier='97802',
    text='Medical Nutrition Therapy',
    name_of_coding_system='CPT'
)

GP1 contains visit-level grouping information while GP2 contains individual procedure line item details. Multiple GP2 segments can follow a single GP1 for complex wellness visits.

Use modifier_code field for CPT modifiers like 25 (significant separate service) or 59 (distinct procedural service) when billing multiple wellness 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.

GP2 field reference

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

#Python nameDatatypeUsageRepeatableTable
1revenue_codeCWEOptionalNoHL70456
2number_of_service_unitsNMOptionalNo-
3chargeCPOptionalNo-
4reimbursement_action_codeCWEOptionalNoHL70459
5denial_or_rejection_codeCWEOptionalNoHL70460
6oce_edit_codeCWEOptionalYesHL70458
7ambulatory_payment_classification_codeCWEOptionalNoHL70466
8modifier_edit_codeCWEOptionalYesHL70467
9payment_adjustment_codeCWEOptionalNoHL70468
10packaging_status_codeCWEOptionalNoHL70469
11expected_cms_payment_amountCPOptionalNo-
12reimbursement_type_codeCWEOptionalNoHL70470
13co_pay_amountCPOptionalNo-
14pay_rate_per_service_unitNMOptionalNo-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python