---
title: Edi837File
summary: API reference for Edi837File.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-24
library: SAIF.Services
reference_type: package
---

# Edi837File

Represents an EDI X12 837 (Health Care Claim) transaction set — the inbound bill-submission file received from a clearinghouse that `EbillingService.Process837File` extracts into a batch. It wraps a raw `IEdiFile`'s segments under the `I837File` contract for consumption by `File837Extractor`, and carries a reference to the `Batch` the submission belongs to.

## Purpose
- Adapts a generic `IEdiFile` segment list into the `I837File` contract shape expected by 837 extraction and processing logic.
- Associates the transaction set with the e-billing `Batch` it was extracted into.

## Context
- Namespace: `SAIF.Services.Claims.Ebilling`
- Assembly/package: `SAIF.Services` (packaged inside the `SAIF.SAIFCode.Core` NuGet package)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| Edi837File | `public Edi837File(IEdiFile file)` | Copies the segments and file name from an existing `IEdiFile` into this 837-typed wrapper. |
| Batch | `public Core.Contracts.Claims.Ebilling.Batch Batch { get; set; }` | The e-billing batch this 837 transaction set is associated with. |

## Behavioral notes
- The constructor performs no EDI-content validation; it assumes the supplied `file` already contains valid 837 segments.*

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- Services/SAIF.Services/Claims/EBilling/Edi837File.cs
