Reference·PID Segment·PID-10
HL7 v2 Reference

Testing HL7 v2 PID-10: What Race Actually Needs to Handle

Jul 27, 2026 · 4 min read
← PID-9 PID-11 →

PID-10 supports multiple repeating race values per patient, but a lot of reporting and analytics pipelines are built assuming a single code — a mismatch that only surfaces when a real patient record with two or more race values hits the pipeline and either errors out or gets silently truncated.

Quick answer

PID-10 is the tenth field of the HL7 v2 PID segment — it carries the patient’s race as one or more coded values, drawn from a standard code table and often used for demographic and public-health reporting.

What this field contains

1002-5
American Indian or Alaska Native
2028-9
Asian
2054-5
Black or African American
2076-8
Native Hawaiian or Other Pacific Islander
2106-3
White
2131-1
Other Race

Example

Synthetic example Generated by Synthibase
PID|1||847213609^^^HOSP^MR||GARCIA^ELENA^MARIE||19870314|F|||482 OAK ST^^DENVER^CO^80202||3035550142||||2106-3~2054-5|

PID-10 carries two repeated race codes for the same patient, separated by ~. Synthetic patient — not a real person.

Where this trips people up

Analytics and public-health reporting jobs frequently assume PID-10 holds a single code and read only the first repetition. A patient recorded with two or more race values then gets reported under just one, which is both a data-quality bug and, in regulated reporting contexts, a compliance problem worth catching in testing rather than in an audit.

HL7 v2 PID Segment Guide: Fields, Format, and Testing Gotchas
How to Build a Synthetic Patient Registry for Healthcare Testing
Healthcare API Testing Guide: FHIR and X12
Generate multi-value PID-10 test cases
Synthibase generates synthetic patients with single and multiple race codes, so reporting pipelines get tested against the repeating-field cases they need to handle correctly.
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.