Any translate answer X12 271 Healthcare

I am looking for a C # code that translates the 271 response to patient care benefits into a more convenient format so that I can display specific segments and values ​​in a datagridview. I am looking for code that I can use to break this thing up, as it is not very difficult, just very tiring, and I was wondering if anyone else did this and wants to share it.

Thanks!!

+5
source share
3 answers

There is an open source open source X12 analyzer (OopFactory X12 Parser: https://x12parser.codeplex.com ) that does this for you.

To convert any X12 document to Xml:

FileStream fstream = new FileStream("Sample1.txt", FileMode.Open, FileAccess.Read);
var parser = new X12Parser();
Interchange interchange = parser.Parse(fstream);
string xml = interchange.Serialize();

X12- Html:

var htmlService = new X12HtmlTransformationService(new X12EdiParsingService(suppressComments: false));
Stream ediFile = new FileStream("Sample.txt", FileMode.Open, FileAccess.Read);
string html = htmlService.Transform(new StreamReader(ediFile).ReadToEnd());

: https://x12parser.codeplex.com/wikipage?title=Parsing%20an%20837%20Transaction&referringTitle=Documentation

X12 271 .Net, :

FileStream fstream = new FileStream("Sample1.txt", FileMode.Open, FileAccess.Read);
var service = new EligibilityTransformationService();
EligibilityBenefitDocument eligibilityBenefitDocument = service.Transform271ToBenefitResponse(fstream);
+5

DataDirect Technologies converter, XML.

0

perl python . , , :

  • C ( , ) , .
  • , .
-2

All Articles