Create 270 X12 Eligibility Request Message using C# (MS .NET)



https://aifazkh.gumroad.com/l/SpNOcN

Introduction:


Health Care Eligibility Benefit Inquiry and Response (270/271)



This post helps the provider to determine whether the information source (payer) has a particular subscriber or dependent on file and the health care eligibility and/or benefit information about that subscriber and/or dependent(s). 

The post provides the provider with the information at the time the patient checks in and makes the information available instantaneously, which is not possible through other methods like paper and phone. 

1.Create 270 Request using C#


Sample 270 Eligibility Request:

ISA*00* *00* *ZZ*SUBMITTERID *ZZ*CMS *140831*0734*^*00501*000005014*1*P*|~
GS*HS*SUBMITTERID*CMS*20140831*073411*5014*X*005010X279A1~
ST*270*000000001*005010X279A1~
BHT*0022*13*TRANSA*20140831*073411~
HL*1**20*1~
NM1*PR*2*CMS*****PI*CMS~
HL*2*1*21*1~
NM1*1P*2*IRNAME*****XX*1234567893~
HL*3*2*22*0~
TRN*1*TRACKNUM*ABCDEFGHIJ~
NM1*IL*1*LNAME*FNAME****MI*123456789A~
DMG*D8*19400401~
DTP*291*RD8*20140201-20141031~
EQ*10^14^30^42^45^48^67^A7^AD^AE^AG^BF^BG~
EQ**HC|80061~
EQ**HC|G0117~
SE*15*000000001~
GE*1*5014~

IEA*1*000005014~

I have created Main Class called as ManualX12Creation and it will call other segments  classes like ISA, IEA and NM1 etc..

public class ManualX12Creation
{
        Patient patient;
        Provider provider;
        Payer payer;
        DTP dtp;
        public ManualX12Creation(Patient opatient, Provider oprovider, Payer opayer, DTP odtp)
        {

            patient = opatient;
            provider = oprovider;
            payer = opayer;
            dtp = odtp;

        }

 public string CreateISA(string row, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            ISA isa = new ISA();
            string[] ISA = new string[16];

            ISA[0] = "ISA";           // Interchange Control Header Segment ID 

            ISA[1] = "00";              // Author Info Qualifier 

            ISA[2] = String.Format("{0,10}", " "); //"".PadRight(10, ' ');          // Author Information 

            //ISA[2] = ISA[2].Substring(0, 10);

            ISA[3] = "00";                          //   Security Information Qualifier
            //   MEDI-CAL NOTE: For Leased-Line & Dial-Up use '01', 
            //   for BATCH use '00'.
            //   '00' No Security Information Present 
            //   (No Meaningful Information in I04)


            ISA[4] = String.Format("{0,10}", " ");//"".PadRight(10, ' ');    // Security Information 

            //ISA[4] = ISA[4].Substring(0, 10);

            ISA[5] = "ZZ".PadRight(2, ' ');             // Interchange ID Qualifier

            ISA[6] = isa.InterchangeSenderID.PadRight(15, ' '); //X12info[2].PadRight(15, ' ');      // INTERCHANGE SENDER ID 

            ISA[7] = "ZZ".PadRight(2, ' ');             // Interchange ID Qualifier 

            ISA[8] = isa.InterchangeReceiverID.PadRight(15, ' ');//X12info[3].PadRight(15, ' ');      // INTERCHANGE RECEIVER ID 

            ISA[9] = isa.InterchangeDate; //DateTime.Parse("2008/08/16").ToString("yyMMdd");//    // Interchange Date (YYMMDD) 

            ISA[10] = isa.InterchangeTime; //DateTime.Now.ToString("HHmm");//.PadRight(4, ' ');               // Interchange Time (HHMM)

            ISA[11] = "^";                                                          // Interchange Control Standards Identifier 

            ISA[12] = isa.InterchangeControlVersionNumber.PadRight(5, ' '); //"00501".PadRight(5, ' ');                                // Interchange Control Version Number 

            ISA[13] = isa.InterchangeControlNumber.PadRight(9, ' '); //"000000001".PadRight(9, ' ');                            // INTERCHANGE CONTROL NUMBER   

            ISA[14] = "0".PadRight(1, ' ');                                         // Acknowledgment Request [0= not requested, 1= requested]  

            ISA[15] = isa.UsageIndicatorProductionOrTest.PadRight(1, ' '); //"P".PadRight(1, ' ');                         // Usage Indicator [ P = Production Data, T = Test Data ]


            // string sep = "*";                                       // Data Element Separator 
            string sCreatedISA = String.Join(sep, ISA);
            sCreatedISA = sCreatedISA + "*";
            sCreatedISA = sCreatedISA + SegTerminator + ElementSeparator;

            return sCreatedISA.Trim();



        }


