Reference·GT1 Segment·GT1-12
HL7 v2 Reference

HL7 v2 GT1-12 (Guarantor SSN): Format, Values, and Testing Notes

Jul 27, 2026 · 4 min read
← GT1-11

GT1-12 is a plain string field holding a Social Security Number, which makes it one of the most sensitive values in the entire GT1 segment — and one of the worst places to find real data sitting in a lower environment.

Quick answer

GT1-12 is the Guarantor SSN field, carrying the responsible party's Social Security Number, typically used by billing systems for identity verification, credit reporting, or collections purposes rather than clinical care.

What this field contains

Format
Numeric string — usually nine digits, sometimes formatted with dashes as XXX-XX-XXXX
Sensitivity
High-risk PHI/PII — one of the fields most tightly governed by privacy and masking policy in test and staging systems
Optionality
Frequently blank — many source systems leave it empty when the guarantor declines to provide it, so parsers need to handle absence gracefully

Example

Synthetic example Generated by Synthibase
GT1|1||DOE^JOHN^R||482 OAK ST^^DENVER^CO^80202|3035550142|||||01|123-45-6789

GT1-12 (123-45-6789) is a clearly synthetic SSN pattern — real test data should never use values that resemble issued numbers.

Where this trips people up

The biggest risk with GT1-12 has nothing to do with parsing logic and everything to do with data hygiene: teams copy production extracts into lower environments for "realistic" testing and forget that GT1-12 is carrying live Social Security Numbers the whole time. The second most common issue is generators that produce SSNs which happen to fall in valid issued ranges, creating a false sense that the data is "fake" when it could collide with a real person's number. Either way, this is exactly the field synthetic data generation is built to neutralize.

HL7 v2 GT1 Segment Guide: Fields, Format, and Testing Gotchas
How to Build a Synthetic Patient Registry for Healthcare Testing
How to Write EDI Test Cases That Actually Catch Go-Live Failures
Never let a real SSN reach a test environment again
Synthibase generates guarantor SSNs that are obviously synthetic and structurally valid for testing, so your billing pipeline gets full coverage without exposing real PII.
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.