BAR^P06 — End Account
The patient financial account is definitively closed: billing finalised, payments reconciled. P06 locks the account for archival.
Purpose
P06 marks the end of life of a patient account: the final invoice has been issued and paid (or written off as bad debt) and no further changes will be accepted. The receiver freezes the account for legal archival: in France, minimum 10 years post-discharge for patient records.
P06 is typically emitted weeks or months after the A03 discharge, once X12 837 / ADRi / Noémie flows have been processed, payments reconciled and litigation closed.
Segment structure
BAR_P06
MSH Message Header (mandatory)
[ SFT ] Software Segment (optional)
EVN Event Type (mandatory)
{ Account loop (1..n)
PID Patient Identification
[ PV1 ] Patient Visit
} Real-world example
Closure of patient John A. Doe's ACCT123456 account on 1 June 2026, two weeks after discharge:
MSH|^~\&|HIS|HOSP01|BILLING|HOSP01|20260601090000||BAR^P06^BAR_P06|MSG00014001|P|2.5.1
EVN|P06|20260601090000|||USER001^Smith^John^^^DR.
PID|1||MRN567890^^^HOSP^MR||DOE^JOHN^A^^MR.||19720515|M|||100 MAIN ST^^ANYTOWN^CA^90210^USA||(555)555-1234|||S||ACCT123456|123-45-6789
PV1|1|I|MED^205^B^HOSP01|EM|||DRSMITH^Smith^James^A^^DR.|||MED|||1|||DRSMITH^Smith^James^A^^DR.|ADM|||||||||||||||||||HOSP01|HOM|||||20260514102530|20260518173000 Acknowledgment (ACK)
MSH|^~\&|BILLING|HOSP01|HIS|HOSP01|20260601090001||ACK^P06^ACK|ACK00014001|P|2.5.1
MSA|AA|MSG00014001 Common errors
- P06 emitted before discharge: invalid; the account is still active and must accept further P05.
- P06 without preceding P01: no account to close on the receiver side.
- P05 sent after P06: rejected by mature billing systems.
- P06 in the context of an A11: admission cancellation removes the account; no P06 needed.
Related BAR events
| Code | Trigger event | Description |
|---|---|---|
| P01 | Add Patient Accounts | Creation. |
| P03 / P05 | Update Account | In-life updates. |
| P06 | End Account | This page. |
| P02 | Purge Patient Accounts | Physical purge after legal retention. |
See also:
BAR^P05,
BAR^P01, and
FHIR Account (status inactive).