Reference·NK1 Segment·NK1-7
HL7 v2 Reference

Understanding HL7 v2 NK1-7: Contact Role in Practice

Jul 27, 2026 · 4 min read
← NK1-5

A guarantor and an emergency contact can be the same person, coded in two different NK1-7 values on two different NK1 segments, and systems that treat contact role as redundant with relationship end up merging records that were never supposed to be merged.

Quick answer

NK1-7 is a coded field describing what role the associated party plays with respect to the patient's care or account — emergency contact, next of kin, guarantor — as distinct from NK1-3, which describes the family or personal relationship. The same person can appear in multiple NK1 segments with different NK1-7 values if they serve more than one role.

Valid code values

EC
Emergency Contact — the person to notify or call in an emergency; does not imply any particular family relationship
N
Next of Kin — legally or clinically recognized next of kin for decision-making purposes
S
Spouse — used by some local tables to flag spousal role directly, overlapping with NK1-3's SPO relationship code
C
Emergency Contact (alternate) — seen in some vendor tables as an alternate code for emergency-contact role; underscores how much this table varies by implementation

Example

Synthetic example Generated by Synthibase
NK1|1|DOE^JANE^M|SPO|482 OAK ST^^DENVER^CO^80202|3035550142|||EC

EC in the eighth pipe-delimited position marks this synthetic contact's role as emergency contact, separate from the SPO relationship code earlier in the segment.

Where this trips people up

Teams frequently build UI and logic that display only one of NK1-3 or NK1-7, assuming they carry the same information, which breaks the moment a patient has a next-of-kin contact who is not also the emergency contact, or a guarantor who isn't related to the patient at all. Test scenarios should deliberately include NK1 sets where relationship and contact role diverge — a guarantor coded OTH for relationship but GT for role, for instance — to confirm both fields are actually being read independently.

HL7 v2 NK1 Segment Guide: Fields, Format, and Testing Gotchas
HL7 ADT Messages: A01 through A08 Explained
How to Build a Synthetic Patient Registry for Healthcare Testing
Test role and relationship independently
Synthibase generates NK1 sets where contact role and relationship deliberately diverge, so you can confirm your system reads both fields correctly instead of assuming one implies the other.
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.