Reference·NTE Segment·NTE-1
HL7 v2 Reference

HL7 v2 NTE-1 (Set ID): Format, Values, and Testing Notes

Jul 28, 2026 · 4 min read
NTE-2 →

NTE-1 is just a counter, but it is the only thing telling a receiving system whether three NTE segments in a row are three separate notes or one note that got split across lines by accident.

Quick answer

NTE-1 is a sequential number identifying each NTE segment when more than one note is attached to the same parent segment. The first note is 1, the second is 2, and so on, resetting for each new group of notes tied to a different parent segment.

What this field contains

Format
Numeric string — typically a plain integer starting at 1, incrementing for each additional NTE segment attached to the same parent
Cardinality
Optional but expected — many receiving systems tolerate a blank Set ID on a single note but expect it populated once notes repeat
Common failure
Continuing a sequence across parents — generators that never reset the counter when a new parent segment starts make it look like all the notes belong together

Example

Synthetic example Generated by Synthibase
OBR|1|ORD991^SYNTHIB|FIL771^SYNTHIB|85025^CBC^SYNTHIBLOCAL
NTE|1|L|Sample collected via peripheral draw.
NTE|2|L|Second tube required due to insufficient volume on first draw.

NTE-1 values of 1 and 2 mark two distinct notes attached to the same OBR, both fabricated for this example.

Where this trips people up

Single-note test messages hide the fact that this field ever needs to increment. When a real OBR or OBX shows up with three or four attached notes, the receiving application has to use the Set ID to keep them in the right order when it reassembles them for display. If your test data never produces a parent segment with multiple sequentially numbered NTE segments, that reassembly logic goes untested until it fails in front of a user.

Testing HL7 v2 NTE: The Fields Your System Actually Needs to Handle
How to Write EDI Test Cases
HL7 ADT Messages: A01 through A08 Explained
Test multi-note scenarios with confidence
Synthibase can generate parent segments with multiple synthetic notes and correctly sequenced NTE segments, so your ordering and reassembly logic gets exercised before go-live.
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.