Reference·NTE Segment·NTE-3
HL7 v2 Reference

HL7 v2 NTE-3 Field Guide: Comment Values and Common Mistakes

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

NTE-3 is the whole point of the segment - the actual note text - and it is also the field most likely to break a parser that was only ever tested against short, tidy sample values.

Quick answer

NTE-3 holds the free-text content of the note. Unlike most HL7 v2 fields, it is meant to carry unstructured prose rather than a coded or formatted value, it can repeat within a single NTE segment to represent multiple lines of the same note, and in practice it can run far longer than the short examples most sample messages use.

What this field contains

Format
Free text — unstructured prose, unlike most other fields in the segment; may include repeated components representing separate lines
Cardinality
Effectively required — an NTE segment with an empty comment field carries no information and is rarely produced intentionally
Common failure
Untested length and delimiters — short, clean sample text hides truncation bugs and mishandling of characters that collide with HL7 delimiters

Example

Synthetic example Generated by Synthibase
PID|1||MRN55210^^^SYNTHIB^MR||RIVAS^ELENA^^^^^L||19850612|F
NTE|1|P|Patient requests all appointment reminders be sent by text message only, not by phone call, due to a hearing impairment noted at intake.

A synthetic NTE segment carrying a longer free-text comment following PID, with a fabricated patient and reminder preference.

Where this trips people up

Test messages built by hand almost always use short, grammatically tidy comments, so parsers that truncate long text, mishandle embedded punctuation, or choke on a comment that happens to contain a pipe or caret character never get caught until a real note trips over them. Multi-line notes split across repeating NTE segments are another common gap - if your test data never generates a comment long enough to need a second or third NTE segment for the same note, the logic that reassembles them into one block of text is running blind in production.

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
Stress-test free-text fields before they break in production
Synthibase generates NTE comments of varying length and content, including multi-segment notes and edge-case characters, so your parsing and display logic is tested against realistic text, not just tidy sample sentences.
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.