 // GS Segment  - EDI(x12 for A)-270 format 
        public string CreateGS(string row, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            GS gs = new GS();

            string[] GS = new string[9];

            GS[0] = "GS";                       // Functional Group Header Segment ID 

            GS[1] = "HS";                       // Functional ID Code [ HS = Eligibility, Coverage or Benefit Inquiry (270) ] 

            GS[2] = gs.GSApplicationSenderID; //X12info[2];                 // Application Sender's ID 

            GS[3] = gs.GSApplicationReceiverID; //X12info[3];                 // Application Receiver's ID 

            GS[4] = gs.GSDate; //DateTime.Parse("2007/08/16").ToString("yyyyMMdd");            // Date [CCYYMMDD] 

            GS[5] = gs.GSTime; //DateTime.Now.ToString("HHmmss");       // Time [HHMM] Group Creation Time  

            GS[6] = gs.GSGroupControlNumber; //"107018";                                           // Group Control Number 

            GS[7] = "X";                                                // Responsible Agency Code Accredited Standards Committee X12 ] 

            GS[8] = "005010X279A1";                                     // Version Release / Industry[ Identifier Code Query 

            //string sep = "*";
            string sCreatedGS = String.Join(sep, GS);
            sCreatedGS = sCreatedGS + ElementSeparator;

            return sCreatedGS.Trim();
        }


// ST Segment  - EDI(X12 A)-270 format 
        public string CreateST(string row, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            ST st = new ST();
            string[] ST = new string[4];
            ST[0] = "ST";                   // Transaction Set Header Segment ID 

            ST[1] = st.TransactionSetIdentifierCode; //"270";                  // Transaction Set Identifier Code (Inquiry Request) 

            ST[2] = st.STControlNumber; //"0001";                 // Transaction set control number must match SE

            ST[3] = "005010X279A1";

            // string sep = "*";
            string sCreatedST = String.Join(sep, ST);
            sCreatedST = sCreatedST + ElementSeparator;

            return sCreatedST.Trim();

        }


 // BHT Segment  - EDI(X12 A)-270 format 
        public string CreateBHT(string row, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            BHT bht = new BHT();
            string[] BHT = new string[6];

            BHT[0] = "BHT";                         // Beginning of Hierarchical Transaction Segment ID 

            BHT[1] = bht.SubscriberStructureCode; //"0022";                        // Subscriber Structure Code 

            BHT[2] = bht.PurposeCode; //"13";                          // Purpose Code - This is a Request   

            BHT[3] = bht.SubmitterTransactionIdentifier; //"TSG123";                      //  Submitter Transaction Identifier  
            //This information is required by the information Receiver 
            //when using Real Time transactions. 
            //For BATCH this can be used for optional information.

            BHT[4] = bht.TransactionCreatedDate; //DateTime.Parse("2007/08/16").ToString("yyyyMMdd");      // Date Transaction Set Created 

            BHT[5] = bht.TransactionCreatedTime; //DateTime.Now.ToString("HHmmss").ToString();    // Time Transaction Set Created 

            //string sep = "*";
            string sCreatedBHT = String.Join(sep, BHT);
            sCreatedBHT = sCreatedBHT + ElementSeparator;

            return sCreatedBHT.Trim();


        }

 // HL Segment  - EDI-270 format 
        public string CreateHL(string row, int nHLCounter, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            HL hl = new HL();
            string[] HL = new string[5];
            HL[0] = "HL";
            //HL_LEN[0] =  2;

            HL[1] = Convert.ToString(nHLCounter);               // Hierarchical ID No. 


            if (nHLCounter == 1)
            {
                HL[2] = "";
                HL[3] = hl.HLCounter1Value1; //"20"; // Description: Identifies the payor, maintainer, or source of the information.
                HL[4] = hl.HLCounter1Value2; //"1"; // 1 Additional Subordinate HL Data Segment in This Hierarchical Structure. 
            }
            else if (nHLCounter == 2)
            {
                HL[2] = hl.HLCounter2Value0; //"1"; // Hierarchical Parent ID Number 
                HL[3] = hl.HLCounter2Value1; //"21"; // Hierarchical Level Code. '21' Information Receiver
                HL[4] = hl.HLCounter2Value2; //"1"; // 1 Additional Subordinate HL Data Segment in This Hierarchical Structure. 
            }
            else
            {
                HL[2] = hl.HLCounter3Value0; //"2";
                HL[3] = hl.HLCounter3Value1; //"22"; // Hierarchical Level Code.'22' Subscriber 
                HL[4] = hl.HLCounter3Value2; //"0"; // 0 no Additional Subordinate in the Hierarchical Structure. 
            }

            //string sep = "*";
            string sCreatedHL = String.Join(sep, HL);
            sCreatedHL = sCreatedHL + ElementSeparator;

            return sCreatedHL.Trim();

        }


