Reference·INS Segment·INS02
X12 834 Reference

Testing X12 834 INS02: What Individual Relationship Code Actually Needs to Handle

Jul 27, 2026 · 4 min read
← INS01 INS03 →

Family coverage looks simple until you try to enumerate every legal way a person can be related to a subscriber.

Quick answer

INS02 states how the individual in this member loop relates to the subscriber — self, spouse, child, or one of several less common categories. Enrollment systems use it to build the family unit and to decide which dependents should be linked under which policyholder.

Common code values you'll see in practice

18
Self — the member is the subscriber; used when INS01 is Y
01
Spouse — a legally married partner covered under the subscriber's plan
19
Child — a biological, adopted, step, or otherwise dependent child
53
Life partner / domestic partner — used by carriers that support non-spousal domestic partnerships
G8
Other relationship — a catch-all bucket for relationship types not otherwise listed

Example

Synthetic example Generated by Synthibase
INS*Y*18*030*XN*A*E**AC

This synthetic example uses relationship code 18 (self) because INS01 already flags the record as the subscriber — the two fields agree with each other.

Where this trips people up

A lot of test data generators only ever produce 18, 01, and 19, since that covers the "typical family" case. Then a real file arrives with 53 or a less common relationship code and the mapping layer throws it into an "unmapped" bucket that nobody monitors. If your downstream system has a fixed enum for relationship types, make sure your test cases exercise every code your trading partner agreement says they might send — not just the three everyone remembers.

X12 834 INS Segment Guide: Fields, Format, and Testing Gotchas
EDI 834 Enrollment File: Format and Testing Guide
HIPAA 5010 Transaction Sets: Complete List and Reference
Cover every relationship code in your test suite
Synthibase can generate 834 files spanning the full range of relationship codes, so your mapping logic gets exercised before it meets a production file.
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.