PV1 — Patient Visit
Appears in ADT messages, ORM orders, ORU results, and SIU scheduling messages. Always paired with PID.
The PV1 segment contains information specific to a patient's visit or encounter, including patient class, assigned location, attending provider, and admission and discharge details. It is the core encounter record in HL7 v2.x.
Real-World Context
PV1 is the encounter record. PV1.2 (patient class) and PV1.3 (assigned location) are the most frequently checked fields in routing and clinical decision support. When an order disappears or routes to the wrong department, start by checking PV1.3 format — the UNIT^ROOM^BED^FACILITY structure must match exactly what the receiving system expects.
Field Reference
Click any row to see the full description, common values, and troubleshooting tip.
| # | Field Name | Type | Req | Max Len | |
|---|---|---|---|---|---|
| 1 | Set ID - PV1 | SI | O | 4 | ▶ |
| 2 | Patient Class | IS | R | 1 | ▶ |
| 3 | Assigned Patient Location | PL | O | 80 | ▶ |
| 4 | Admission Type | IS | O | 2 | ▶ |
| 5 | Preadmit Number | CX | O | 250 | ▶ |
| 6 | Prior Patient Location | PL | O | 80 | ▶ |
| 7 | Attending Doctor | XCN | O | 250 | ▶ |
| 8 | Referring Doctor | XCN | O | 250 | ▶ |
| 9 | Consulting Doctor | XCN | O | 250 | ▶ |
| 10 | Hospital Service | IS | O | 3 | ▶ |
| 11 | Temporary Location | PL | O | 80 | ▶ |
| 12 | Preadmit Test Indicator | IS | O | 2 | ▶ |
| 13 | Readmission Indicator | IS | O | 2 | ▶ |
| 14 | Admit Source | IS | O | 6 | ▶ |
| 15 | Ambulatory Status | IS | O | 2 | ▶ |
| 16 | VIP Indicator | IS | O | 2 | ▶ |
| 17 | Admitting Doctor | XCN | O | 250 | ▶ |
| 18 | Patient Type | IS | O | 2 | ▶ |
| 19 | Visit Number | CX | O | 250 | ▶ |
| 20 | Financial Class | FC | O | 50 | ▶ |
| 21 | Charge Price Indicator | IS | O | 2 | ▶ |
| 22 | Courtesy Code | IS | O | 2 | ▶ |
| 23 | Credit Rating | IS | O | 2 | ▶ |
| 24 | Contract Code | IS | O | 2 | ▶ |
| 25 | Contract Effective Date | DT | O | 8 | ▶ |
| 26 | Contract Amount | NM | O | 12 | ▶ |
| 27 | Contract Period | NM | O | 3 | ▶ |
| 28 | Interest Code | IS | O | 2 | ▶ |
| 29 | Transfer to Bad Debt Code | IS | O | 4 | ▶ |
| 30 | Transfer to Bad Debt Date | DT | O | 8 | ▶ |
| 31 | Bad Debt Agency Code | IS | O | 10 | ▶ |
| 32 | Bad Debt Transfer Amount | NM | O | 12 | ▶ |
| 33 | Bad Debt Recovery Amount | NM | O | 12 | ▶ |
| 34 | Delete Account Indicator | IS | O | 1 | ▶ |
| 35 | Delete Account Date | DT | O | 8 | ▶ |
| 36 | Discharge Disposition | IS | O | 3 | ▶ |
| 37 | Discharged to Location | DLD | O | 47 | ▶ |
| 38 | Diet Type | CE | O | 250 | ▶ |
| 39 | Servicing Facility | IS | O | 2 | ▶ |
| 40 | Bed Status | IS | O | 1 | ▶ |
| 41 | Account Status | IS | O | 2 | ▶ |
| 42 | Pending Location | PL | O | 80 | ▶ |
| 43 | Prior Temporary Location | PL | O | 80 | ▶ |
| 44 | Admit Date/Time | TS | O | 26 | ▶ |
| 45 | Discharge Date/Time | TS | O | 26 | ▶ |
| 46 | Current Patient Balance | NM | O | 12 | ▶ |
| 47 | Total Charges | NM | O | 12 | ▶ |
| 48 | Total Adjustments | NM | O | 12 | ▶ |
| 49 | Total Payments | NM | O | 12 | ▶ |
| 50 | Alternate Visit ID | CX | O | 250 | ▶ |
| 51 | Visit Indicator | IS | O | 1 | ▶ |
| 52 | Other Healthcare Provider | XCN | O | 250 | ▶ |
Example Segment
1PV1||1|I|4NORTH^401^A^MAIN^^BED|E||PRE001|1234567890^JONES^ROBERT^^^MD^NPI||5566778899^CHEN^LISA^^^MD^NPI|MED|||7|R|1122334455^SMITH^KAREN^^^MD^NPI|1|VN20260310001^^^HOSPITAL^VN|MEDICARE^20260101||||||||||||||||01||AC|||20260310143205
Related Segments
Used In Message Types
Parse messages with PV1 in real time
Paste any HL7 message into our free viewer. Decodes every segment and field instantly, client-side.
Open HL7 Message Viewer →Need HL7 mapping templates?
The HL7 Integration Toolkit includes field mapping worksheets, interface spec templates, and a go-live checklist for every major HL7 message type.
View HL7 Integration Toolkit →