 public string CreateNM1(string row, string NM1Cast, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            NM1 nm1 = new NM1();
            string[] NM1 = new string[10];

            NM1[0] = "NM1";

            if (NM1Cast == nm1.NM1PR)//nm1.NM1PR
            {
                NM1[1] = "PR"; // Entity ID Code - Payer [PR Payer] 
                NM1[2] = "2"; // Entity Type - Non-Person 
                NM1[3] = payer.PayerName;            // Organizational Name 
                NM1[4] = ""; // Data Element not required.
                NM1[5] = ""; // Data Element not required.
                NM1[6] = ""; // Data Element not required.
                NM1[7] = ""; // Data Element not required.
                NM1[8] = "PI"; // 46 - Electronic Transmitter Identification Number (ETIN) 
                NM1[9] = payer.PayerID; //"ABC123";//X12info[3]; // Application Sender's ID 
            }
            else if (NM1Cast == nm1.NM1P1)//nm1.1P
            {
                NM1[1] = "1P"; // Entity ID Code - Provider [1P Provider]
                NM1[2] = "2"; // Entity Type - Person 
                NM1[3] = provider.ProviderName; //"TestOrg..";               //row['facility_name']; // Organizational Name 
                //NM1[4] = row['provider_lname']; // Data Element not required.
                //NM1[5] = row['provider_fname']; // Data Element not required.
                NM1[4] = ""; // Data Element not required.
                NM1[5] = ""; // Data Element not required.
                NM1[6] = ""; // Data Element not required.
                NM1[7] = ""; // Data Element not required.
                NM1[8] = "XX";
                NM1[9] = provider.NPI; //"ABC123";                           //row['provider_npi'];
            }
            else if (NM1Cast == nm1.NM1IL)////nm1.IL
            {
                NM1[1] = "IL"; // Insured or Subscriber 
                NM1[2] = "1"; // Entity Type - Person 
                // NM1[3] = "Khan";   patient.LastName    
                NM1[3] = patient.LastName; //row['lname']; // last Name
                NM1[4] = patient.FirstName;//"Aifaz";           //row['fname']; // first Name
                NM1[5] = "";                   //row['mname']; // middle Name
                NM1[6] = ""; // data element 
                NM1[7] = ""; // data element 
                NM1[8] = "MI"; // Identification Code Qualifier 
                NM1[9] = patient.IdentificationCode; //"12345";            //row['subscriber_ss']; // Identification Code 
            }

            //string sep = "*";
            string sCreatedNM1 = String.Join(sep, NM1);
            sCreatedNM1 = sCreatedNM1 + ElementSeparator;

            return sCreatedNM1.Trim();


        }

  public string CreateREF(string row, string sref, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            REF oref = new REF();
            string[] REF = new string[3];
            REF[0] = "REF";

            if (sref == "1P")
            {
                REF[1] = "4A"; // Reference Identification Qualifier 
                REF[2] = oref.REFProviderPIN;//"ABC123"; // Provider Pin. 
            }
            else
            {
                REF[1] = "TJ"; // 'EJ' for Patient Account Number 
                REF[2] = oref.REFPatAccountNO; //"ABC123"; // Patient Account No. 
            }

            // string sep = "*";
            string sCreatedREF = String.Join(sep, REF);
            sCreatedREF = sCreatedREF + ElementSeparator;

            return sCreatedREF.Trim();
        }

public string CreateTRN(string row, string trancNO, string refIdentifier, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            TRN trn = new TRN();
            // trn.TraceNumber = trancNO;
            string[] TRN = new string[5];
            TRN[0] = "TRN";
            TRN[1] = "1";
            TRN[2] = trn.TraceNumber; //trancNO;               // Trace Number 
            TRN[3] = trn.CompanyID; //"9000000000";        // Originating Company ID  must be 10 positions in length 
            TRN[4] = trn.RefIdentifier; //refIdentifier;         // Additional Entity Identifier (i.e. Subdivision) 

            // string sep = "*";
            string sCreatedTRN = String.Join(sep, TRN);
            sCreatedTRN = sCreatedTRN + ElementSeparator;

            return sCreatedTRN.Trim();
        }

//Demographics


