HL7 BAR_P02 Purge Patient Accounts
BAR_P02 is used when a patient account or set of accounts needs to be purged from a patient accounting or financial system. In many organizations purging is an internal billing-system function, so an external P02 feed is less common than add, update, or end-account messages.
When it is used, treat it carefully. This is not a normal demographic correction and it is not a voided charge line. It tells the receiver that account-level billing records may need to be deleted, suppressed, or otherwise removed according to local financial policy.
A small BAR_P02 example
What systems do with it
The sender may be a registration, ADT, account correction, or conversion system. The receiver decides whether the identified account can be purged, archived, marked inactive, or rejected. In regulated billing environments, a true delete may be replaced by a local inactive or correction status.
In an interface engine such as Integration Soup, this is a message I would route with more logging than usual. If the receiver rejects the purge, operations should see the failure clearly rather than discovering later that billing and registration disagree.
How to read the structure
The local structure has MSH, EVN, and one or more patient groups. Each patient group requires PID and may include PD1, PV1, and DB1. The key practical question is which patient/account identifiers the receiver uses to find the account being purged.
Implementation traps
The standard allows a series of accounts in one event, but the reference note recommends only one PID per event. That is a good operational rule too. One account purge per message is much easier to audit, retry, reject, and explain.
Do not use P02 to reverse a single charge. Use the site's DFT correction, void, reversal, or adjustment workflow for charge-level correction.
Reference notes
The HL7 v2+ BAR_P02 page describes this event as a notice of account deletion that may be processed by the patient accounting or financial system, and recommends sending only one PID segment per event.