Reference·PID Segment·PID-16
HL7 v2 Reference

Understanding HL7 v2 PID-16: Marital Status in Practice

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

Marital status code tables vary more between systems than most fields in the PID segment, so an integration validated only against one source system’s code set is likely to reject or mis-map values the moment a second source system with a slightly different table is connected.

Quick answer

PID-16 is the sixteenth field of the HL7 v2 PID segment — it carries a coded value representing the patient’s marital status, used mainly for demographic and registration purposes.

Valid code values

S
Single
M
Married
D
Divorced
W
Widowed
A
Separated
U
Unknown

Example

Synthetic example Generated by Synthibase
PID|1||847213609^^^HOSP^MR||GARCIA^ELENA^MARIE||19870314|F|||482 OAK ST^^DENVER^CO^80202||3035550142|||M|

The M in PID-16 marks the patient as married. Synthetic patient — not a real person.

Where this trips people up

Different source systems sometimes use overlapping single-letter codes for different meanings, or extend the table with values like "P" for domestic partner that a receiving system was never configured to accept. A registration interface tested only against one facility’s code table will reject valid messages the moment a second facility with a different table connects.

HL7 v2 PID Segment Guide: Fields, Format, and Testing Gotchas
How to Evaluate a Healthcare EDI Clearinghouse Vendor: RFP Checklist
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Test every marital status code before go-live
Synthibase generates synthetic patients across the full range of marital status codes, including the less common ones that trip up cross-facility integrations.
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.