I am banging my head from 2 days. I am using x12 Parser, OOPsfactory for parsing a x12n 834 file. I need to parse each and every member eligibility information from this file. However, I was able to convert them to xml file. I used every steps as described in Convert XML TO CSV OOPsFactory!
My code for transforming the file is:
Stream _EligFileStream = new FileStream("E:\\Test\\a.dat", FileMode.Open, FileAccess.Read);
EligibilityTransformationService _EligibilityTransformationService = new EligibilityTransformationService();
EligibilityBenefitDocument _EligibilityBenefitDocument = _EligibilityTransformationService.Transform271ToBenefitResponse(_EligFileStream);
List<EligibilityBenefitResponse> _EligibilityBenefitResponsesList = new List<EligibilityBenefitResponse>();
_EligibilityBenefitResponsesList = _EligibilityBenefitDocument.EligibilityBenefitResponses;
foreach (EligibilityBenefitResponse _EligibilityBenefitInquiry in _EligibilityBenefitResponsesList)
{
Console.WriteLine(_EligibilityBenefitInquiry.Dependent.Name);
/*
....
....
other required fields
*/
}
Console.Read();
The transformationcode of OopsFactory is returning me zero results. What am I doing wrong.
Does anyone has face the same problem before or had succeeded in parsing the 834 eligibility file using OopsFactory with any other free tool.
No comments:
Post a Comment