Reference·REF Segment·REF01
X12 837P Reference

REF01 in X12 837P: A Field Guide to Reference Identification Qualifier

Jul 27, 2026 · 4 min read
REF02 →

REF01 is the single field standing between a prior authorization number and a referral number that both look, structurally, exactly the same — get the qualifier wrong and the value in REF02 gets read as the wrong kind of reference entirely.

Quick answer

REF01 is the first element of the REF segment — a short code that tells the reader what category of reference number follows in REF02, such as a prior authorization number, an original claim number, or a referral number.

Common qualifier values in an 837P claim

G1
Prior Authorization Number — authorization on file for the service being billed
F8
Original Reference Number — used when the claim is correcting or voiding a prior submission
9F
Referral Number — referral authorization tied to the service
EA
Medical Record Identification Number — provider's internal chart number

Example

Synthetic example Generated by Synthibase
REF*G1*AUTH88213221*

G1 is the qualifier; it tells any reader downstream that AUTH88213221 in REF02 is a prior authorization number. Synthetic claim data.

Where this trips people up

REF01 values are easy to treat as interchangeable free text during code generation, especially when a mapping table copies the wrong row for a given loop. A test file with REF01 = 9F where the source system actually meant to send a prior authorization number will validate structurally but attach the number to the wrong concept, so the payer either ignores it or applies the wrong business rule to it.

Testing X12 837P REF: The Fields Your System Actually Needs to Handle
What is X12 837P? Complete Format and Field Guide
EDI Rejection Codes: Complete List and How to Fix Them
Generate REF segments with correctly matched qualifiers
Synthibase generates synthetic 837P claims where every REF01 qualifier is paired with the right kind of reference number, so downstream parsing logic gets tested against realistic, correctly-typed data.
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.