I'm looking for C# code that translates a 271 health care eligibility benefit response to a more usable format so I can display certain segments and values into a datagridview. I'm looking for code that I can use to break this thing apart as it's not really difficult, just very tedious and was wondering if anybody else has done this and is willing to share.
There is an open source X12 parser (OopFactory X12 Parser: https://x12parser.codeplex.com) that does this for you.
To convert any X12 document to Xml:
To convert any X12 document to Html:
More details here: https://x12parser.codeplex.com/wikipage?title=Parsing%20an%20837%20Transaction&referringTitle=Documentation
To load an X12 271 response into a .Net object, you can use: