Skip to content

PID segment (HL7 v2.7)

PID (Patient Identification) carries patient demographic and identifying data in HL7 v2.7 messages. It appears once per patient in ADT, order, and result messages.

SegmentPID
HL7 version2.7
PurposePatient identification and demographics
Sample fields shown6 of the segment's fields
FieldNameDatatypeOptRepeats
PID-1Set ID - PIDSIONo
PID-2Patient ID-WNo
PID-3Patient Identifier ListCXRYes
PID-5Patient NameXPNRYes
PID-7Date/Time of BirthDTMONo
PID-8Administrative SexCWEONo

Example

A live, engine-generated example lands here with the phase-1 data export.

Validation context

Strict and compatibility validation notes land here with the phase-1 data export.

This answer, in your terminal

pidgeon lookup PID --version 2.7

Wire it into your AI agent:

claude mcp add pidgeon -- npx -y @pidgeonhealth/mcp

Download Post free to browse this reference with generation attached.

HL7® Version 2.7 © Health Level Seven International. All rights reserved.

HL7® and FHIR® are registered trademarks of Health Level Seven International.

Published by Pattern Engine LLC (Pidgeon Health).

Rendered from the same machine-readable definitions the Pidgeon engine validates against. Phase-0 sample fixture, hand-authored structural placeholder. Phase 1 replaces it with the engine's exported dataset.