Reference·DTP Segment·DTP02
X12 837I Reference

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

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

Admission and discharge on an institutional claim aren't just dates, they're often timestamped down to the hour, and DTP02 is what tells a parser whether it should even expect that level of detail in DTP03.

Quick answer

DTP02 is the Date Time Period Format Qualifier on an X12 837I claim — it tells the receiving system what shape to expect the value in DTP03 to take, which for admission and discharge dates can include a time component in addition to the calendar date.

Common values

D8
Date, single value — DTP03 holds one date in CCYYMMDD format, no time
DT
Date and time — DTP03 holds a date plus time, common for admission and discharge occurrences
RD8
Date range — DTP03 holds two dates in CCYYMMDD format separated by a hyphen, used for a statement period

Example

Synthetic example Generated by Synthibase
DTP*435*DT*202607241430

DTP02 value DT tells the parser to expect both a date and time in DTP03 — here, an admission at 2:30 PM on July 24, 2026. Synthetic claim data.

Where this trips people up

A parser built to handle only D8 admission and discharge dates will often truncate a DT-formatted value down to its first eight characters, silently discarding the time component. That works fine for length-of-stay math measured in whole days, but breaks any downstream logic that needs same-day admission-to-discharge timing — like an observation stay that starts and ends on the same calendar date — because the truncated value makes two genuinely different timestamps look identical.

X12 837I DTP Segment Guide: Fields, Format, and Testing Gotchas
How to Test 837I Institutional Claims: A Complete Guide
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Generate correctly paired admission and discharge formats
Synthibase generates synthetic 837I claims with DTP02/DTP03 pairs across date-only and date-time formats, including same-day admission-discharge cases, so format-handling bugs surface in testing instead of production.
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.