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

# IMedicalEdiFileService

`IMedicalEdiFileService` declares a service contract in the Edi area, implemented outside this library (most likely in SAIF.Services, per the declare-here, enforce-elsewhere pattern documented for this library)*.

## Purpose
- Declares the operations that a SAIF.Services implementation must provide for the Edi area*.

## Context
- Namespace: `SAIF.Core.Contracts.Edi`
- Kind: Interface
- Assembly/package: `SAIF.Core` (NuGet package `SAIF.SAIFCode.Core`)

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| `Read999TransactionSet` | `IEdiFile Read999TransactionSet(string filepath, ILogWriter controlLog)` | Handles read999 transaction set, given `filepath`, `controlLog`*. |
| `IsFileBatchTypeValid` | `bool IsFileBatchTypeValid(IEdiFile file, string batchType)` | Indicates whether file batch type valid applies to this IMedicalEdiFileService*. |
| `GetIk5SegmentResponseCode` | `Ik5Segment GetIk5SegmentResponseCode(IEdiFile file)` | Returns ik5 segment response code, given `file`*. |
| `HasFileBeenAccepted` | `bool HasFileBeenAccepted(Ik5Segment ik5Segment)` | Indicates whether this IMedicalEdiFileService has file been accepted*. |

> **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
- Core/SAIF.Core/Contracts/Edi/IMedicalEdiFileService.cs
