The Demo site for our new HL7 Version 2+ (plus) Standard
visit the hl7 website

Draft Website - For Review Purposes Only

DT - date

HL7 Component Table - DT - date
Seq# Description Implement Flags Cardinality Length C.LEN Vocabulary Data Type
DT
1 Date SHALL = [0..1] [4..8]   8

Definition: Specifies the century and year with optional precision to month and day.

Minimum Length: 4

Maximum Length: 8


The number of digits populated specifies the precision using the format specification YYYY[MM[DD]]. Thus:

  1. only the first four digits are used to specify a precision of "year"

  2. the first six are used to specify a precision of "month"

  3. the first eight are used to specify a precision of "day"

Examples:

|19880704|

|199503|

The DT data type does not follow the normal truncation pattern, and the truncation character is never valid in the DT data type. Instead, the truncation behavior is based on the semantics of dates.

Unless specified in the context where the DT type is used, the DT type may not be truncated. When a DT is truncated, the truncated form SHALL still be a valid DT type. Systems should always be able to persist full dates. Refer to Chapter 2, section 2.5.5.2 "Truncation Pattern" for further information.

Note: Prior to v2.3, this data type was specified in the format YYYYMMDD. As of v2.3, month and days are no longer required. By site-specific agreement, YYYYMMDD may be used where backward compatibility must be maintained.