Date of Birth Is in the Future
A cross-field semantic rule compares PID-7 (date of birth) to the message date. A birth date after the current or message date is almost always a data-entry or formatting mistake.
HL7v2 · Warning
The error
PID-7 (Date of Birth) should not be in the futureWhy it happens
Transposed digits (20240101 instead of 19240101), a two-digit year expanded to the wrong century, or a placeholder default date that was never replaced.
How to fix it
Correct the year. Confirm the century when expanding two-digit years. Sanity-check the date against the message timestamp before sending.
Example
The snippet below triggers the error:
PID|1||12345^^^H^MR||DOE^JOHN||21800101|MThe corrected version:
PID|1||12345^^^H^MR||DOE^JOHN||19800101|MFrequently asked questions
Why is a future birth date only a warning?
It is structurally valid as a date, so it does not break parsing. But it is semantically implausible, so the validator surfaces it as a warning to catch likely data-entry errors.
Related
- Open the HL7v2 Validator
- All validation errors
- Message Does Not Begin With an MSH Segment
- MSH-1 Field Separator Must Be Exactly One Character
- MSH-2 Encoding Characters Must Be Exactly 4 Characters
- Delimiter Characters Are Not Unique
- Required Segment Is Missing
- Required Field Is Missing or Empty
- Segment Appears More Times Than Allowed
- Segment Is Not Defined in This HL7v2 Version