Reference·PID Segment·PID-9
HL7 v2 Reference

HL7 v2 PID-9 (Patient Alias): Format, Values, and Testing Notes

Jul 27, 2026 · 4 min read
← PID-7 PID-10 →

PID-9 rarely appears in test data, so it's easy to build patient-search and matching logic that only ever looks at PID-5 — until a real patient search by a maiden name, nickname, or previous legal name comes back empty because the alias field was never indexed.

Quick answer

PID-9 is the ninth field of the HL7 v2 PID segment — it carries alternate names for the patient, such as a maiden name, nickname, or former legal name, using the same component structure as PID-5.

What this field contains

Component 1
Family Name
Component 2
Given Name
Component 3
Middle Name or Initial

Example

Synthetic example Generated by Synthibase
PID|1||847213609^^^HOSP^MR||GARCIA^ELENA^MARIE||19870314|F|||482 OAK ST^^DENVER^CO^80202||3035550142||||||||||MENDEZ^ELENA

MENDEZ^ELENA in PID-9 records a former legal name for the same patient identified by PID-5 as GARCIA^ELENA. Synthetic patient — not a real person.

Where this trips people up

Because PID-9 is used inconsistently across source systems, some feeds populate it richly while others never touch it. Registration and patient-search screens that only query against PID-5 will fail to surface a patient by a maiden name or alias, leading staff to believe no record exists and creating an avoidable duplicate.

HL7 v2 PID Segment Guide: Fields, Format, and Testing Gotchas
How to Build a Synthetic Patient Registry for Healthcare Testing
Synthetic Patient Data: Complete Guide for Software Testing
Test alias-name matching before go-live
Synthibase generates synthetic patients with populated alias names, so search and matching logic gets validated against the scenarios real registration desks run into.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.