    public string CreateDMG(string row, string[] X12info, string SegTerminator, string ElementSeparator)

        {



            string[] DMG = new string[4];

            DMG[0] = "DMG";
            DMG[1] = "D8";              // Date Format Qualifier - (D8 means CCYYMMDD)
            DMG[2] = patient.DOB;//"1990/01/01";        // Subscriber's Birth date
            DMG[3] = patient.Gender;
            string sep = "*";
            string sCreatedDMG = String.Join(sep, DMG);
            sCreatedDMG = sCreatedDMG + ElementSeparator;

            return sCreatedDMG.Trim();

        }


 public string CreateDTP(string row, string qual, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            //DTP dtp = new DTP();
            //qual=291
            //dtp.Qualifier = qual;
            string[] DTP = new string[4];
            DTP[0] = "DTP";

            DTP[1] = dtp.Qualifier; //qual; // Qualifier - Date of Service 

            DTP[2] = dtp.DateFormatQualifier; // Date Format Qualifier - (D8 means CCYYMMDD) 

            if (qual == "102")
            {
                DTP[3] = dtp.EventDate; //"Date";//row['date']; // Date 
            }
            else
            {
                DTP[3] = dtp.EventDate; //"1990/01/01";//row['pc_eventDate']; // Date of Service 
            }

            //string sep = "*";
            string sCreatedDTP = String.Join(sep, DTP);
            sCreatedDTP = sCreatedDTP + ElementSeparator;

            return sCreatedDTP.Trim();
        }

 public string CreateEQ(string row, string[] X12info, string SegTerminator, string ElementSeparator)
        {
            EQ eq = new EQ();
            string[] EQ = new string[2];
            EQ[0] = "EQ";
            EQ[1] = eq.ServiceTypeCode; //"30";               // Service Type Code 

            string sep = "*";
            string sCreatedEQ = String.Join(sep, EQ);
            sCreatedEQ = sCreatedEQ + ElementSeparator;

            return sCreatedEQ.Trim();


        }

  public string CreateSE(string row, string SegmentCount, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            //SegmentCount=14
            SE se = new SE();
            // se.SegmentCount = SegmentCount;
            string[] SE = new string[3];

            SE[0] = "SE";

            SE[1] = se.SegmentCount;// SegmentCount;       // Segment Count 

            SE[2] = se.TransactionSetControlNumber; //"0001"; // Transaction Set Control Number - Must match ST's 

            //string sep = "*";
            string sCreatedSE = String.Join(sep, SE);
            sCreatedSE = sCreatedSE + ElementSeparator;

            return sCreatedSE.Trim();

        }

 public string CreateGE(string row, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            GE ge = new GE();
            string[] GE = new string[3];

            GE[0] = "GE";
            GE[1] = ge.NumberofIncludedTrans; //"1";                // Number of included Transaction Sets 
            GE[2] = ge.GroupControlNumber; //"1048";                 // Group Control Number match with GS06

            //string sep = "*";
            string sCreatedGE = String.Join(sep, GE);
            sCreatedGE = sCreatedGE + ElementSeparator;

            return sCreatedGE.Trim();

        }

 public string CreateIEA(string row, string[] X12info, string SegTerminator, string ElementSeparator, string sep)
        {
            IEA iea = new IEA();

            string[] IEA = new string[3];

            IEA[0] = "IEA";

            IEA[1] = iea.NumberofIncludedTrans; //"1";                               // Number of included Functional Groups 

            IEA[2] = iea.InterchangeControlNumber; //"000000001"; // Interchange Control Number 

            //string sep = "*";
            string sCreatedIEA = String.Join(sep, IEA);
            sCreatedIEA = sCreatedIEA + ElementSeparator;

            return sCreatedIEA.Trim();

        }


 public string PrintEDI(string row, string res, string[] X12info, string SegTerminator, string ElementSeparator)

