Reference·NK1 Segment·NK1-1
HL7 v2 Reference

NK1-1 in HL7 v2: A Field Guide to Set ID

Jul 27, 2026 · 4 min read
NK1-2 →

A registration message with three NK1 segments and three "1" values in NK1-1 will parse without error and still corrupt every downstream contact record.

Quick answer

NK1-1 is a simple incrementing integer that numbers each NK1 segment within a message, starting at 1. Its only job is to let a receiving system tell repeating NK1 instances apart when a patient has more than one associated party — a spouse and an employer, say, both attached to the same ADT message.

What this field contains

1
First NK1 — the first associated-party instance in the message
2
Second NK1 — increments for each subsequent NK1 segment, regardless of relationship or role
n
Nth NK1 — continues sequentially; there is no fixed upper bound in the standard, only what the sending system chooses to send

Example

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

This synthetic message uses Set ID 1 because it's the only NK1 segment present; a second contact would arrive as a separate NK1 segment with Set ID 2.

Where this trips people up

Some sending systems reset NK1-1 to 1 for every segment instead of incrementing it, especially when contacts are pulled from different subsystems (registration vs. billing) and merged into one message. If your integration logic keys off NK1-1 to deduplicate or order contacts, that reset silently causes one contact to overwrite another. Test fixtures should include both correctly incrementing sequences and this broken reset pattern.

→
HL7 v2 NK1 Segment Guide: Fields, Format, and Testing Gotchas
→
HL7 ADT Messages: A01 through A08 Explained
→
Regression Testing for EHR Upgrades: A Complete Guide
Generate NK1 sets with realistic sequencing
Synthibase produces multi-NK1 messages with both well-formed and edge-case Set ID sequences, so you can catch ordering bugs before a real patient's contact list gets scrambled.
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.