### Read EDI File and Extract Transactions Source: https://github.com/edifabric/x12.net/blob/master/README.md Demonstrates how to read an EDI file stream, parse it into a list of EDI items, and then filter for specific transaction types like TS837P. Ensure the correct template namespace is provided. ```C# var ediStream = File.OpenRead(Directory.GetCurrentDirectory() + @"..\..\..\Files\Hipaa\ClaimPayment.txt"); List ediItems; using (var ediReader = new X12Reader(ediStream, "EdiFabric.Templates.Hipaa")) ediItems = ediReader.ReadToEnd().ToList(); var transactions = ediItems.OfType(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.