HL7 v2 GT1-12 (Guarantor SSN): Format, Values, and Testing Notes
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.
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
Example
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.