BAR^P02 — Purge Patient Accounts
Complete purge request for one or several patient accounts on the billing side
(administrative HIS to Billing module). Distinct from ADT^A29 which
purges the identity in the clinical HIS: P02 only touches the financial dimension.
Purpose
P02 instructs the Billing/financial system to purge one or more patient accounts. Typical cases: post-archival accounting closure, GDPR Article 17 (right to erasure), periodic purge of statute-expired records (10 years in France for the legal retention duration of patient post-care records).
Segment structure
Structure BAR_P02: MSH, [SFT], { EVN, PID, [PD1], [PV1], [DB1] } (1..* groups).
EVN-1— Event Type Code:P02.EVN-2— Recorded Date/Time.EVN-5— Operator ID (technical account that triggered the purge — GDPR audit).PV1-19— Visit Number / Account Number (account to purge).DB1— Disability Segment (rarely used in P02 — left for consistency with P01).
Real-world example
Purge of patient account ACCT-1995-08812 (stay closed since 2015, 10 years elapsed):
MSH|^~\&|HIS|HOSP01|BILL|BILLING01|20260519170000||BAR^P02^BAR_P02|BARP02001|P|2.5.1|||AL|NE
EVN|P02|20260519170000|||MEHDI^Mehdi^Admin
PID|1||MR050000099^^^HOSP^MR||DELAUNAY^FRANCOISE^^^MS.||19550218|F
PV1|1|N|||||||||||||||||ACCT-1995-08812
DB1|1|PT|ACCT-1995-08812|N GDPR / retention period
In France, HAS recommends 20 years of medical record retention
(article R1112-7 CSP) and 10 years for financial records
(Code de commerce). BAR^P02 is typically triggered by a nightly batch on accounts
whose last invoice is older than now - 10 years.
In the UK, the NHS Records Management Code 2023 requires 8 years after the last consultation for adults. In the US, HIPAA varies by state (6 years typical for CMS-mandated records).
Common errors
- Purge with non-zero balance: most Billing systems refuse P02 if the account balance is > 0. Check first.
- Confusion P02 vs A29: P02 = financial, A29 = clinical/identity. For a complete GDPR erasure, send both.
- EVN-5 missing: the originating operator must be traced for GDPR audit compliance (article 30).
- PV1-19 missing: without account number, Billing doesn't know what to purge.
BAR family (Billing & Accounts)
| Code | Trigger event | Description |
|---|---|---|
| P01 | Add Patient Accounts | Account creation. |
| P02 | Purge Patient Accounts | This page. |
| P05 | Update Patient Accounts | Account update. |
| P06 | End Patient Accounts | Account close. |
| P10 | Transmit Ambulatory Payment Classification (APC) | Ambulatory pricing. |