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)

SEQLENDTOPTRP/#ELEMENT NAME
14SIO Set ID – Patient ID
220CXO Patient ID (External ID)
320CXRYPatient ID (Internal ID)
420CXOYAlternate Patient ID – PID
548XPNRYPatient Name
648XPNO Mother’s Maiden Name
726TSO Date/Time of Birth
81ISO Sex
948XPNOYPatient Alias
101ISO Race
11106XADOYPatient Address
124ISB Country Code
1340XTNOYPhone Number – Home
1440XTNOYPhone Number – Business
1560CEO Primary Language
161ISO Marital Status
173ISO Religion
1820CXO Patient Account Number
1916STO SSN Number – Patient
2025DLNO Driver’s License Number - Patient
2120CXOYMother’s Identifier
223ISO Ethnic Group
2360STO Birth Place
242IDO Multiple Birth Indicator
252NMO Birth Order
264ISOYCitizenship
2760CEO Veterans Military Status
2880CEO Nationality
2926TSO Patient Death Date and Time
301IDO 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
2 ST Universal ID
3 ID Universal ID Type


Example Messages

http://openpixpdq.sourceforge.net/messagesamples.html