HL7 v2 NK1 Segment Guide: Fields, Format, and Testing Gotchas
NK1 looks like a simple contact-info segment until a repeating instance for the guarantor collides with one for the emergency contact, and your parser has to figure out which is which without a hint from the segment name itself.
NK1 (Next of Kin / Associated Parties) carries one person or organization tied to the patient beyond the patient themselves — a spouse, an emergency contact, a guarantor, an employer. A single ADT or registration message can carry multiple NK1 segments, one per associated party, and NK1-1 is what tells a receiving system which repetition it is looking at.
The fields that actually matter in practice
Example
A synthetic NK1 segment for a spouse listed as an emergency contact — invented for this example, not from any real patient or facility.
Where this trips people up
The most common failure mode isn't a malformed field, it's an assumption about cardinality. Teams build test fixtures with exactly one NK1 segment and never exercise the path where three repeat, or where two NK1 segments describe the same person in two different roles (next of kin and guarantor). When a real feed sends four NK1 repetitions and your test suite has only ever seen one, the bugs show up in production registration screens instead of in CI.