834 EDI File Format Explained: Structure, Segments, and Examples
Overview of EDI 834 Standard
The EDI 834 is the X12 transaction for Enrollment Data Exchange between a plan sponsor (such as an employer, exchange, or benefits administrator) and a payer or third-party administrator. You use it to add, change, terminate, or reinstate coverage for subscribers and dependents, keeping enrollment in sync across systems.
Within HIPAA Compliance requirements for standard electronic transactions, most trading partners in the United States implement version 005010X220A1. Each file is wrapped by an Interchange Control Header and trailer (ISA/IEA), contains one or more Functional Groups (GS/GE), and includes at least one Transaction Set that begins with a Transaction Set Header (ST) and ends with a Transaction Set Trailer (SE).
Adopting the 834 reduces manual keying, prevents mismatches in eligibility, and accelerates reconciliation. Payer companion guides tailor certain codes and data elements while remaining aligned with the base implementation guide.
Hierarchical File Structure
Interchange Control Header and Trailer (ISA/IEA)
- ISA declares delimiters and identifies the sender and receiver; IEA closes the interchange and reports the number of functional groups.
- The ISA segment is fixed-length; fields are space-padded and the final character defines the component (sub-element) separator.
Functional Group Header and Trailer (GS/GE)
- GS specifies the functional identifier code for enrollment (BE), application sender/receiver codes, date/time stamps, and version.
- GE closes the group and reports how many Transaction Sets (ST/SE) are inside.
Transaction Set Header and Trailer (ST/SE)
- ST marks the start of the 834 Transaction Set and carries the control number and implementation reference.
- SE ends the set and provides a segment count used to validate file integrity as the Transaction Set Trailer.
Member and Dependent Loops (2000/2100 with INS)
- Loop 1000 identifies the Sponsor (N1*P5) and the Payer (N1*IN).
- Loop 2000 begins with the Member Level Detail Segment (INS), indicating add/change/terminate actions, relationship, and status.
- Nested 2100 loops hold person-level data: name (NM1), demographics (DMG), addresses (N3/N4), contacts (PER), identifiers (REF), and coverage details (HD, DTP).
Key Segments and Their Functions
Control and Context
- Interchange Control Header (ISA) and IEA: envelope the entire transmission and define separators.
- Functional Group Header (GS) and GE: organize related Transaction Sets for enrollment.
- Transaction Set Header (ST) and Transaction Set Trailer (SE): bound each 834 and support control totals.
- BGN (Beginning Segment): specifies transaction purpose, reference number, and date/time.
Trading Partner and Plan Identification
- N1 Loops (1000A/1000B): identify Sponsor and Payer; qualifiers and tax IDs appear via N1 and REF.
- PER: provides contact details for coordination.
Member-Level Detail and Person Information
- INS (Member Level Detail Segment): conveys maintenance type (add, change, terminate), relationship, and benefit status.
- NM1: names for subscriber or dependent; REF adds identifiers like subscriber ID (0F) or group numbers.
- DMG: demographic attributes such as birth date and gender.
- N3/N4: street and geographic address.
Coverage and Dates
- HD: coverage line (e.g., medical, dental) and plan identifiers.
- DTP: effective, begin, and end dates (for example, 007, 348, 349 qualifiers).
Segment Delimiters and Formatting
Most 834 files use “~” as the segment terminator, “*” as the element (data) separator, and “:” as the component (sub-element) separator. These delimiters are declared in the ISA segment, and the component separator is the last character of the ISA segment. Some implementations also use a repetition separator defined in the ISA for repeating simple elements.
Key practices you should follow:
- Honor the exact delimiters found in the ISA; do not assume defaults.
- Avoid placing delimiter characters inside data; if unavoidable, coordinate escape or substitution rules with your trading partner.
- Preserve ISA field lengths and spacing; trimming spaces in ISA elements will corrupt parsing.
- Ensure ST/SE counts and GS/GE, ISA/IEA control numbers reconcile to prevent rejections.
Example 834 File Snippet
ISA*00* *00* *ZZ*SENDERID *ZZ*RECEIVERID *260220*1200*^*00501*000000905*0*T*:~
GS*BE*SENDERID*RECEIVERID*20260220*1200*1*X*005010X220A1~
ST*834*0001*005010X220A1~
BGN*00*123456*20260220*120000*ET***4~
REF*38*MASTERPOLICY123~
DTP*007*D8*20260220~
N1*P5*SPONSOR NAME*FI*123456789~
N1*IN*PAYER NAME*FI*987654321~
INS*Y*18*030*XN*A*E**FT~
REF*0F*SUBSCRIBERID123~
NM1*IL*1*DOE*JOHN****34*123456789~
DMG*D8*19800115*M~
HD*030**HLT*PLAN123~
DTP*348*D8*20260301~
DTP*349*D8*20261231~
SE*15*0001~
GE*1*1~
IEA*1*000000905~
This snippet shows common delimiters (*, ~, :) and the core envelope (ISA/IEA, GS/GE, ST/SE) around a single member add with coverage dates.
Ready to simplify HIPAA compliance?
Join thousands of organizations that trust Accountable to manage their compliance needs.
Usage in Health Plan Enrollment
You use the 834 to transmit initial enrollment files during onboarding and ongoing maintenance files for life events and open enrollment. Maintenance Type Codes in INS (for example, add, change, terminate) and reason codes communicate exactly what changed and why.
Typical scenarios include new hires and dependents, qualifying life events, COBRA, plan changes at renewal, and terminations. Accurate identifiers in REF segments (subscriber IDs, group numbers) and clear coverage lines in HD enable payers to apply updates precisely and avoid eligibility gaps.
Compliance and Regulatory Context
The 834 is one of HIPAA-mandated standard transactions for healthcare enrollment. Using the prescribed structure and codes helps you maintain HIPAA Compliance while exchanging protected health information. Security and privacy safeguards (access controls, encryption in transit and at rest, and audit logging) must accompany the technical format.
Operationally, trading partners often exchange acknowledgments: TA1 at the interchange level and 999 at the functional group/transaction level. Companion guides document payer-specific preferences (such as accepted qualifiers and required REF/DTP combinations), and certification or testing validates conformance before production.
Conclusion
The EDI 834 standardizes health plan Enrollment Data Exchange through a layered envelope (ISA/IEA, GS/GE, ST/SE), clear member loops (INS with 2100 detail), and coverage segments (HD/DTP). When you honor declared delimiters, control totals, and HIPAA-mandated structure, you enable fast, accurate enrollment processing with fewer errors and smoother reconciliation.
FAQs.
What is the purpose of the 834 EDI file format?
It standardizes how sponsors send health plan enrollment and maintenance information to payers, enabling automated adds, changes, terminations, and reinstatements for subscribers and dependents.
How are segments and loops structured in the 834 file?
The file nests Transaction Sets (ST/SE) inside GS/GE and ISA/IEA envelopes. Member data appears in Loop 2000 starting with the INS (Member Level Detail Segment), followed by 2100 loops for name (NM1), demographics (DMG), addresses (N3/N4), identifiers (REF), and coverage (HD, DTP).
What delimiters are used to separate segments and elements?
Typically “~” terminates segments, “*” separates elements, and “:” separates component (sub-) elements. These are defined in the ISA; some implementations also use a repetition separator declared there.
How does the 834 file support HIPAA compliance?
By using the mandated X12 structure (often 005010X220A1), standardized codes, and control totals, the 834 meets HIPAA transaction standards. When combined with appropriate security and privacy safeguards, it helps you exchange PHI in a compliant, audit-ready manner.
Ready to simplify HIPAA compliance?
Join thousands of organizations that trust Accountable to manage their compliance needs.