HL7 v2.5.1 Specificationsv2.5.1

to moveEnter to openTry PID-5, ADT, 0004

PID: Patient identification

A patient in hospital wears a wristband: their name, their date of birth, and the number that hospital knows them by. PID is that wristband written down. Every other segment in the message is about the person this one identifies.

PID carries the identity of one patient: who they are, what identifiers the sending system knows them by, and the demographics that travel with those identifiers.

The shape of one line

PIDsegmentwhat kind of line this is
1PID-1Set ID - PID
 PID-2Patient ID
1000345678^^^STJOSEPH^MRPID-3Patient Identifier List
 PID-4Alternate Patient ID - PID
CARTWRIGHT^ELEANOR^MAY^^^^LPID-5Patient Name
 PID-6Mother’s Maiden Name
19510822PID-7Date/Time of Birth
FPID-8Administrative Sex

required empty in this messageevery box is one | apart

Where PID appears

MessageSegment order
ADT^A01 admitMSH → EVN → PID → [PD1] → [{NK1}] → PV1
ORU^R01 resultMSH → {PID → [PD1] → {OBR → {OBX}}}
SIU^S12 appointmentMSH → SCH → {PID → [PV1]} → {RGS → {AIS|AIG|AIL|AIP}}

PID appears in 121 of the 202 message structures the standard defines.

A whole message

PID from an inpatient admission, with two identifiers and a legal name
MSH|^~\&|EPIC|STJOSEPH|LABSYS|STJOSEPH|20240314093015||ADT^A01^ADT_A01|MSG00017|P|2.5.1
EVN||20240314093000
PID|1||1000345678^^^STJOSEPH^MR~453-22-9911^^^USA^SS||CARTWRIGHT^ELEANOR^MAY^^^^L||19510822|F||2106-3|41 ORCHARD LANE^APT 2B^PORTLAND^OR^97202^USA^H||^PRN^PH^^1^503^5550142|^WPN^PH^^1^503^5550188|eng|M|CHR|100034567800
PV1|1|I|3W^312^A^STJOSEPH||||1447312^OKONKWO^ADAEZE^^^^MD|||MED||||1|||1447312^OKONKWO^ADAEZE^^^^MD|I|V100034567|SELF|||||||||||||||||||SJ||A|||20240314093000

Every field

SEQLENDTOPTRP/#TBL#ITEM#Element nameCardinality
PID-14SIO00104Set ID - PID0..1
20CXB00105Patient ID deprecated0..1

PID-2 is a CX, which holds 10 components separated by carets.

SEQLENDTOPTTBL#Component name
CX.115STRID Number
CX.21STOCheck Digit
CX.33IDO0061Check Digit Scheme
CX.4227HDO0363Assigning Authority
CX.55IDO0203Identifier Type Code
CX.6227HDOAssigning Facility
CX.78DTOEffective Date
CX.88DTOExpiration Date
CX.9705CWEOAssigning Jurisdiction
CX.10705CWEOAssigning Agency or Department
250CXRY00106Patient Identifier List1..*

PID-3 is a CX, which holds 10 components separated by carets.

SEQLENDTOPTTBL#Component name
CX.115STRID Number
CX.21STOCheck Digit
CX.33IDO0061Check Digit Scheme
CX.4227HDO0363Assigning Authority
CX.55IDO0203Identifier Type Code
CX.6227HDOAssigning Facility
CX.78DTOEffective Date
CX.88DTOExpiration Date
CX.9705CWEOAssigning Jurisdiction
CX.10705CWEOAssigning Agency or Department
20CXBY00107Alternate Patient ID - PID deprecated0..*

PID-4 is a CX, which holds 10 components separated by carets.

SEQLENDTOPTTBL#Component name
CX.115STRID Number
CX.21STOCheck Digit
CX.33IDO0061Check Digit Scheme
CX.4227HDO0363Assigning Authority
CX.55IDO0203Identifier Type Code
CX.6227HDOAssigning Facility
CX.78DTOEffective Date
CX.88DTOExpiration Date
CX.9705CWEOAssigning Jurisdiction
CX.10705CWEOAssigning Agency or Department
250XPNRY00108Patient Name1..*

PID-5 is a XPN, which holds 14 components separated by carets.

SEQLENDTOPTTBL#Component name
XPN.1194FNOFamily Name
XPN.230STOGiven Name
XPN.330STOSecond and Further Given Names or Initials Thereof
XPN.420STOSuffix (e.g., JR or III)
XPN.520STOPrefix (e.g., DR)
XPN.66ISB0360Degree (e.g., MD)
XPN.71IDO0200Name Type Code
XPN.81IDO0465Name Representation Code
XPN.9483CEO0448Name Context
XPN.1053DRBName Validity Range
XPN.111IDO0444Name Assembly Order
XPN.1226TSOEffective Date
XPN.1326TSOExpiration Date
XPN.14199STOProfessional Suffix
250XPNOY00109Mother’s Maiden Name0..*

