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.
from zato.hl7v2 import PMT
pmt = PMT()
pmt.payment_remittance_amount = '3200.00'
pmt.payment_remittance_date_time = '20260315'How to construct and work with real-world PMT segments.
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')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')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>'
)Step-by-step guides for working with HL7 v2 in Zato.
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.
Complete list of fields in the PMT segment, HL7 v2.9.
| # | Python name | Datatype | Usage | Repeatable | Table |
|---|---|---|---|---|---|
| 1 | payment_remittance_advice_number | EI | Required | No | - |
| 2 | payment_remittance_effective_date_time | DTM | Required | No | - |
| 3 | payment_remittance_expiration_date_time | DTM | Required | No | - |
| 4 | payment_method | CWE | Required | No | HL70570 |
| 5 | payment_remittance_date_time | DTM | Required | No | - |
| 6 | payment_remittance_amount | CP | Required | No | - |
| 7 | check_number | EI | Optional | No | - |
| 8 | payee_bank_identification | XON | Optional | No | - |
| 9 | payee_transit_number | ST | Optional | No | - |
| 10 | payee_bank_account_id | CX | Optional | No | - |
| 11 | payment_organization | XON | Required | No | - |
| 12 | esr_code_line | ST | Optional | No | - |
Get started with Zato and connect your systems in minutes.