PID-22 in HL7 v2: A Field Guide to Ethnic Group
PID-22 (Ethnic Group) and PID-10 (Race) are frequently confused by developers who assume one field covers both concepts, and an integration that maps ethnicity data into the race field, or vice versa, will quietly corrupt demographic reporting without throwing a single error.
PID-22 is the twenty-second field of the HL7 v2 PID segment — it carries a coded value representing the patient’s ethnic group, most commonly a Hispanic-or-Latino designation, distinct from the race values carried in PID-10.
Valid code values
Example
H in PID-22 records the patient as Hispanic or Latino, a separate data point from the race code carried earlier in PID-10. Synthetic patient — not a real person.
Where this trips people up
Because PID-10 and PID-22 are both demographic classification fields sitting a few positions apart in the segment, it is a common implementation error to map ethnicity values into the race field or leave PID-22 unmapped entirely. The bug rarely surfaces in functional testing — it shows up later as skewed or missing categories in public-health and quality-reporting output.