PID-6 is a XPN, which holds 14 components separated by carets.

SEQLENDTOPTTBL#Component name
XPN.1194FNOFamily Name
XPN.230STOGiven Name
XPN.330STOSecond and Further Given Names or Initials Thereof
XPN.420STOSuffix (e.g., JR or III)
XPN.520STOPrefix (e.g., DR)
XPN.66ISB0360Degree (e.g., MD)
XPN.71IDO0200Name Type Code
XPN.81IDO0465Name Representation Code
XPN.9483CEO0448Name Context
XPN.1053DRBName Validity Range
XPN.111IDO0444Name Assembly Order
XPN.1226TSOEffective Date
XPN.1326TSOExpiration Date
XPN.14199STOProfessional Suffix
26TSO00110Date/Time of Birth0..1

PID-7 is a TS, which holds 2 components separated by carets.

SEQLENDTOPTTBL#Component name
TS.124DTMRTime
TS.21IDB0529Degree of Precision
PID-81ISO000100111Administrative Sex0..1
250XPNBY00112Patient Alias deprecated0..*

PID-9 is a XPN, which holds 14 components separated by carets.

SEQLENDTOPTTBL#Component name
XPN.1194FNOFamily Name
XPN.230STOGiven Name
XPN.330STOSecond and Further Given Names or Initials Thereof
XPN.420STOSuffix (e.g., JR or III)
XPN.520STOPrefix (e.g., DR)
XPN.66ISB0360Degree (e.g., MD)
XPN.71IDO0200Name Type Code
XPN.81IDO0465Name Representation Code
XPN.9483CEO0448Name Context
XPN.1053DRBName Validity Range
XPN.111IDO0444Name Assembly Order
XPN.1226TSOEffective Date
XPN.1326TSOExpiration Date
XPN.14199STOProfessional Suffix
250CEOY000500113Race0..*

PID-10 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250XADOY00114Patient Address0..*

PID-11 is a XAD, which holds 14 components separated by carets.

SEQLENDTOPTTBL#Component name
XAD.1184SADOStreet Address
XAD.2120STOOther Designation
XAD.350STOCity
XAD.450STOState or Province
XAD.512STOZip or Postal Code
XAD.63IDO0399Country
XAD.73IDO0190Address Type
XAD.850STOOther Geographic Designation
XAD.920ISO0289County/Parish Code
XAD.1020ISO0288Census Tract
XAD.111IDO0465Address Representation Code
XAD.1253DRBAddress Validity Range
XAD.1326TSOEffective Date
XAD.1426TSOExpiration Date
PID-124ISB028900115County Code deprecated0..1
250XTNOY00116Phone Number - Home0..*

PID-13 is a XTN, which holds 12 components separated by carets.

SEQLENDTOPTTBL#Component name
XTN.1199STBTelephone Number
XTN.23IDO0201Telecommunication Use Code
XTN.38IDO0202Telecommunication Equipment Type
XTN.4199STOEmail Address
XTN.53NMOCountry Code
XTN.65NMOArea/City Code
XTN.79NMOLocal Number
XTN.85NMOExtension
XTN.9199STOAny Text
XTN.104STOExtension Prefix
XTN.116STOSpeed Dial Code
XTN.12199STCUnformatted Telephone number
250XTNOY00117Phone Number - Business0..*

PID-14 is a XTN, which holds 12 components separated by carets.

SEQLENDTOPTTBL#Component name
XTN.1199STBTelephone Number
XTN.23IDO0201Telecommunication Use Code
XTN.38IDO0202Telecommunication Equipment Type
XTN.4199STOEmail Address
XTN.53NMOCountry Code
XTN.65NMOArea/City Code
XTN.79NMOLocal Number
XTN.85NMOExtension
XTN.9199STOAny Text
XTN.104STOExtension Prefix
XTN.116STOSpeed Dial Code
XTN.12199STCUnformatted Telephone number
250CEO029600118Primary Language0..1

PID-15 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CEO000200119Marital Status0..1

PID-16 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CEO000600120Religion0..1

PID-17 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CXO00121Patient Account Number0..1

PID-18 is a CX, which holds 10 components separated by carets.

SEQLENDTOPTTBL#Component name
CX.115STRID Number
CX.21STOCheck Digit
CX.33IDO0061Check Digit Scheme
CX.4227HDO0363Assigning Authority
CX.55IDO0203Identifier Type Code
CX.6227HDOAssigning Facility
CX.78DTOEffective Date
CX.88DTOExpiration Date
CX.9705CWEOAssigning Jurisdiction
CX.10705CWEOAssigning Agency or Department
PID-1916STB00122SSN Number - Patient deprecated0..1
25DLNB00123Driver's License Number - Patient deprecated0..1

