HL7 v2 IN1 Segment Guide: Fields, Format, and Testing Gotchas
A single missing pipe in an IN1 segment can push a policy number into the wrong field and quietly break eligibility checks downstream — and nobody notices until a claim bounces weeks later.
IN1 is the HL7 v2 segment that carries insurance and coverage details for a patient encounter — payer identity, group and policy numbers, coordination-of-benefits priority, and the insured party's relationship to the patient. It typically rides inside ADT and DFT messages, one IN1 segment per coverage, ordered by IN1-1.
The fields that actually matter in practice
Example
A synthetic IN1 segment for a single primary payer: plan PPO2200 with Acme Regional Health Plan, group GRP-9042217, insured Jane M. Doe as the subscriber (relationship code 01 = self), and policy POL-77213840.
Where this trips people up
Two things break IN1 test coverage more than anything else. First, teams generate a single "happy path" IN1 with relationship code 01 (self) and never exercise 02 (spouse) or 03 (child), so any logic that cross-checks patient and subscriber demographics goes untested until a dependent's claim fails in production. Second, group number and policy number get swapped or conflated in synthetic data sets because both are free-text ST fields with no format enforcement — your test data needs to keep them distinct even though HL7 itself won't stop you from mixing them up.