Understanding HL7 v2 PID-7: Date/Time of Birth in Practice
PID-7 looks like a simple date field until two systems disagree on precision — one sending an 8-digit date and another expecting a full timestamp — and every downstream age calculation or eligibility check quietly starts producing wrong answers.
PID-7 is the seventh field of the HL7 v2 PID segment — it carries the patient’s date and, optionally, time of birth in HL7’s standard timestamp format.
What this field contains
Example
19870314 in PID-7 is a date-only value representing March 14, 1987. Synthetic patient — not a real person.
Where this trips people up
Some source systems send date-only precision while a receiving application expects a full timestamp and pads or truncates incorrectly, shifting the parsed date by a day depending on timezone handling. This is especially costly for newborn ADT feeds, where the birth time in PID-7 is clinically meaningful, not just a formatting detail.