Appearance
V2 PID Segment
Here's a well-populated example of an HL7 v2.x PID (Patient Identification) segment, using fields commonly present in production systems. This example follows HL7 v2.5.1 format but remains broadly compatible with most v2.x versions.
Example: PID|1||123456^^^HOSPITAL^MR||Doe^John^A^III^Mr.^L||19800101|M||2106-3^White^CDCREC|123 Main St^^Metropolis^NY^10001^USA^H||555-123-4567^PRN^PH^^^555^1234567|555-765-4321^WPN^PH^^^555^7654321|johndoe@example.com^NET^Internet|S|ENG|111223333|||M||123456789|987-65-4321|||N
| Field | Description | Example Value |
| PID-1 | Set ID | 1 |
| PID-2 | Patient ID (Deprecated in later versions) | |
| PID-3 | Patient Identifier List | 123456^^^HOSPITAL^MR (MR = Medical Record Number) Note: Repeating identifiers (like MRN, SSN, national ID) go in PID-3, separated by ~. Note: The assigning authority for identifiers can be shown using subcomponents in PID-3: ID^^^AssigningAuthority^IdentifierTypeCode. |
| PID-4 | Alternate Patient ID | |
| PID-5 | Patient Name | Doe^John^A^III^Mr.^L |
| PID-6 | Mothers Maiden Name | |
| PID-7 | Date of Birth | 19800101 (YYYYMMDD) |
| PID-8 | Administrative Sex | M (Male) |
| PID-9 | Patient Alias | |
| PID-10 | Race | 2106-3^White^CDCREC (CDC code for White) |
| PID-11 | Patient Address | 123 Main St^^Metropolis^NY^10001^USA^H Note: PID-11 supports structured address components; multiple addresses can be separated by ~. |
| PID-12 | County Code | |
| PID-13 | Phone Number - Home | 555-123-4567^PRN^PH^^^555^1234567 |
| PID-14 | Phone Number - Business | 555-765-4321^WPN^PH^^^555^7654321 |
| PID-15 | Primary Language | ENG |
| PID-16 | Marital Status | S (Single) |
| PID-17 | Religion | |
| PID-18 | Patient Account Number | 111223333 |
| PID-19 | SSN Number - Patient | 987-65-4321 |
| PID-20 | Drivers License Number | |
| PID-21 | Mother’s Identifier | |
| PID-22 | Ethnic Group | |
| PID-23 | Birth Place | |
| PID-24 | Multiple Birth Indicator | |
| PID-25 | Birth Order | |
| PID-26 | Citizenship | |
| PID-27 | Veterans Military Status | |
| PID-28 | Nationality | |
| PID-29 | Patient Death Date and Time | |
| PID-30 | Patient Death Indicator | N (Not deceased) |
Note: All values should align with HL7 data types: XPN (names), XAD (addresses), XTN (telecom), CX (identifiers), etc.
