Reference·DG1 Segment·DG1-15
HL7 v2 Reference

Testing HL7 v2 DG1-15: What Diagnosis Priority Actually Needs to Handle

Jul 27, 2026 · 4 min read
← DG1-6

DG1-15 is the field that decides which diagnosis among several gets treated as primary, and it's one of the most commonly skipped fields in real-world DG1 segments — which means plenty of systems have never had to handle its absence gracefully.

Quick answer

DG1-15 is a numeric ranking that establishes priority among multiple diagnoses attached to the same encounter, with 1 typically meaning the primary diagnosis. When only one DG1 repetition is present, the field is often left blank or trivially set to 1, but on encounters with several diagnoses it determines which one downstream systems should treat as the main reason for care.

What this field contains

Type
Numeric (NM) — a plain integer, lower generally meaning higher priority
Typical value
1 for primary — the diagnosis considered the main driver of the encounter
Usage
Optional and inconsistently sent — many sending systems omit it entirely, leaving priority implicit in DG1-1 ordering instead

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

A priority of 1, marking this diagnosis as primary among any others attached to the same encounter.

Where this trips people up

Because DG1-15 is frequently left blank, systems that need a primary diagnosis for reporting or claims often fall back to assuming the first DG1 repetition is primary — which is not a safe assumption, since some sending systems order diagnoses chronologically rather than by clinical importance. Test messages where DG1-15 is populated but contradicts the DG1-1 ordering, and separately test messages where it's absent entirely across multiple diagnoses, to see whether your fallback logic picks the diagnosis you'd actually expect.

HL7 v2 DG1 Explained: Structure, Fields, and Common Mistakes
How to Reduce Claim Denials Through Better Pre-Submission Testing
How to Build a Synthetic Patient Registry for Healthcare Testing
Validate priority handling before it affects billing
Synthibase generates multi-diagnosis DG1 test data with varied and missing priority values so you can confirm your system picks the right primary diagnosis every time.
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.