HIPAA 835 File Format: A Developer's Guide to EDI ERA Segments, Loops, and Validation
Overview of HIPAA 835 Standard
The HIPAA 835 is the Electronic Remittance Advice (ERA) transaction used to communicate healthcare claim payments and adjustments from payers to providers. It pairs with EFT to reconcile money movement with claim-level detail, enabling automated posting to practice management and revenue cycle systems.
In production, the 835 adheres to ASC X12 insurance implementation rules commonly known as X12N 005010A1. You exchange one or more 835 transaction sets inside X12 envelopes (ISA/IEA and GS/GE), and each transaction contains structured segments and loops that describe payer, payee, claims, service lines, adjustments, and final balances.
- Primary goals: convey the payment method and amount, enumerate adjustments with CARC/RARC codes, and tie everything to trace numbers so you can match ERA to EFT.
- Key artifacts: payment details (BPR), trace (TRN), payer/payee identity (NM1), claim payments (CLP in Loop 2100), service lines (SVC in Loop 2110), and provider-level adjustments (PLB).
- Outcome: faster cash posting, auditable Balancing Validation, and fewer manual touches.
Structure of Segments and Loops
Envelope and header
- ISA/IEA: Interchange envelope with separators and metadata.
- GS/GE: Functional group for 835 transaction sets.
- ST/SE: Transaction set wrapper for each ERA.
Payment context
- BPR: Method, currency, and payment amount; ties to EFT.
- TRN: Trace numbers used by you and the payer/bank to reconcile deposits.
- REF/DTM/CUR: Supplemental references, dates, and currency details.
Payer and payee identification
- Loop 1000A – Payer: NM1 Segment identifies the payer entity with ID qualifiers.
- Loop 1000B – Payee: NM1 Segment identifies the provider/payee receiving funds.
Claim and service loops
- Loop 2000 – LX: Line counter that precedes claim-detail loops.
- Loop 2100 – Claim Payment Information: CLP summarizes total charge, paid amount, patient responsibility, and claim status; associated NM1 (subscriber/patient when present), REF (claim identifiers), DTM (service dates), and CAS (adjustments) provide context.
- Loop 2110 – Service Payment Information: SVC and related CAS lines break down each service/procedure with charge, allowed, paid, and adjustments at the line level.
Provider-level adjustments and closeout
- PLB: Provider-Level Balance adjustments not tied to a specific claim (e.g., interest, prior overpayment recovery, withholds). These impact overall balancing to BPR.
- SE/GE/IEA: Transaction, group, and interchange closures with control counts for integrity.
Validation Levels and Balancing
Robust validation prevents downstream cash-posting errors. Many teams align checks to HIPAA/WEDI SNIP levels, progressing from syntax to business balancing.
Typical validation levels
- Level 1 – Interchange envelope: ISA/IEA, GS/GE, and ST/SE structure and control numbers.
- Level 2 – Segment syntax: segment order, required/optional elements, repeats, and datatypes.
- Level 3 – Element semantics: codes and qualifiers valid for the 835 context.
- Level 4 – Implementation rules: conformance to X12N 005010A1 situational notes.
- Level 5 – External code sets: CARC/RARC/Remittance remark code lookups.
- Level 6 – Balancing Validation: monetary cross-checks across service, claim, and provider levels.
- Level 7 – Situational/business rules: payer or Trading Partner Authentication policies that influence acceptance.
Balancing patterns you should implement
- Service line: SVC02 (line charge) ≈ SVC03 (line paid) + sum(CAS adjustments at the line) + patient responsibility at the line (if present).
- Claim level: CLP03 (total charge) ≈ CLP04 (claim paid) + sum(line- and claim-level CAS) + CLP05 (patient responsibility).
- Transaction level: BPR02 (payment amount) equals the sum of all CLP04 values adjusted by the net of PLB entries (PLB increases and decreases) and any claim interest or take-backs represented per the companion guide.
- Counts: ST/SE segment counts and LX sequence checks must align.
Because payers differ, always tune formulas to the companion guide. Some move interest into PLB, others keep it at claim line with a specific CAS code; your balancing must account for those patterns.
Delimiters and Syntax Rules
X12 allows configurable delimiters defined in the ISA segment. The data element separator appears immediately after “ISA”; the repetition separator is in ISA11; the component element (sub-element) separator is ISA16; the segment terminator ends each segment.
Ready to simplify HIPAA compliance?
Join thousands of organizations that trust Accountable to manage their compliance needs.
- Common defaults: element “*”, component “:”, repetition “^”, segment “~”. Your trading partner may use different characters—always read them from the inbound ISA.
- ISA is fixed-width; pad elements as required and preserve exactly one character for each separator chosen. Do not trim or wrap lines within the ISA.
- No escaping convention exists for delimiter characters inside data; partners typically choose delimiters unlikely to appear in name and address fields.
- Amounts are unsigned decimals with a period as the radix and no thousands separators; two decimal places are standard for currency.
- Dates are CCYYMMDD; times are HHMM or HHMMSS (local conventions may vary by guide).
Role of Companion Guides
Companion guides translate the generic implementation into payer-specific rules so you can build deterministic maps and validations. They define element usage, situational triggers, allowed qualifiers, CARC/RARC subsets, and how PLB and interest are represented.
- Mapping clarifications: which REF qualifiers appear in Loop 2100 for original claim IDs, how NM1 names are populated, and when subscriber vs. patient information is present.
- Balancing specifics: whether interest posts as claim-level CAS or PLB, and how negative remittances or take-backs are expressed.
- Operational parameters: file batching, naming, frequency, acknowledgments, and Trading Partner Authentication requirements (e.g., AS2 certificates, SFTP keys, or portal credentials).
Treat the companion guide as the contract for both generation and validation. Build configurable rules so you can onboard new partners without code changes.
Testing and Certification Processes
Successful ERA implementations move through staged testing before production. This reduces rejects and ensures your auto-posting behaves predictably under real payer data.
- Connectivity and authentication: establish AS2/SFTP/HTTPS endpoints and complete Trading Partner Authentication (certificates, keys, whitelisting) and any enrollment steps needed to receive ERA and EFT.
- Unit tests: validate envelopes, separators, and SNIP 1–3 syntax with small files; verify you parse delimiters from ISA and handle multiple ST/SE per GS.
- Integration tests: exercise Loop 2100 and Loop 2110 with diverse scenarios—denials, partial pays, capitations, recoupments, and PLB adjustments—then verify Balancing Validation outcomes.
- User acceptance: have revenue cycle teams confirm posting rules, reason-code mapping, and exception queues.
- Certification/approval: many payers require sample file approval or pilot cycles before enabling daily feeds.
- Go-live controls: monitor BPR02 vs. deposit amounts, post/rollback safety, and alerting on invalid codes or balance breaks.
Tools for Parsing and Generation
You can choose from open-source libraries, commercial EDI translators, and integration engines. Prioritize streaming parsers for large files, configurable rules for partner-specific logic, and clear error reporting tied to segment and element positions.
- Parsing: libraries in Python, Java, .NET, and Node can tokenize segments, honor ISA-defined delimiters, and map Loops 2100/2110 into structured objects for posting.
- Generation: template-driven builders let you insert BPR, TRN, CLP, SVC, CAS, and PLB from your source-of-truth ledger with deterministic ordering and rounding controls.
- Validation: SNIP-level validators check envelopes, codes, and Balancing Validation at line, claim, and transaction levels before files leave your system.
- Dev ergonomics: schema-driven maps, segment-level logging, and replayable test fixtures accelerate onboarding of new X12N 005010A1 partners.
Conclusion
The HIPAA 835 ERA organizes payments and adjustments into predictable segments and loops so you can automate posting with confidence. By reading delimiters from ISA, mapping NM1, CLP, and SVC accurately, enforcing Balancing Validation, and honoring companion guide rules, you deliver reliable reconciliation from BPR through PLB for every trading partner.
FAQs
What is the significance of the NM1 segment in HIPAA 835 files?
The NM1 Segment identifies entities by type and qualifier, enabling precise routing and posting. In Loop 1000A and 1000B it names the payer and payee; within claim loops it can identify subscriber or patient parties. Accurate NM1 values ensure your system links payments to the right provider and patient records.
How do validation levels differ in HIPAA 835 processing?
Validation typically progresses from envelope and syntax checks (SNIP 1–3), to implementation-specific rules (SNIP 4–5), and then to business balancing (SNIP 6–7). Early levels catch structural errors; later levels confirm code validity and that amounts reconcile across SVC, CLP, PLB, and the BPR payment total.
What delimiters are used in the HIPAA 835 file format?
Delimiters are defined in the ISA: the data element separator, repetition separator (ISA11), component element separator (ISA16), and the segment terminator. Common defaults are “*” for elements, “^” for repetitions, “:” for components, and “~” for segments, but you must always read and honor the actual characters from the inbound file.
How do companion guides assist in HIPAA 835 implementation?
Companion guides specify payer expectations beyond the base standard. They narrow allowed codes, define situational usage, clarify where to place adjustments (CAS vs. PLB), set balancing rules, and document operational details like file packaging and Trading Partner Authentication. Building to the guide minimizes rejects and speeds onboarding.
Ready to simplify HIPAA compliance?
Join thousands of organizations that trust Accountable to manage their compliance needs.