Reference·DTP Segment·DTP02
X12 837D Reference

DTP02 in X12 837D: A Field Guide to Date Time Period Format Qualifier

Jul 28, 2026 · 4 min read
← DTP01 DTP03 →

Most dental service dates are a single day, so DTP02 in an 837D claim almost always reads D8 — but treatment plans that span a range, like orthodontic banding periods billed in some workflows, need the range format instead, and a parser tuned only for D8 won't know what to do with it.

Quick answer

DTP02 is the format qualifier element of the DTP segment — it tells the parser whether the value in DTP03 is a single calendar date or a date range, and in what format that value is expressed.

Valid code values

D8
Date Expressed in Format CCYYMMDD — a single eight-digit date — the format used for the overwhelming majority of dental service dates
RD8
Range of Dates Expressed in Format CCYYMMDD-CCYYMMDD — a start and end date separated by a hyphen, used for scenarios spanning more than one day

Example

Synthetic example Generated by Synthibase
DTP*472*D8*20260714

DTP02 = D8 tells the parser that DTP03 is a single eight-digit date rather than a range. Synthetic claim data.

Where this trips people up

A test suite generated exclusively around single-day chairside procedures will only ever produce DTP02 = D8, leaving the RD8 range-parsing branch completely unexercised. If that branch has a latent bug — a hyphen handled incorrectly, or an off-by-one in how the end date is parsed — it won't surface until a real claim with a genuine date range hits production, by which point it's a live incident rather than a caught test failure.

Testing X12 837D DTP: The Fields Your System Actually Needs to Handle
What is X12 837P? Complete Format and Field Guide
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Test both single-date and date-range formats
Synthibase generates synthetic 837D claims with both D8 single dates and RD8 date ranges, so your parser's range-handling logic gets exercised instead of sitting untested.
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.