        {

            int i = 1;


            StringBuilder sbEDI = new StringBuilder();
            string PatEDI = "";

            // For Header Segment 
            int segmentcount = 1;
            int nHlCounter = 1;
            int rowCount = 1;
            int trcNo = 1234501;
            int refiden = 5432101;

            //while (row = sqlFetchArray(res)) 
            while (i == rowCount)
            {
                if (nHlCounter == 1)
                {
                    // create ISA 

                    sbEDI.AppendLine(CreateISA(row, X12info, SegTerminator, ElementSeparator, "*"));
                    // create GS 

                    sbEDI.AppendLine(CreateGS(row, X12info, SegTerminator, ElementSeparator, "*"));
                    // create ST 

                    sbEDI.AppendLine(CreateST(row, X12info, SegTerminator, ElementSeparator, "*"));
                    // create BHT 

                    sbEDI.AppendLine(CreateBHT(row, X12info, SegTerminator, ElementSeparator, "*"));

                    // For Payer Segment 


                    sbEDI.AppendLine(CreateHL(row, 1, X12info, SegTerminator, ElementSeparator, "*"));

                    sbEDI.AppendLine(CreateNM1(row, "PR", X12info, SegTerminator, ElementSeparator, "*"));

                    // For Provider Segment


                    sbEDI.AppendLine(CreateHL(row, 2, X12info, SegTerminator, ElementSeparator, "*"));

                    sbEDI.AppendLine(CreateNM1(row, "1P", X12info, SegTerminator, ElementSeparator, "*"));

                    sbEDI.AppendLine(CreateREF(row, "TJ", X12info, SegTerminator, ElementSeparator, "*"));//1P initially

                    nHlCounter = nHlCounter + 2;

                    segmentcount = 7; // segement counts - start from ST 
                }


                // For Subscriber Segment

                // PatEDI += CreateHL(row, nHlCounter, X12info, SegTerminator, ElementSeparator);
                sbEDI.AppendLine(CreateHL(row, nHlCounter, X12info, SegTerminator, ElementSeparator, "*"));

                sbEDI.AppendLine(CreateTRN(row, Convert.ToString(trcNo), Convert.ToString(refiden), X12info, SegTerminator, ElementSeparator, "*"));

                sbEDI.AppendLine(CreateNM1(row, "IL", X12info, SegTerminator, ElementSeparator, "*"));

                // sbEDI.AppendLine(CreateREF(row, "IL", X12info, SegTerminator, ElementSeparator, "*")); //Commented repeating

                sbEDI.AppendLine(CreateDMG(row, X12info, SegTerminator, ElementSeparator));

                sbEDI.AppendLine(CreateDTP(row, "472", X12info, SegTerminator, ElementSeparator, "*"));

                sbEDI.AppendLine(CreateEQ(row, X12info, SegTerminator, ElementSeparator));

                segmentcount = segmentcount + 7;
                nHlCounter = nHlCounter + 1;
                rowCount = rowCount + 1;
                trcNo = trcNo + 1;
                refiden = refiden + 1;
                //i = i + 1;
                //if(rowCount == sqlNumRows(res))
                if (i == 1)
                {
                    segmentcount = segmentcount + 1;
                    // PatEDI += CreateSE(row, Convert.ToString(segmentcount), X12info, SegTerminator, ElementSeparator);
                    sbEDI.AppendLine(CreateSE(row, Convert.ToString(segmentcount), X12info, SegTerminator, ElementSeparator, "*"));
                    // PatEDI += CreateGE(row, X12info, SegTerminator, ElementSeparator);
                    sbEDI.AppendLine(CreateGE(row, X12info, SegTerminator, ElementSeparator, "*"));
                    //PatEDI += CreateIEA(row, X12info, SegTerminator, ElementSeparator);
                    sbEDI.AppendLine(CreateIEA(row, X12info, SegTerminator, ElementSeparator, "*"));
                }

            }
            //print $PATEDI;
            return PatEDI = sbEDI.ToString();
        }

    } // End of ManualX12Creation Class
}

Segments Classes:



















































Similarly we create other segments classes as like above and passed it to above main class.

To input data into 270 string using class








































And finally invoke class as below

ManualX12Creation objManualX12Creation = new ManualX12Creation(oPatient, oProvider, oPayer, oDTP);
            string[] X12info = new string[5];


            string FileContent = objManualX12Creation.PrintEDI("row", "res", X12info, ":", "~");

