Schedule a demo
Segment

Payment information

Carries payment and remittance details for healthcare claims, including the payment advice number, effective and expiration dates, the payment method (check, EFT, etc.), the remittance amount, and payee banking information. It appears in EHC payment and remittance messages (EHC^E01, EHC^E02, EHC^E04) to communicate how and when the payer has disbursed funds to the provider or payee.

12fields
7required
v2.9HL7 version
pmt.py
from zato.hl7v2 import PMT

pmt = PMT()
pmt.payment_remittance_amount = '3200.00'
pmt.payment_remittance_date_time = '20260315'

Build PMT segments in Python

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

1

Check payment

Payment remittance by check with the advice number, amount, and check number

from zato.hl7v2.v2_9 import PMT
from zato.hl7v2.v2_9 import EI, CWE

pmt = PMT()
pmt.payment_remittance_advice_number = EI(
    entity_identifier='RA001',
    namespace_id='HOSP'
)
pmt.payment_remittance_effective_date_time = (
    '20240301'
)
pmt.payment_remittance_expiration_date_time = (
    '20240401'
)
pmt.payment_method = CWE(
    identifier='CHK',
    text='Check',
    name_of_coding_system='HL70570'
)
pmt.payment_remittance_date_time = (
    '20240315'
)
pmt.payment_remittance_amount = '3200.00'
pmt.check_number = EI(entity_identifier='CK12345')
2

Electronic funds transfer

EFT payment with payee bank identification, transit number, and account details

from zato.hl7v2.v2_9 import PMT
from zato.hl7v2.v2_9 import EI, CWE, XON

pmt = PMT()
pmt.payment_remittance_advice_number = EI(
    entity_identifier='RA002',
    namespace_id='HOSP'
)
pmt.payment_remittance_effective_date_time = (
    '20240501'
)
pmt.payment_remittance_expiration_date_time = (
    '20240601'
)
pmt.payment_method = CWE(
    identifier='EFT',
    text='Electronic funds transfer',
    name_of_coding_system='HL70570'
)
pmt.payment_remittance_date_time = (
    '20240515'
)
pmt.payment_remittance_amount = '8750.00'
pmt.payee_bank_identification = XON(organization_name='First National')
pmt.payee_transit_number = '021000021'
pmt.payment_organization = XON(organization_name='Blue Cross')
3

Remittance with ESR

Swiss ESR-based payment with the ESR code line for automated reconciliation

from zato.hl7v2.v2_9 import PMT
from zato.hl7v2.v2_9 import EI, CWE, XON

pmt = PMT()
pmt.payment_remittance_advice_number = EI(
    entity_identifier='RA003',
    namespace_id='HOSP'
)
pmt.payment_remittance_effective_date_time = (
    '20240701'
)
pmt.payment_remittance_expiration_date_time = (
    '20240801'
)
pmt.payment_method = CWE(
    identifier='ESR',
    text='ESR payment',
    name_of_coding_system='HL70570'
)
pmt.payment_remittance_date_time = (
    '20240710'
)
pmt.payment_remittance_amount = '1500.00'
pmt.payment_organization = XON(organization_name='Swiss Insurer')
pmt.esr_code_line = (
    '0100000123456>'
    '120000000000023+'
    ' 010001234>'
)

Learn by building

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

Frequently asked questions

PMT carries payment and remittance details in healthcare claim messages. It specifies the advice number, payment method (check, EFT, ESR), the remittance amount, banking details, and the paying organization, enabling providers to reconcile received payments against submitted claims.

The payment_method field uses the CWE datatype with HL7 table 0570:

from zato.hl7v2.v2_9 import PMT, CWE

pmt = PMT()
pmt.payment_method = CWE(
    identifier='EFT',
    text='Electronic funds transfer',
    name_of_coding_system='HL70570'
)

The payment_organization field uses the XON datatype:

from zato.hl7v2.v2_9 import PMT, XON

pmt = PMT()
pmt.payment_organization = XON(organization_name='Blue Cross')

Use the payee_bank_identification, payee_transit_number, and payee_bank_account_id fields:

from zato.hl7v2.v2_9 import PMT, XON

pmt = PMT()
pmt.payee_bank_identification = XON(organization_name='First National')
pmt.payee_transit_number = '021000021'

The esr_code_line field carries a Swiss ESR (Einzahlungsschein mit Referenznummer) payment reference used for automated reconciliation in Swiss healthcare billing:

from zato.hl7v2.v2_9 import PMT

pmt = PMT()
pmt.esr_code_line = (
    '0100000123456>'
    '120000000000023+'
    ' 010001234>'
)

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.

PMT field reference

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

#Python nameDatatypeUsageRepeatableTable
1payment_remittance_advice_numberEIRequiredNo-
2payment_remittance_effective_date_timeDTMRequiredNo-
3payment_remittance_expiration_date_timeDTMRequiredNo-
4payment_methodCWERequiredNoHL70570
5payment_remittance_date_timeDTMRequiredNo-
6payment_remittance_amountCPRequiredNo-
7check_numberEIOptionalNo-
8payee_bank_identificationXONOptionalNo-
9payee_transit_numberSTOptionalNo-
10payee_bank_account_idCXOptionalNo-
11payment_organizationXONRequiredNo-
12esr_code_lineSTOptionalNo-

Ready to build integrations?

Get started with Zato and connect your systems in minutes.

Open source In Python