Reference·PID Segment·PID-13
HL7 v2 Reference

What Is HL7 v2 PID-13? Phone Number - Home, Explained for Testers

Jul 27, 2026 · 4 min read
← PID-11 PID-15 →

Phone numbers in PID-13 arrive from source systems in wildly different formats — with or without area code parentheses, dashes, extensions — and any downstream system that expects a single clean format will choke on the ones that don’t match, right when an automated appointment-reminder call fails to dial.

Quick answer

PID-13 is the thirteenth field of the HL7 v2 PID segment — it carries the patient’s home telephone number, either as a repeating structured telecommunication field or as a simple formatted string depending on the sending system.

What this field contains

Component 1
Telephone Number (legacy free-text format, e.g. (303)555-0142)
Component 2
Telecommunication Use Code (e.g. PRN for primary residence number)
Component 6
Area/City Code (in the structured XTN format)
Component 7
Local Number (in the structured XTN format)

Example

Synthetic example Generated by Synthibase
PID|1||847213609^^^HOSP^MR||GARCIA^ELENA^MARIE||19870314|F|||482 OAK ST^^DENVER^CO^80202||(303)555-0142|

PID-13 carries the home phone number in the legacy free-text format still sent by many source systems. Synthetic patient — not a real person.

Where this trips people up

Some source systems still send this field as an unstructured string like (303)555-0142, while others send fully componentized XTN values. A parser tuned for one format will either fail outright or silently extract garbage digits from the other, which is exactly the kind of thing that only appears once real production feeds start mixing formats.

HL7 v2 PID Segment Guide: Fields, Format, and Testing Gotchas
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Healthcare API Testing Guide: FHIR and X12
Generate every phone number format variant
Synthibase generates synthetic patients with phone numbers across both legacy and structured formats, so parsing logic gets tested against what real feeds actually send.
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.