BAR: Add/change billing account
This page lists the structures and trigger events BAR defines, taken from the standard. The written commentary that theADT page carries has not been written for BAR.
Recognising BAR messages
BAR announces itself in MSH-9 like this:
BAR^P01^BAR_P01- MSH-9.1
BARmessage code: what kind of message this is - MSH-9.2
P01trigger event: what happened in the real world: add patient account - MSH-9.3
BAR_P01message structure: which segments to expect, and in what order
How to use these specifications explains MSH-9 in full, with a worked example.
Message structures
BAR takes 6 structures. The first 4 are shown in full; the rest are listed below.
BAR_P01: Add Patient Account
Sent when one thing happens: P01: Add Patient Account.
You must always send: MSH, EVN, PID. Everything else is optional, or required only inside a group you chose to send.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| SFT | O | 0..* | |
| EVN | R | 1..1 | |
| PID | R | 1..1 | |
| PD1 | O | 0..1 | |
| ROL | O | 0..* | |
| VISIT | a group of 15 segments, repeated together | R | 1..* |
| PV1 | O | 0..1 | |
| PV2 | O | 0..1 | |
| ROL | O | 0..* | |
| DB1 | O | 0..* | |
| OBX | O | 0..* | |
| AL1 | O | 0..* | |
| DG1 | O | 0..* | |
| DRG | O | 0..1 | |
| PROCEDURE | a group of 2 segments, repeated together | O | 0..* |
| PR1in PROCEDURE | R | 1..1 | |
| ROLin PROCEDURE | O | 0..* | |
| GT1 | O | 0..* | |
| NK1 | O | 0..* | |
| INSURANCE | a group of 4 segments, repeated together | O | 0..* |
| IN1in INSURANCE | R | 1..1 | |
| IN2in INSURANCE | O | 0..1 | |
| IN3in INSURANCE | O | 0..* | |
| ROLin INSURANCE | O | 0..* | |
| ACC | O | 0..1 | |
| UB1 | O | 0..1 | |
| UB2 | O | 0..1 |
R inside a group means required of that group. Send the group and you must include that segment; leave the group out and it never appears. This structure has 3 such groups: VISIT, PROCEDURE, INSURANCE.
BAR_P02: Purge Patient Accounts
Sent when one thing happens: P02: Purge Patient Accounts.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| SFT | O | 0..* | |
| EVN | R | 1..1 | |
| PATIENT | a group of 4 segments, repeated together | R | 1..* |
| PID | R | 1..1 | |
| PD1 | O | 0..1 | |
| PV1 | O | 0..1 | |
| DB1 | O | 0..* |
R inside a group means required of that group. Send the group and you must include that segment; leave the group out and it never appears. This structure has 1 such group: PATIENT.
BAR_P05: Update Account
Sent when one thing happens: P05: Update Account.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| SFT | O | 0..* | |
| EVN | R | 1..1 | |
| PID | R | 1..1 | |
| PD1 | O | 0..1 | |
| ROL | O | 0..* | |
| VISIT | a group of 18 segments, repeated together | R | 1..* |
| PV1 | O | 0..1 | |
| PV2 | O | 0..1 | |
| ROL | O | 0..* | |
| DB1 | O | 0..* | |
| OBX | O | 0..* | |
| AL1 | O | 0..* | |
| DG1 | O | 0..* | |
| DRG | O | 0..1 | |
| PROCEDURE | a group of 2 segments, repeated together | O | 0..* |
| PR1in PROCEDURE | R | 1..1 | |
| ROLin PROCEDURE | O | 0..* | |
| GT1 | O | 0..* | |
| NK1 | O | 0..* | |
| INSURANCE | a group of 4 segments, repeated together | O | 0..* |
| IN1in INSURANCE | R | 1..1 | |
| IN2in INSURANCE | O | 0..1 | |
| IN3in INSURANCE | O | 0..* | |
| ROLin INSURANCE | O | 0..* | |
| ACC | O | 0..1 | |
| UB1 | O | 0..1 | |
| UB2 | O | 0..1 | |
| ABS | O | 0..1 | |
| BLC | O | 0..* | |
| RMI | O | 0..1 |
BAR_P06: End Account
Sent when one thing happens: P06: End Account.
| Segment | Name | OPT | Cardinality |
|---|---|---|---|
| MSH | R | 1..1 | |
| SFT | O | 0..* | |
| EVN | R | 1..1 | |
| PATIENT | a group of 2 segments, repeated together | R | 1..* |
| PID | R | 1..1 | |
| PV1 | O | 0..1 |
Other BAR structures
| Structure | Name | Events |
|---|---|---|
| BAR_P10 | P10 | |
| BAR_P12 | Update Diagnosis/Procedure | P12 |
Trigger events
The trigger event is the real-world thing that made the message get sent. BAR defines 6.
| Event | Name | Structure |
|---|---|---|
| P01 | Add Patient Account | BAR_P01 |
| P02 | Purge Patient Accounts | BAR_P02 |
| P05 | Update Account | BAR_P05 |
| P06 | End Account | BAR_P06 |
| P10 | P10 | BAR_P10 |
| P12 | Update Diagnosis/Procedure | BAR_P12 |