PIX/PDQ Cheat Sheet
PIX Message
MSH - Message Header
The fields in the MSH segment are as follows:
SEQ LEN DT OPT RP/# ELEMENT NAME
1 1 ST R Field Separator
2 4 ST R Encoding Characters
3 180 HD O Sending Application
4 180 HD O Sending Facility
5 180 HD O Receiving Application
6 180 HD O Receiving Facility
7 26 TS O Date/Time of Message
8 40 ST O Security
9 7 CM_MSG R Message Type
10 20 ST R Message Control Id
11 3 PT R Processing Id
12 8 ID R Version Id
13 15 NM O Sequence Number
14 180 ST O Continuation Pointer
15 2 ID O Accept Acknowledgement Type
16 2 ID O Application Acknowledgement Type
17 2 ID O Country Code
18 6 ID O Character Set
19 3 CE O Principal Language of Message
EVN Fields (Event)
Field Type Len Description ===== ==== === =========================================== EVN-1 ID 3 Event Type Code EVN-2 TS 26 Date/Time of Event EVN-3 TS 26 Date/Time Planned Event EVN-4 IS 3 Event Reason Code EVN-5 XCN 60 Operator ID EVN-6 TS 26 Event Occurred
PID Fields (Patient Identification)
SEQ | LEN | DT | OPT | RP/# | ELEMENT NAME |
---|---|---|---|---|---|
1 | 4 | SI | O | Set ID – Patient ID | |
2 | 20 | CX | O | Patient ID (External ID) | |
3 | 20 | CX | R | Y | Patient ID (Internal ID) |
4 | 20 | CX | O | Y | Alternate Patient ID – PID |
5 | 48 | XPN | R | Y | Patient Name |
6 | 48 | XPN | O | Mother’s Maiden Name | |
7 | 26 | TS | O | Date/Time of Birth | |
8 | 1 | IS | O | Sex | |
9 | 48 | XPN | O | Y | Patient Alias |
10 | 1 | IS | O | Race | |
11 | 106 | XAD | O | Y | Patient Address |
12 | 4 | IS | B | Country Code | |
13 | 40 | XTN | O | Y | Phone Number – Home |
14 | 40 | XTN | O | Y | Phone Number – Business |
15 | 60 | CE | O | Primary Language | |
16 | 1 | IS | O | Marital Status | |
17 | 3 | IS | O | Religion | |
18 | 20 | CX | O | Patient Account Number | |
19 | 16 | ST | O | SSN Number – Patient | |
20 | 25 | DLN | O | Driver’s License Number - Patient | |
21 | 20 | CX | O | Y | Mother’s Identifier |
22 | 3 | IS | O | Ethnic Group | |
23 | 60 | ST | O | Birth Place | |
24 | 2 | ID | O | Multiple Birth Indicator | |
25 | 2 | NM | O | Birth Order | |
26 | 4 | IS | O | Y | Citizenship |
27 | 60 | CE | O | Veterans Military Status | |
28 | 80 | CE | O | Nationality | |
29 | 26 | TS | O | Patient Death Date and Time | |
30 | 1 | ID | O | Patient Death Indicator |
PV1 Segement (Patient Visit Information)
Field Type Len Description ===== ==== === =========================================== PV1-1 SI 4 Set ID - PV1 PV1-2 IS 1 Patient Class PV1-3 PL 80 Assigned Patient Location PV1-4 IS 2 Admission Type PV1-5 CX 20 Preadmit Number PV1-6 PL 80 Prior Patient Location PV1-7 XCN 60 Attending Doctor PV1-8 XCN 60 Referring Doctor PV1-9 XCN 60 Consulting Doctor PV1-10 IS 3 Hospital Service PV1-11 PL 80 Temporary Location PV1-12 IS 2 Preadmit Test Indicator PV1-13 IS 2 Readmission Indicator PV1-14 IS 3 Admit Source PV1-15 IS 2 Ambulatory Status PV1-16 IS 2 VIP Indicator PV1-17 XCN 60 Admitting Doctor PV1-18 IS 2 Patient Type PV1-19 CX 20 Visit Number PV1-20 CM 50 Financial Class PV1-21 IS 2 Charge Price Indicator PV1-22 IS 2 Courtesy Code PV1-23 IS 2 Credit Rating PV1-24 IS 2 Contract Code PV1-25 DT 8 Contract Effective Date PV1-26 NM 12 Contract Amount PV1-27 NM 3 Contract Period PV1-28 IS 2 Interest Code PV1-29 IS 1 Transfer to Bad Debt Code PV1-30 DT 8 Transfer to Bad Debt Date PV1-31 IS 10 Bad Debt Agency Code PV1-32 NM 12 Bad Debt Transfer Amount PV1-33 NM 12 Bad Debt Recovery Amount PV1-34 IS 1 Delete Account Indicator PV1-35 DT 8 Delete Account Date PV1-36 IS 3 Discharge Disposition PV1-37 CM 25 Discharged to Location PV1-38 IS 2 Diet Type PV1-39 IS 2 Servicing Facility PV1-40 IS 1 Bed Status PV1-41 IS 2 Account Status PV1-42 PL 80 Pending Location PV1-43 PL 80 Prior Temporary Location PV1-44 TS 26 Admit Date/Time PV1-45 TS 26 Discharge Date/Time PV1-46 NM 12 Current Patient Balance PV1-47 NM 12 Total Charges PV1-48 NM 12 Total Adjustments PV1-49 NM 12 Total Payments PV1-50 CX 20 Alternate Visit ID PV1-51 IS 1 Visit Indicator PV1-52 XCN 60 Other Healthcare Provider
QPD Querys
QPD-1: Message Query Name (CE)
QPD-2: Query Tag (ST)
QPD-3: PIX Query parameter
QPD-4: What domains returned
Data Types:
Represents an HL7 XPN (extended person name) data type. This type consists of the following components:
- family+last name (FN)
- given name (ST)
- middle initial or name (ST)
- suffix (e.g., JR or III) (ST)
- prefix (e.g., DR) (ST)
- degree (e.g., MD) (IS)
- name type code (ID)
- Name Representation code (ID)
Table E-1: Components of HL7 Data Type CX
Cmp | Len | DT | Opt | Tbl | Name |
1 | 15 | ST | R |
| ID |
2 |
| ST | O |
| Check digit |
3 |
| ID | O | 0061 | Code identifying the check digit scheme employed |
4 | 227 | HD | R |
| Assigning authority |
5 |
| ID | O | 0203 | Identifier type code |
6 |
| HD | O |
| Assigning facility |
7 |
| DT | O |
| Effective date |
8 |
| DT | O |
| Expiration date |
HD data type 1 IS Namespace ID |