Reference·DG1 Segment·DG1-4
HL7 v2 Reference

What Is HL7 v2 DG1-4? Diagnosis Description, Explained for Testers

Jul 27, 2026 · 4 min read
← DG1-3 DG1-5 →

DG1-4 looks redundant next to the text portion already sitting inside DG1-3, and that redundancy is exactly the point — it's also exactly where two systems can end up disagreeing about what a diagnosis actually is.

Quick answer

DG1-4 is a free-text field carrying the diagnosis description as a standalone value, separate from the text sub-component embedded in DG1-3. Many sending systems populate both with the same wording, but nothing in the message structure guarantees that — DG1-4 can legally carry different, more detailed, or entirely absent text.

What this field contains

Type
String (ST) — plain free text, no internal caret-separated components
Typical use
Human-readable label — often mirrors the text sub-component of DG1-3, but source systems vary
Optional
Yes — a message can carry a fully populated DG1-3 with DG1-4 left blank

Example

Synthetic example Generated by Synthibase
DG1|1||E11.9^Type 2 diabetes mellitus without complications^I10|Type 2 diabetes mellitus without complications|202607250830|F||||||||1

DG1-4 restates the diagnosis text independently of the description embedded inside DG1-3.

Where this trips people up

Downstream display logic frequently reads DG1-4 for the diagnosis label shown on a chart or worklist while billing logic reads the text sub-component of DG1-3 — and when a source system only populates one of the two, one side of the workflow shows a blank diagnosis name while the other works fine. Test messages where DG1-4 is empty but DG1-3's text sub-component is populated, and the reverse, to see which of your downstream consumers silently fail versus which fall back correctly.

HL7 v2 DG1 Explained: Structure, Fields, and Common Mistakes
HL7 ADT Messages: A01 through A08 Explained
Synthetic Patient Data: Complete Guide for Software Testing
Catch description mismatches before go-live
Synthibase can generate DG1 segments with deliberately inconsistent DG1-3 and DG1-4 text so you can confirm your interface engine handles both fields the way your downstream systems expect.
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.