HL7 v2 PID Segment Guide: Fields, Format, and Testing Gotchas
The PID segment is the one every interface engineer ends up memorizing — it carries the core demographic identity of a patient and shows up in nearly every HL7 v2 message type, from ADT to ORU to SIU. Get it wrong and patient matching breaks quietly, not loudly.
PID (Patient Identification) is the HL7 v2 segment that carries a patient’s demographic identity — identifiers, name, date of birth, sex, and address — and typically appears as the second or third segment in a message, right after MSH.
The fields that actually matter in practice
Example
Synthetic patient — not a real person.
Where this trips people up
PID-3 supports multiple repeating identifiers (MRN, account number, etc.) separated by a ~. Teams that only parse the first repetition silently drop the rest — which shows up downstream as "missing" data that was actually there in the message all along.