Comments

  1. I will provide full source code if somebody need it..

    ReplyDelete
    Replies
    1. Could you provide the code, thanks a lot

      Delete
    2. Please provide me the Source Code here is my email:-
      saqib.00@gmail.com

      Thanks

      Delete
    3. Please provide code: sivan.svm@gmail.com

      Thanks!

      Delete
    4. Please help me. Could you please send me source code
      ajose2255 at gmail dot com

      Delete
    5. I would love to have the source if you don't mind. Thanks a bunch.

      Email: ramesl@gmail.com

      Delete
    6. Can you please provide full source code on below Id

      hitendra.softwareengg@gmail.com

      Delete
    7. Could you provide the code, thanks a lot
      albert_asis@hotmail.com

      Delete
    8. Hi. Can you please email me the source code at srinivas.saggurthi@gmail.com

      Thanks

      Delete
    9. Hi Aifaz. You are doing a great job bro.I also need to develop the same functionality.Could you please send me the code? My email id is : sajalpatranabish5@gmail.com. Thanks...

      Delete
    10. Hi Thanks for your article , please would you share the code with me and if i have X12 271 response how can i parse it to your object; so i can read it and get the needed information for patient

      sample data that i need to parse it below

      ISA|00| |00| |ZZ|ZIRMED |ZZ|605 |191123|0403|}|00501|000104831|0|P|^~GS|HB|ZIRMED|605|20191123|0403|104831|X|005010X279A1~ST|271|0001|005010X279A1~BHT|0022|11||20191123|040301~HL|1||20|1~NM1|P5|2|TEST DATA|||||PI|87726~HL|2|1|21|1~NM1|1P|1|ZIRMED|DEMO||||XX|1234567890~HL|3|2|22|0~TRN|2|217648508|9ZIRMEDCOM~TRN|2|220686992|9ZIRMEDCOM|ELR ID~TRN|1|218559495|9ZIRMEDCOM|ELI ID~NM1|IL||DOE|JOHN~DMG|D8|19880905~EB|1||30|C1|CHOICE PLUS~LS|2120~NM1|P5|2|TEST DATA|||||PI|87726~N3|P.O. BOX 30555~N4|SALT LAKE CITY|UT|841300555~PER|IC~LE|2120~EB|C|IND|30|||23|500|||||W~EB|G|FAM|30|C1||23|2000|||||W~EB|G|IND|30|C1||23|1000|||||W~EB|C|FAM|30|||24|0|||||W~EB|C|IND|30|||24|0|||||W~EB|G|FAM|30|C1||24|0|||||W~EB|G|IND|30|C1||24|0|||||W~EB|C|IND|30|||29|500|||||W~EB|G|FAM|30|C1||29|2000|||||W~EB|G|IND|30|C1||29|1000|||||W~EB|C|FAM|30|||23|1500|||||Y~EB|C|FAM|30|||29|2000|||||N~EB|C|FAM|30|||23|2000|||||N~EB|C|FAM|30|||29|1500|||||Y~EB|1||12|||||||||W~EB|A|IND|12|||27||.4||||N~EB|A|IND|12|||27||.2||||Y~EB|B|IND|12|||27|0|||||W~EB|C|FAM|12||||0|||||W~EB|F|IND|12||||0|||||W~EB|F|IND|12||||0|||||W~MSG|ADDITIONAL COVERED PER OCCURRENCE~EB|X~LS|2120~NM1|1P|1|ZIRMED|DEMO||||XX|1234567890~LE|2120~SE|46|0001~GE|1|104831~IEA|1|000104831~

      Delete
    11. Please send me source code to mcnealrealty@gmail.com.

      Thanks in advance

      Delete
  2. please help me i need sample code like this
    can you email it..
    here's my email: pro.jhonnelremolin@gmail.com

    ReplyDelete
    Replies
    1. I sent you full source code along with sample call, pls check. Thanks

      Delete
  3. Please forward me the code at

    vrma.abhimanyu@gmail.com

    Thanks
    Abhimanyu

    ReplyDelete
    Replies
    1. Hi Abhimanyu,

      I've sent you source code along with sample call.

      please let me know if you need more help or clarification on this.

      Delete
    2. I would love to have the source if you don't mind. Thanks a bunch.

      Email: crevenant@gmail.com

      Delete
    3. Hi Chris,
      I've sent you source code along with sample call at above-mentioned email. If you think would need more help, pls feel free to ask me. Thanks

      Delete
  4. hi aifaz,
    grt job!
    can u please send source code my email id is eman.673@gmail.com

    ReplyDelete
    Replies
    1. Hi Eman,
      I've sent you source code along with sample call at above-mentioned email. If you need more assistance, feel free to ask me. Thanks

      Delete
  5. Hi aifaz

    good job. Please mail me source code at mail.happpy@gmail.com

    ReplyDelete
  6. Sent you source code along with sample call.
    Thanks

    ReplyDelete
    Replies
    1. please forward your code. its really help for me.

      Delete
  7. Hello aifaz

    Please mail me source code at saqib.00@gmail.com

    ReplyDelete
    Replies
    1. Just sent you full source code along with sample call.

      Thanks

      Delete
  8. Hi. Can you please email me the source code at webmaster@enjetek.com?

    Thanks

    ReplyDelete
  9. Hello!

    Can you please send me the source code?

    my email is: sivan.svm@gmail.com

    ReplyDelete
  10. Hello and thank you, can you please send me the source code as well?

    my email: disguised.penguin@gmail.com

    ReplyDelete
  11. Can I get a copy of the source code ?

    Thanks, Tom

    ReplyDelete
  12. Thank you very much for the contribution.
    Please could send me the source code to my mail.
    edinson.sanchez.ch@gmail.com

    I would be very grateful.

    ReplyDelete
  13. May I have the source code pls.
    Thx a lot. My Email is z06g@yandex.com

    ReplyDelete
  14. Hi,
    Could you please share the source code?
    My email address is salamaabid@gmail.com

    Thanks in advance
    Aabid

    ReplyDelete
  15. Hi,

    Please send me the source code to my mail:
    jovanov.dejan@gmail.com

    Many Thanks,
    Dejan

    ReplyDelete
  16. Hi,
    Can you please send me the source code?

    my email is: starasifislam110@gmail.com

    ReplyDelete
  17. Hi Aifaz,
    Can you please provide the source code?
    Email: aries_salil@hotmail.com

    ReplyDelete
  18. Hi,
    Could you please share the source code?
    My email address is gokhan.beler@gmail.com

    Thanks in advance
    Gokhan

    ReplyDelete
  19. Hi,
    Can you please provide me the source code?
    email: ernestpaulferrer@gmail.com

    Thanks.

    ReplyDelete
  20. Hello -
    Great article! Please save me from having to write all the same monotonous string code. Could I get the source code?
    tr33hugger@yahoo.com
    Thank you.

    ReplyDelete
  21. Nice article! Could you send me the code at ivan.mudryj@gmail.com ?

    ReplyDelete
  22. How can I contact you if I want to HIRE YOU?

    ReplyDelete
  23. Please send the source code to Richard@baronsoftware.com

    ReplyDelete
  24. Please send source code to selenaavue@gmail.com

    ReplyDelete
  25. Impressive. Can you please share the source code to sathiyaraj.t@gmail.com

    ReplyDelete
  26. Hi!!

    Please send source code to jomora15@hotmail.com

    Thanks!!!

    ReplyDelete
  27. Hi.

    Can you please send source code to skinnerjames@sbcglobal.net

    Thanks!1

    ReplyDelete
  28. Hi!!

    Please send source code to sajjadbabar5@gmail.com

    Thanks!!!

    ReplyDelete
  29. Hi, Could you send me the code at vishal.gssc@gmail.com. I would be very thankful to you.
    Thanks

    ReplyDelete
  30. Hi,

    Great article! Please could you send the source code and sample call to mail2sujeesh@gmail.com

    Thank you.

    ReplyDelete
  31. Very Nice!! Please can you share the source code to ivan.mudryj@gmail.com or publish it somewhere? THANKS A LOT

    ReplyDelete
  32. Hi,
    very impressive. Could you please share the source code to padmas428@gmail.com.

    Thanks

    ReplyDelete
  33. good morning sir,I read your complete explaination I need the source code for ED 270/271 for both please send me on my email id:lovesharma0391@gmail.com

    ReplyDelete
  34. This comment has been removed by the author.

    ReplyDelete
  35. Hi,

    It is a very helpful article. Could you please send the source code and sample call to gagangupta6475@gmail.com

    Thank you.

    ReplyDelete
  36. Hii

    I am stuck in a problem. Please send me the code with sample call as soon as possible to gagangupta6475@gmail.com

    Thank you.

    ReplyDelete
  37. I have developed my EDI 270 file using your code. My EDI looks like below:

    ISA*00* 00 *ZZ*000345678 ZZReceiverID *181123*1153*}*00401*000000001*1*P*:~ GS*HS*000345678*ReceiverID*20181123*115305*0001*X*005010X279A1~ ST*270*0001*005010X279A1~ BHT*0022*13*(it is empty)*20181123*1153~ HL*1**20*1~ NM1*PR*2******PI*CMS~ HL*2*1*21*1~ NM1*1P*2******XX*0123456789~ HL*3*2*22*0~ NM1*IL*1*JAIN*PRACHI****MI*123456789A~ DMG*D8*19810809*F~ SE*10*0001~ GE*1*0001~ IEA*1*000000001~

    But when I am trying to get the response EDI 271 from an API it always returns the acknowledgement given below:

    ISA|00| |00| |ZZ|MyAPIName |ZZ|17282 |181119|0134|U|00401|000000001|1|P|^~ TA1|000000000|181119|0134|R|023~ IEA|0|000000001~

    I searched for the description of this acknowledgement and i found it indicates "improper(premature) end of file as given in this document:

    "https://docs.microsoft.com/en-us/biztalk/core/x12-ta1-acknowledgment-error-codes"

    I developed my EDI 270 file using this document as a referral: "https://www.cms.gov/Medicare/Coordination-of-Benefits-and-Recovery/Mandatory-Insurer-Reporting-For-Group-Health-Plans/Downloads/New-Downloads/MMSEA-111-270-271-Health-Care-Eligibility-Benefit-Inquiry.pdf"

    According to this document my EDI 270 file is correct(I checked all the values from this document). But the API I am hitting to get 271 response always returns the acknowledgement i specified above.

    Please help me to find the error/problem in my EDI file and its solution. If you have any solution for my problem please help me with the solution.

    ReplyDelete
  38. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Hi Sir , Can you please send source code to send / receive 270 request & response

      Delete
  39. A very nice implementation of X.12 270 message. Have you thought of adding your code on GitHub? If possible can you send me the full implementation to tuser90210@gmail.com.

    Thanks in advance.

    ReplyDelete
  40. Hi,
    Thank you for your article. Could you please send the source code and sample to pantelo@gmail.com

    Thank you.

    ReplyDelete
  41. Hi,
    Thank you for your article. Could you please send the source code and sample to vitaliyk14@gmail.com

    Thank you!

    ReplyDelete
  42. Hi,
    Really great piece of work, can you share code with me : devkarsurya@gmail.com

    ReplyDelete
  43. Can you please provide me full source code? Thanks in advance

    ReplyDelete
  44. Can you please provide me full source code? Thanks in advance. Here is my email
    athar.naeem@bilytica.com.au

    ReplyDelete
  45. Would you please send me the source Code: karimk74@gmail.com, Thanks Karim

    ReplyDelete
  46. please send me the full source code, matthew.mikhail07@gmail.com.

    Thanks,
    Matthew

    ReplyDelete
  47. Please send me source code. Thanks in advance

    ReplyDelete
  48. Please send me source code. kevin.mcneal01@gmail.com Thanks in advance

    ReplyDelete
  49. Please send me Source code muthukumar@isourceindia.com. Thanks

    ReplyDelete
  50. Hi, Can you please send me source code in this email Id "grover.jogesh@gmail.com". Thanks

    ReplyDelete
  51. It's a fantastic article, and you've put in a lot of effort. Could you please provide the code to jitenvoice@gmail.com so that I can test it?

    Thanks

    ReplyDelete
  52. Hi Aifaz, Could you please provide the full source code to idanovich4@gmail.com
    Thanks in advance,
    Irina

    ReplyDelete
  53. This comment has been removed by the author.

    ReplyDelete
  54. Can you please send the entire code to sagar.jumble10@gmail.com

    ReplyDelete
    Replies
    1. Hi Sagar , Can you please share source code for 270 request..

      Delete
  55. Hi Aifaz, Could you please provide the full source code to smjegathesh@gmail.com
    Thanks in advance,

    ReplyDelete
  56. Hi!!

    Please send source code to haysuse79@gmail.com

    Thanks!!!

    ReplyDelete

Post a Comment

Popular posts from this blog

Installing latest DCM4CHEE and Weasis web viewer with MS SQL or My SQL

CONVERT HL7 MESSAGE INTO JSON USING MS .NET C#