PID-20 is a DLN, which holds 3 components separated by carets.

SEQLENDTOPTTBL#Component name
DLN.120STRLicense Number
DLN.220ISO0333Issuing State, Province, Country
DLN.324DTOExpiration Date
250CXOY00124Mother's Identifier0..*

PID-21 is a CX, which holds 10 components separated by carets.

SEQLENDTOPTTBL#Component name
CX.115STRID Number
CX.21STOCheck Digit
CX.33IDO0061Check Digit Scheme
CX.4227HDO0363Assigning Authority
CX.55IDO0203Identifier Type Code
CX.6227HDOAssigning Facility
CX.78DTOEffective Date
CX.88DTOExpiration Date
CX.9705CWEOAssigning Jurisdiction
CX.10705CWEOAssigning Agency or Department
250CEOY018900125Ethnic Group0..*

PID-22 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
PID-23250STO00126Birth Place0..1
PID-241IDO013600127Multiple Birth Indicator0..1
PID-252NMO00128Birth Order0..1
250CEOY017100129Citizenship0..*

PID-26 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CEO017200130Veterans Military Status0..1

PID-27 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CEB021200739Nationality deprecated0..1

PID-28 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
26TSO00740Patient Death Date and Time0..1

PID-29 is a TS, which holds 2 components separated by carets.

SEQLENDTOPTTBL#Component name
TS.124DTMRTime
TS.21IDB0529Degree of Precision
PID-301IDO013600741Patient Death Indicator0..1
PID-311IDO013601535Identity Unknown Indicator0..1
PID-3220ISOY044501536Identity Reliability Code0..*
26TSO01537Last Update Date/Time0..1

PID-33 is a TS, which holds 2 components separated by carets.

SEQLENDTOPTTBL#Component name
TS.124DTMRTime
TS.21IDB0529Degree of Precision
241HDO01538Last Update Facility0..1

PID-34 is a HD, which holds 3 components separated by carets.

SEQLENDTOPTTBL#Component name
HD.120ISO0300Namespace ID
HD.2199STCUniversal ID
HD.36IDC0301Universal ID Type
250CEC044601539Species Code0..1

PID-35 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CEC044701540Breed Code0..1

PID-36 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
PID-3780STO01541Strain0..1
250CEO2042901542Production Class Code0..2

PID-38 is a CE, which holds 6 components separated by carets.

SEQLENDTOPTTBL#Component name
CE.120STOIdentifier
CE.2199STOText
CE.320IDO0396Name of Coding System
CE.420STOAlternate Identifier
CE.5199STOAlternate Text
CE.620IDO0396Name of Alternate Coding System
250CWEOY017101840Tribal Citizenship0..*

PID-39 is a CWE, which holds 9 components separated by carets.

SEQLENDTOPTTBL#Component name
CWE.120STOIdentifier
CWE.2199STOText
CWE.320IDO0396Name of Coding System
CWE.420STOAlternate Identifier
CWE.5199STOAlternate Text
CWE.620IDO0396Name of Alternate Coding System
CWE.710STCCoding System Version ID
CWE.810STOAlternate Coding System Version ID
CWE.9199STOOriginal Text

Open this PID message in HL7 Studio

Field notes

Vendor behaviour

What follows describes patterns common to these systems' standard interfaces. Every installation is configured, so confirm against the interface specification for the site you are integrating with.

Epic

Epic populates PID-3 with several repetitions as a matter of course, typically the MRN under the facility assigning authority plus an enterprise-wide identifier, and the two are not interchangeable across affiliated hospitals. The identifier type code in component 5 is the reliable discriminator. Epic also sends PID-18 consistently, which makes it a usable account key where the receiving system needs one.

Cerner

Cerner installations commonly carry the person identifier and the encounter-scoped identifiers in separate repetitions of PID-3, with the assigning authority naming the source system inside the Millennium domain and not the hospital. Reading component 4 as though it names a facility gives misleading results on a Cerner feed.

Mapping to FHIR

PID maps to FHIR Patient, and the mapping is mostly clean because both are describing the same thing. The work is in PID-3: each repetition becomes one Patient.identifier, with the assigning authority becoming the identifier system and the type code becoming identifier.type. Getting that wrong collapses several identifiers into one and produces duplicate patients downstream.

HL7 v2FHIR R4Note
PID-3Patient.identifierone entry per repetition; assigning authority becomes the system
PID-5Patient.namename type L becomes use=official
PID-7Patient.birthDatetruncate to a date unless the time is clinically needed
PID-8Patient.genderadministrative only; see the field note
PID-11Patient.addressaddress type maps to Address.use
PID-13, PID-14Patient.telecomhome and business, distinguished by use
PID-29, PID-30Patient.deceased[x]date if present, otherwise the boolean

Parsing pitfalls

Message types carrying PID

PID appears in 121 message structures, belonging to 76 message types.