private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString
|
|
- Camilla Phillips
- 5 years ago
- Views:
Transcription
1 using System; using System.Configuration; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDIx64; 1 namespace Gen837X222A1 //THIS PROGRAM REQUIRES A DATABASE WITH A STRUCTURE SIMILAR TO THAT IN THE TRAN837X222 EXAMPLE PROGRAM, OR DO THE FOLLOWING TO CREATE THE DATABASE: // CREATE A DATABASE CALLED HIPAATESTDB // ON YOUR SQL SERVER, RUN THE SQL SCRIPTS LOCATED IN THE CREATE_SQL_TABLES FOLDER TO CREATE THE TABLES public partial class frmgen837 : Form public frmgen837() InitializeComponent(); ; private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString private void btngenerate_click(object sender, EventArgs e) edidocument oedidoc = null; edischemas oschemas = null; ediinterchange ointerchange = null; edigroup ogroup = null; editransactionset otransactionset = null; edidatasegment osegment = null; bool bdependent = false; int nhlcounter = 0; int nhlsubscriberparent = 0; int nhldependentparent = 0; int ninstance = 0; int nelempos = 0; string ssql = ""; string sapppath = AppDomain.CurrentDomain.BaseDirectory; SqlConnection oconnection = new SqlConnection(sConnection); string sedifile = "837_5010X222A1.X12"; string sseffile = "837_005010X222A1.SemRef.EVAL0.SEF"; //EVALUATION SEF FILE //CREATES OEDIDOC OBJECT oedidoc = new edidocument(); //THIS MAKES CERTAIN THAT FREDI ONLY USES THE SEF FILE PROVIDED, AND THAT IT DOES //NOT USE ITS BUILT IN STANDARD REFERENCE TABLE TO GENERATE THE EDI FILE. oschemas = (edischemas)oedidoc.getschemas(); oschemas.enablestandardreference = false; //ENABLES FORWARD WRITE, AND INCREASES BUFFER I/O TO IMPROVE PERFORMANCE oedidoc.cursortype = DocumentCursorTypeConstants.Cursor_ForwardWrite; oedidoc.set_property(documentpropertyidconstants.property_documentbufferio, 200);
2 //SET TERMINATORS oedidoc.segmentterminator = "~13:10"; oedidoc.elementterminator = "*"; oedidoc.compositeterminator = ":"; 2 //LOADS THE SEF FILE oedidoc.loadschema(sapppath + sseffile, 0); ssql = "select * from [Interchange]"; SqlDataAdapter ointerchangeadapter = new SqlDataAdapter(sSql, oconnection); DataSet ointerchangeds = new DataSet("dsInterchange"); ointerchangeadapter.fill(ointerchangeds, "dsinterchange"); foreach (DataRow ointerchangerow in ointerchangeds.tables["dsinterchange"].rows) //CREATES THE ISA SEGMENT ointerchange = (ediinterchange)oedidoc.createinterchange("x", "005010"); osegment = (edidatasegment)ointerchange.getdatasegmentheader(); osegment.set_dataelementvalue(1, 0, ointerchangerow["isa01_authorizationinfoqlfr"].tostring ()); //Authorization Information Qualifier osegment.set_dataelementvalue(2, 0, ointerchangerow["isa02_authorizationinfo"].tostring()); //Authorization Information osegment.set_dataelementvalue(3, 0, ointerchangerow["isa03_securityinfoqlfr"].tostring()); //Security Information Qualifier osegment.set_dataelementvalue(4, 0, ointerchangerow["isa04_securityinfo"].tostring()); //Security Information osegment.set_dataelementvalue(5, 0, ointerchangerow["isa05_senderidqlfr"].tostring()); //Interchange ID Qualifier osegment.set_dataelementvalue(6, 0, ointerchangerow["isa06_senderid"].tostring()); // Interchange Sender ID osegment.set_dataelementvalue(7, 0, ointerchangerow["isa07_receiveridqlfr"].tostring()); //Interchange ID Qualifier osegment.set_dataelementvalue(8, 0, ointerchangerow["isa08_receiverid"].tostring()); // Interchange Receiver ID osegment.set_dataelementvalue(9, 0, ointerchangerow["isa09_date"].tostring()); // Interchange Date osegment.set_dataelementvalue(10, 0, ointerchangerow["isa10_time"].tostring()); // Interchange Time osegment.set_dataelementvalue(11, 0, ointerchangerow["isa11_repetitionseparator"].tostring ()); //Repetition Separator osegment.set_dataelementvalue(12, 0, ointerchangerow["isa12_controlversionnumber"].tostring ()); //Interchange Control Version Number osegment.set_dataelementvalue(13, 0, ointerchangerow["isa13_controlnumber"].tostring()); //Interchange Control Number osegment.set_dataelementvalue(14, 0, ointerchangerow["isa14_acknowledgmentrequested"]. ToString()); //Acknowledgment Requested osegment.set_dataelementvalue(15, 0, ointerchangerow["isa15_usageindicator"].tostring()); //Usage Indicator osegment.set_dataelementvalue(16, 0, ointerchangerow["isa16_componentelementseparator"]. ToString()); //Component Element Separator (); ssql = "select * from [FuncGroup] where Interkey = " + ointerchangerow["interkey"].tostring SqlDataAdapter ogroupadapter = new SqlDataAdapter(sSql, oconnection); DataSet ogroupds = new DataSet("dsGroup"); ogroupadapter.fill(ogroupds, "dsgroup"); foreach (DataRow ogrouprow in ogroupds.tables["dsgroup"].rows) //CREATES THE GS SEGMENT ogroup = (edigroup)ointerchange.creategroup("005010x222a1"); edidatasegment.set(ref osegment, ogroup.getdatasegmentheader()); osegment.set_dataelementvalue(1, 0, ogrouprow["gs01_functionalidfrcode"].tostring()); //Functional Identifier Code osegment.set_dataelementvalue(2, 0, ogrouprow["gs02_senderscode"].tostring()); // Application Sender//s Code
3 osegment.set_dataelementvalue(3, 0, ogrouprow["gs03_receiverscode"].tostring()); // Application Receiver//s Code osegment.set_dataelementvalue(4, 0, ogrouprow["gs04_date"].tostring()); //Date osegment.set_dataelementvalue(5, 0, ogrouprow["gs05_time"].tostring()); //Time osegment.set_dataelementvalue(6, 0, ogrouprow["gs06_groupcontrolnumber"].tostring()); //Group Control Number osegment.set_dataelementvalue(7, 0, ogrouprow["gs07_responsibleagencycode"].tostring()) ; //Responsible Agency Code osegment.set_dataelementvalue(8, 0, ogrouprow["gs08_versionreleasecode"].tostring()); //Version / Release / Industry Identifier Code 3 ToString(); ssql = "select * from [837X222_Header] where Groupkey = " + ogrouprow["groupkey"]. SqlDataAdapter oheaderadapter = new SqlDataAdapter(sSql, oconnection); DataSet oheaderds = new DataSet("dsHeader"); oheaderadapter.fill(oheaderds, "dsheader"); foreach (DataRow oheaderrow in oheaderds.tables["dsheader"].rows) //CREATES THE ST SEGMENT otransactionset = (editransactionset)ogroup.createtransactionset("837"); edidatasegment.set(ref osegment, otransactionset.getdatasegmentheader()); osegment.set_dataelementvalue(1, 0, oheaderrow["st01_transetidfrcode"].tostring()); //Transaction Set Identifier Code osegment.set_dataelementvalue(2, 0, oheaderrow["st02_transetcontrolno"].tostring()) ; //Transaction Set Control Number osegment.set_dataelementvalue(3, 0, oheaderrow["st03_implementconventionref"]. ToString()); //Implementation Convention Reference //BHT BEGINNING OF HIERARCHICAL TRANSACTION edidatasegment.set(ref osegment, otransactionset.createdatasegment("bht")); osegment.set_dataelementvalue(1, 0, oheaderrow["bht01_hierarchstructcode"].tostring ()); //Hierarchical Structure Code osegment.set_dataelementvalue(2, 0, oheaderrow["bht02_transetpurposecode"].tostring ()); //Transaction Set Purpose Code osegment.set_dataelementvalue(3, 0, oheaderrow["bht03_refid"].tostring()); // Reference Identification osegment.set_dataelementvalue(4, 0, oheaderrow["bht04_date"].tostring()); // Date osegment.set_dataelementvalue(5, 0, oheaderrow["bht05_time"].tostring()); // Time osegment.set_dataelementvalue(6, 0, oheaderrow["bht06_trantypecode"].tostring()); //Transaction Type Code //1000A SUBMITTER //NM1 SUBMITTER NAME edidatasegment.set(ref osegment, otransactionset.createdatasegment("nm1\\nm1")); osegment.set_dataelementvalue(1, 0, "41"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, oheaderrow["nm102_submittertypeqlfr"].tostring ()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, oheaderrow[ "NM103_SubmitterLastOrOrganizationName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(4, 0, oheaderrow["nm104_submitterfirst"].tostring()); // Name First (1036) osegment.set_dataelementvalue(5, 0, oheaderrow["nm105_submittermiddle"].tostring()) ; // Name Middle (1037) osegment.set_dataelementvalue(8, 0, oheaderrow["nm108_submitteridcodeqlfr"]. ToString()); //Identification Code Qualifier osegment.set_dataelementvalue(9, 0, oheaderrow["nm109_submitteridcode"].tostring()) ; //Identification Code //PER SUBMITTER EDI CONTACT INFO edidatasegment.set(ref osegment, otransactionset.createdatasegment("nm1\\per")); nelempos = 3; if (oheaderrow["per0x_submitterphoneno"].tostring().trim()!= "")
4 osegment.set_dataelementvalue(nelempos, 0, "TE"); //Communication Number Qualifier osegment.set_dataelementvalue(nelempos + 1, 0, oheaderrow[ "PER0X_SubmitterPhoneNo"].ToString()); //Communication Number nelempos = nelempos + 2; 4 if (oheaderrow["per0x_submitterphoneextno"].tostring().trim()!= "") osegment.set_dataelementvalue(nelempos, 0, "EX"); //Communication Number Qualifier osegment.set_dataelementvalue(nelempos + 1, 0, oheaderrow[ "PER0X_SubmitterPhoneExtNo"].ToString()); //Communication Number nelempos = nelempos + 2; Qualifier "].ToString()); Qualifier "].ToString()); ToString()); if (oheaderrow["per0x_submitterfaxno"].tostring().trim()!= "") osegment.set_dataelementvalue(nelempos, 0, "FX"); //Communication Number osegment.set_dataelementvalue(nelempos + 1, 0, oheaderrow["per0x_submitterfaxno //Communication Number nelempos = nelempos + 2; if (oheaderrow["per0x_submitter "].tostring().trim()!= "") osegment.set_dataelementvalue(nelempos, 0, "EM"); //Communication Number osegment.set_dataelementvalue(nelempos + 1, 0, oheaderrow["per0x_submitter //Communication Number nelempos = nelempos + 2; if (nelempos > 3) osegment.set_dataelementvalue(1, 0, "IC"); //Contact Function Code osegment.set_dataelementvalue(2, 0, oheaderrow["per02_submittercontactname"]. //Name //1000B RECEIVER //NM1 RECEIVER edidatasegment.set(ref osegment, otransactionset.createdatasegment("nm1\\nm1")); osegment.set_dataelementvalue(1, 0, "40"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, oheaderrow["nm102_receivertypeqlfr"].tostring ()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, oheaderrow[ "NM103_ReceiverLastOrOrganizationName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(8, 0, oheaderrow["nm108_receiveridcodeqlfr"].tostring ()); //Identification Code Qualifier osegment.set_dataelementvalue(9, 0, oheaderrow["nm109_receiveridcode"].tostring()); //Identification Code nhlcounter = 0; ssql = "select * from [837X222_InfoSource] where Headerkey = " + oheaderrow[ "Headerkey"].ToString(); SqlDataAdapter oinfosourceadapter = new SqlDataAdapter(sSql, oconnection); DataSet oinfosourceds = new DataSet("dsInfoSource"); oinfosourceadapter.fill(oinfosourceds, "dsinfosource"); //2000A INFORMATION SOURCE foreach (DataRow oinfosourcerow in oinfosourceds.tables["dsinfosource"].rows) nhlcounter = nhlcounter + 1; //increment HL loop
5 nhlsubscriberparent = nhlcounter; parent for the HL subscriber loop //The value of this HL counter is the HL 5 ID Number //HL BILLING PROVIDER edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\hl")); osegment.set_dataelementvalue(1, 0, nhlcounter.tostring()); //Hierarchical osegment.set_dataelementvalue(3, 0, "20"); osegment.set_dataelementvalue(4, 0, "1"); //Hierarchical Level Code //Hierarchical Child Code //PRV BILLING PROVIDER SPECIALTY INFORMATION if (oinfosourcerow["prv03_billingprovideridcode"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\prv ")); osegment.set_dataelementvalue(1, 0, "BI"); //Provider Code osegment.set_dataelementvalue(2, 0, "PXC"); //Reference Identification Qualifier osegment.set_dataelementvalue(3, 0, oinfosourcerow[ "PRV03_BillingProviderIdCode"].ToString()); //Reference Identification // Currency (CUR) if (oinfosourcerow["cur02_currencycode"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\cur ")); osegment.set_dataelementvalue(1, 0, "85"); // Entity Identifier Code (98) osegment.set_dataelementvalue(2, 0, oinfosourcerow["cur02_currencycode"]. ToString()); // Currency Code (100) //2010AA BILLING PROVIDER //NM1 BILLING PROVIDER NAME edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1\\ NM1")); osegment.set_dataelementvalue(1, 0, "85"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "NM102_BillingProviderTypeQualifier"].ToString()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, oinfosourcerow[ "NM103_BillingProviderLastOrOrganizationName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(4, 0, oinfosourcerow["nm104_billingproviderfirst" ].ToString()); // Name First (1036) osegment.set_dataelementvalue(5, 0, oinfosourcerow["nm105_billingprovidermiddle "].ToString()); // Name Middle (1037) osegment.set_dataelementvalue(8, 0, "XX"); //Identification Code Qualifier osegment.set_dataelementvalue(9, 0, oinfosourcerow["nm109_billingprovideridcode "].ToString()); //Identification Code "));.ToString());.ToString()); ")); ToString());.ToString()); //N3 BILLING PROVIDER ADDRESS INFORMATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1\\n3 osegment.set_dataelementvalue(1, 0, oinfosourcerow["n301_billingprovideraddr1"] //Address Information osegment.set_dataelementvalue(2, 0, oinfosourcerow["n302_billingprovideraddr2"] //Address Information //N4 BILLING PROVIDER LOCATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1\\n4 osegment.set_dataelementvalue(1, 0, oinfosourcerow["n401_billingprovidercity"]. //City Name osegment.set_dataelementvalue(2, 0, oinfosourcerow["n402_billingproviderstate"] //State or Province Code
6 osegment.set_dataelementvalue(3, 0, oinfosourcerow["n403_billingproviderzip"]. ToString()); //Postal Code osegment.set_dataelementvalue(4, 0, oinfosourcerow["n404_billingprovidercountry "].ToString()); // Country Code (26) osegment.set_dataelementvalue(7, 0, oinfosourcerow[ "N407_BillingProviderCountrySubdivision"].ToString()); // Country Subdivision Code (1715) ninstance = 1; //REF EMPLOYER'S IDENTIFICATION NUMBER if (oinfosourcerow["ref02_billingprovideremployerid"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 \\REF(" + osegment.set_dataelementvalue(1, 0, "EI"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_BillingProviderEmployerId"].ToString()); //Reference Identification //REF SOCIAL SECURITY NUMBER if (oinfosourcerow["ref02_billingprovidersocialsecurityno"].tostring().trim()! = "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 \\REF(" + osegment.set_dataelementvalue(1, 0, "SY"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_BillingProviderSocialSecurityNo"].ToString()); //Reference Identification //REF STATE LICENSE NUMBER if (oinfosourcerow["ref02_billingproviderstatelicenseno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 \\REF(" + osegment.set_dataelementvalue(1, 0, "0B"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_BillingProviderStateLicenseNo"].ToString()); //Reference Identification //REF PROVIDER UPIN NUMBER if (oinfosourcerow["ref02_billingproviderproviderupin"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 \\REF(" + osegment.set_dataelementvalue(1, 0, "1G"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_BillingProviderProviderUPIN"].ToString()); //Reference Identification 6 PER")); // Administrative Communications Contact (PER) edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1\\ nelempos = 3; if (oinfosourcerow["per0x_billingproviderphoneno"].tostring().trim()!= "")
7 osegment.set_dataelementvalue(nelempos, 0, "TE"); //Communication Number Qualifier osegment.set_dataelementvalue(nelempos + 1, 0, oinfosourcerow[ "PER0X_BillingProviderPhoneNo"].ToString()); //Communication Number nelempos = nelempos + 2; 7 if (oinfosourcerow["per0x_billingproviderphoneextno"].tostring().trim()!= "") osegment.set_dataelementvalue(nelempos, 0, "EX"); //Communication Number Qualifier osegment.set_dataelementvalue(nelempos + 1, 0, oinfosourcerow[ "PER0X_BillingProviderPhoneExtNo"].ToString()); //Communication Number nelempos = nelempos + 2; if (oinfosourcerow["per0x_billingproviderfaxno"].tostring().trim()!= "") osegment.set_dataelementvalue(nelempos, 0, "FX"); //Communication Number Qualifier osegment.set_dataelementvalue(nelempos + 1, 0, oinfosourcerow[ "PER0X_BillingProviderFaxNo"].ToString()); //Communication Number nelempos = nelempos + 2; if (oinfosourcerow["per0x_billingprovider "].tostring().trim()!= "") osegment.set_dataelementvalue(nelempos, 0, "EM"); //Communication Number Qualifier osegment.set_dataelementvalue(nelempos + 1, 0, oinfosourcerow[ "PER0X_BillingProvider "].ToString()); //Communication Number nelempos = nelempos + 2; if (nelempos > 3) osegment.set_dataelementvalue(1, 0, "IC"); //Contact Function Code osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "PER02_BillingProviderContactName"].ToString()); //Name //2010AB PAY TO PROVIDER if (oinfosourcerow["n301_paytoprovideraddr1"].tostring().trim()!= "") //NM1 PAY TO PROVIDER NAME edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 \\NM1")); osegment.set_dataelementvalue(1, 0, "87"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "NM102_PayToProviderTypeQlfr"].ToString()); //Entity Type Qualifier //osegment.set_dataelementvalue(3, 0, oinfosourcerow[ "NM103_PayToProviderLastOrOrganizatioName"].ToString()); //Name Last or Organization Name \\N3")); "].ToString()); "].ToString()); \\N4")); ].ToString()); //N3 PAY TO PROVIDER ADDRESS INFORMATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 osegment.set_dataelementvalue(1, 0, oinfosourcerow["n301_paytoprovideraddr1 //Address Information osegment.set_dataelementvalue(2, 0, oinfosourcerow["n302_paytoprovideraddr2 //Address Information //N4 PAY TO PROVIDER LOCATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 osegment.set_dataelementvalue(1, 0, oinfosourcerow["n401_paytoprovidercity" //City Name osegment.set_dataelementvalue(2, 0, oinfosourcerow["n402_paytoproviderstate
8 "].ToString()); //State or Province Code osegment.set_dataelementvalue(3, 0, oinfosourcerow["n403_paytoproviderzip"].tostring()); //Postal Code osegment.set_dataelementvalue(4, 0, oinfosourcerow[ "N404_PayToProviderCountry"].ToString()); // Country Code (26) osegment.set_dataelementvalue(7, 0, oinfosourcerow[ "N407_PayToProviderCountrySubdivision"].ToString()); // Country Subdivision Code (1715) //2010AB PAY TO PROVIDER //2010AC PAYEE PROVIDER if (oinfosourcerow["nm103_payeelastororganizationname"].tostring().trim()!= "") //NM1 PAYEE PROVIDER NAME edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 \\NM1")); osegment.set_dataelementvalue(1, 0, "PE"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, oinfosourcerow["nm102_payeetypeqlfr"]. ToString()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, oinfosourcerow[ "NM103_PayeeLastOrOrganizationName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(9, 0, oinfosourcerow["nm109_payeeidcode"]. ToString()); //Identification Code 8 \\N3")); ToString()); ToString()); //N3 PAYEE PROVIDER ADDRESS INFORMATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 osegment.set_dataelementvalue(1, 0, oinfosourcerow["n301_payeeaddr1"]. //Address Information osegment.set_dataelementvalue(2, 0, oinfosourcerow["n302_payeeaddr2"]. //Address Information \\N4")); //N4 PAYEE PROVIDER LOCATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\nm1 osegment.set_dataelementvalue(1, 0, oinfosourcerow["n401_payeecity"]. ToString()); //City Name osegment.set_dataelementvalue(2, 0, oinfosourcerow["n402_payeestate"]. ToString()); //State or Province Code osegment.set_dataelementvalue(3, 0, oinfosourcerow["n403_payeezip"]. ToString()); //Postal Code osegment.set_dataelementvalue(4, 0, oinfosourcerow["n404_payeecountry"]. ToString()); // Country Code (26) osegment.set_dataelementvalue(7, 0, oinfosourcerow[ "N407_PayeeCountrySubdivision"].ToString()); // Country Subdivision Code (1715) ninstance = 1; //REF PAYER IDENTIFICATION NUMBER" if (oinfosourcerow["ref02_payeepayerid"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "2U"); //Reference Identification Qualifier ].ToString()); osegment.set_dataelementvalue(2, 0, oinfosourcerow["ref02_payeepayerid" //Reference Identification //REF CLAIM OFFICE NUMBER if (oinfosourcerow["ref02_payeeclaimofficeno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "FY"); //Reference
9 Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_PayeeClaimOfficeNo"].ToString()); //Reference Identification 9 //REF NATIONAL ASSOCIATION OF INSURANCE COMMISSIONERS (NAIC) CODE if (oinfosourcerow["ref02_payeenaic_code"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "NF"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_PayeeNAIC_Code"].ToString()); //Reference Identification //REF NATIONAL ASSOCIATION OF INSURANCE COMMISSIONERS (NAIC) CODE if (oinfosourcerow["ref02_payeeemployerid"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "EI"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, oinfosourcerow[ "REF02_PayeeEmployerId"].ToString()); //Reference Identification //2010AC PAYEE PROVIDER //2000B SUBSCRIBER HL LOOP ssql = "select * from [837X222_Subscriber] where InfoSourcekey = " + oinfosourcerow["infosourcekey"].tostring(); SqlDataAdapter osubscriberadapter = new SqlDataAdapter(sSql, oconnection); DataSet osubscriberds = new DataSet("dsSubscriber"); osubscriberadapter.fill(osubscriberds, "dssubscriber"); foreach (DataRow osubscriberrow in osubscriberds.tables["dssubscriber"].rows) nhlcounter = nhlcounter + 1; nhldependentparent = nhlcounter; if (osubscriberrow["sbr02_individualrelationshipcode"].tostring() == "18") bdependent = false; else bdependent = true; //HL SUBSCRIBER LEVEL edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\hl" )); osegment.set_dataelementvalue(1, 0, nhlcounter.tostring()); // Hierarchical ID Number osegment.set_dataelementvalue(2, 0, nhlsubscriberparent.tostring()); // Hierarchical Parent ID Number osegment.set_dataelementvalue(3, 0, "22"); //Hierarchical Level Code if (bdependent) osegment.set_dataelementvalue(4, 0, "1"); //Hierarchical Child Code else //self osegment.set_dataelementvalue(4, 0, "0"); //Hierarchical Child Code
10 10 //SBR SUBSCRIBER INFORMATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\sbr ")); osegment.set_dataelementvalue(1, 0, osubscriberrow[ "SBR01_PayerResponsibilitySequenceNumberCode"].ToString()); // Payer Responsibility Sequence Number Code (1138) osegment.set_dataelementvalue(2, 0, osubscriberrow[ "SBR02_IndividualRelationshipCode"].ToString()); // Individual Relationship Code (1069) osegment.set_dataelementvalue(3, 0, osubscriberrow[ "SBR03_SubscriberGroup_PolicyNo"].ToString()); // Reference Identification (127) osegment.set_dataelementvalue(4, 0, osubscriberrow[ "SBR04_SubscriberGroupName"].ToString()); // Name (93) osegment.set_dataelementvalue(5, 0, osubscriberrow["sbr05_insurancetypecode "].ToString()); // Insurance Type Code (1336) osegment.set_dataelementvalue(9, 0, osubscriberrow[ "SBR09_ClaimFilingIndicatorCode"].ToString()); // Claim Filing Indicator Code (1032) ")); // Patient Information PAT edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\pat if (osubscriberrow["pat06_patientdeathdate"].tostring().trim()!= "") osegment.set_dataelementvalue(5, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(6, 0, osubscriberrow[ "PAT06_PatientDeathDate"].ToString()); // Date Time Period (1251) if (osubscriberrow["pat08_patientweightpounds"].tostring().trim()!= "") osegment.set_dataelementvalue(7, 0, "01"); // Unit or Basis for Measurement Code (355) osegment.set_dataelementvalue(8, 0, osubscriberrow[ "PAT08_PatientWeightPounds"].ToString()); // Weight (81) osegment.set_dataelementvalue(9, 0, osubscriberrow["pat09_pregnant"]. ToString()); // Yes/No Condition or Response Code (1073) //2010BA SUBSCRIBER if (osubscriberrow["nm103_subscriberlastororganizationname"].tostring(). Trim()!= "") //NM1 SUBSCRIBER NAME edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\NM1")); osegment.set_dataelementvalue(1, 0, "IL"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, osubscriberrow[ "NM102_SubscriberTypeQualifier"].ToString()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, osubscriberrow[ "NM103_SubscriberLastOrOrganizationName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(4, 0, osubscriberrow[ "NM104_SubscriberFirst"].ToString()); //Name First osegment.set_dataelementvalue(5, 0, osubscriberrow[ "NM105_SubscriberMiddle"].ToString()); // Name Middle (1037) osegment.set_dataelementvalue(7, 0, osubscriberrow[ "NM107_SubscriberSuffix"].ToString()); // Name Suffix (1039) osegment.set_dataelementvalue(8, 0, osubscriberrow[ "NM108_SubscriberIdCodeQlfr"].ToString()); //Identification Code Qualifier osegment.set_dataelementvalue(9, 0, osubscriberrow[ "NM109_SubscriberIdCode"].ToString()); //Identification Code \NM1\\N3")); // Address Information (N3 edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ osegment.set_dataelementvalue(1, 0, osubscriberrow[
11 "N301_SubscriberAddr1"].ToString()); // Address Information (166) osegment.set_dataelementvalue(2, 0, osubscriberrow[ "N302_SubscriberAddr2"].ToString()); // Address Information (166) 11 // Geographic Location (N4) edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\N4")); osegment.set_dataelementvalue(1, 0, osubscriberrow["n401_subscribercity "].ToString()); // City Name (19) osegment.set_dataelementvalue(2, 0, osubscriberrow[ "N402_SubscriberState"].ToString()); // State or Province Code (156) osegment.set_dataelementvalue(3, 0, osubscriberrow["n403_subscriberzip" ].ToString()); // Postal Code (116) osegment.set_dataelementvalue(4, 0, osubscriberrow[ "N404_SubscriberCountry"].ToString()); // Country Code (26) osegment.set_dataelementvalue(7, 0, osubscriberrow[ "N407_SubscriberCountrySubdivision"].ToString()); // Country Subdivision Code (1715) //DMG SUBSCRIBER DEMOGRAPHIC INFORMATION edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\DMG")); if (osubscriberrow["dmg02_subscriberbirthdate"].tostring().trim()!= "") osegment.set_dataelementvalue(1, 0, "D8"); //Date Time Period Format Qualifier osegment.set_dataelementvalue(2, 0, osubscriberrow[ "DMG02_SubscriberBirthDate"].ToString()); //Date Time Period osegment.set_dataelementvalue(3, 0, osubscriberrow[ "DMG03_SubscriberGenderCode"].ToString()); //Gender Code ninstance = 1; // REF SOCIAL SECURITY NUMBER if (osubscriberrow["ref02_subscribersocialsecurityno"].tostring().trim ()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(2, 0, osubscriberrow[ "REF02_SubscriberSocialSecurityNo"].ToString()); // Reference Identification (127 // REF AGENCY CLAIM NUMBER if (osubscriberrow["ref02_propertycasualtyclaimno"].tostring().trim()! = "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "Y4"); // Reference Identification Qualifier (128) osegment.set_dataelementvalue(2, 0, osubscriberrow[ "REF02_PropertyCasualtyClaimNo"].ToString()); // Reference Identification (127 // Administrative Communications Contact (PER) if (osubscriberrow["per04_subscriberphoneno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\PER")); osegment.set_dataelementvalue(1, 0, "IC"); // Contact Function Code (366) osegment.set_dataelementvalue(2, 0, osubscriberrow[ "PER02_SubscriberContactName"].ToString()); // Name (93)
12 osegment.set_dataelementvalue(3, 0, "TE"); // Communication Number Qualifier (365) osegment.set_dataelementvalue(4, 0, osubscriberrow[ "PER04_SubscriberPhoneNo"].ToString()); // Communication Number (364) if (osubscriberrow["per06_subscriberphoneextno"].tostring().trim()!= "") osegment.set_dataelementvalue(5, 0, "EX"); // Communication Number Qualifier (365) osegment.set_dataelementvalue(6, 0, osubscriberrow[ "PER06_SubscriberPhoneExtNo"].ToString()); // Communication Number (364) //if //if //2010BA SUBSCRIBER 12 //2010BB PAYER if (osubscriberrow["nm103_payerlastororganizationame"].tostring().trim()!= "") //NM1 PAYER NAME edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\NM1")); osegment.set_dataelementvalue(1, 0, "PR"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, osubscriberrow["nm102_payertypeqlfr "].ToString()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, osubscriberrow[ "NM103_PayerLastOrOrganizatioName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(8, 0, "PI"); //Identification Code Qualifier osegment.set_dataelementvalue(9, 0, osubscriberrow["nm109_payeridcode"].tostring()); //Identification Code // Address Information (N3) edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\N3")); osegment.set_dataelementvalue(1, 0, osubscriberrow["n301_payeraddr1"]. ToString()); // Address Information (166) osegment.set_dataelementvalue(2, 0, osubscriberrow["n302_payeraddr2"]. ToString()); // Address Information (166) // Geographic Location (N4) edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\ \NM1\\N4")); osegment.set_dataelementvalue(1, 0, osubscriberrow["n401_payercity"]. ToString()); // City Name (19) osegment.set_dataelementvalue(2, 0, osubscriberrow["n402_payerstate"]. ToString()); // State or Province Code (156) osegment.set_dataelementvalue(3, 0, osubscriberrow["n403_payerzip"]. ToString()); // Postal Code (116) osegment.set_dataelementvalue(4, 0, osubscriberrow["n404_payercountry"].tostring()); // Country Code (26) osegment.set_dataelementvalue(7, 0, osubscriberrow[ "N407_PayerCountrySubdivision"].ToString()); // Country Subdivision Code (1715) ninstance = 1; //REF PAYER IDENTIFICATION NUMBER if (osubscriberrow["ref02_payerid"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "2U"); //Reference Identification Qualifier.ToString()); //Reference Identification osegment.set_dataelementvalue(2, 0, osubscriberrow["ref02_payerid"]
13 13 //REF EMPLOYER'S IDENTIFICATION NUMBER if (osubscriberrow["ref02_employerid"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "EI"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, osubscriberrow[ "REF02_EmployerId"].ToString()); //Reference Identification //REF CLAIM OFFICE NUMBER if (osubscriberrow["ref02_claimofficeno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "FY"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, osubscriberrow[ "REF02_ClaimOfficeNo"].ToString()); //Reference Identification //REF NATIONAL ASSOCIATION OF INSURANCE COMMISSIONERS (NAIC) CODE if (osubscriberrow["ref02_naic_code"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "NF"); //Reference Identification Qualifier "].ToString()); //Reference Identification osegment.set_dataelementvalue(2, 0, osubscriberrow["ref02_naic_code //REF PROVIDER COMMERCIAL NUMBER if (osubscriberrow["ref02_providercommercialno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "G2"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, osubscriberrow[ "REF02_ProviderCommercialNo"].ToString()); //Reference Identification //REF LOCATION NUMBER if (osubscriberrow["ref02_locationno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "LU"); //Reference Identification Qualifier osegment.set_dataelementvalue(2, 0, osubscriberrow[ "REF02_LocationNo"].ToString()); //Reference Identification //if //2010BB PAYER
14 //The claims loop can occur in both the HL subscriber loop and HL patient (dependent) loop if (!bdependent) //self //Subscriber //2300 CLAIM INFORMATION Proc_2300_Claim(ref otransactionset, ref oconnection, "select * from [837X222_Claims] where Subscriberkey = " + osubscriberrow["subscriberkey"].tostring()); else //2000C PATIENT HL LOOP ssql = "select * from [837X222_Dependent] where Subscriberkey = " + osubscriberrow["subscriberkey"].tostring(); SqlDataAdapter odependentadapter = new SqlDataAdapter(sSql, oconnection); DataSet odependentds = new DataSet("dsDependent"); odependentadapter.fill(odependentds, "dsdependent"); 14 Rows) foreach (DataRow odependentrow in odependentds.tables["dsdependent"]. nhlcounter = nhlcounter + 1; //HL PATIENT LEVEL edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\HL")); osegment.set_dataelementvalue(1, 0, nhlcounter.tostring()); // Hierarchical ID Number osegment.set_dataelementvalue(2, 0, nhldependentparent.tostring()); //Hierarchical Parent ID Number osegment.set_dataelementvalue(3, 0, "23"); //Hierarchical Level Code osegment.set_dataelementvalue(4, 0, "0"); //Hierarchical Child Code //PAT PATIENT INFORMATION edidatasegment.set(ref osegment, otransactionset.createdatasegment ("HL\\PAT")); osegment.set_dataelementvalue(1, 0, odependentrow[ "PAT01_IndividualRelationshipCode"].ToString()); // Individual Relationship Code (1069) if (odependentrow["pat06_patientdeathdate"].tostring().trim()!= "") osegment.set_dataelementvalue(5, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(6, 0, odependentrow[ "PAT06_PatientDeathDate"].ToString()); // Date Time Period (1251) if (odependentrow["pat08_patientweightpounds"].tostring().trim()!= "") osegment.set_dataelementvalue(7, 0, "01"); // Unit or Basis for Measurement Code (355) osegment.set_dataelementvalue(8, 0, odependentrow[ "PAT08_PatientWeightPounds"].ToString()); // Weight (81) osegment.set_dataelementvalue(9, 0, odependentrow["pat09_pregnant"].tostring()); // Yes/No Condition or Response Code (1073).Trim()!= "") //2010CA PATIENT if (odependentrow["nm103_patientlastororganizationname"].tostring() //NM1 PATIENT NAME edidatasegment.set(ref osegment, otransactionset.
15 CreateDataSegment("HL\\NM1\\NM1")); osegment.set_dataelementvalue(1, 0, "QC"); //Entity Identifier Code osegment.set_dataelementvalue(2, 0, odependentrow[ "NM102_PatientTypeQualifier"].ToString()); //Entity Type Qualifier osegment.set_dataelementvalue(3, 0, odependentrow[ "NM103_PatientLastOrOrganizationName"].ToString()); //Name Last or Organization Name osegment.set_dataelementvalue(4, 0, odependentrow[ "NM104_PatientFirst"].ToString()); //Name First osegment.set_dataelementvalue(5, 0, odependentrow[ "NM105_PatientMiddle"].ToString()); // Name Middle (1037) osegment.set_dataelementvalue(7, 0, odependentrow[ "NM107_PatientSuffix"].ToString()); // Name Suffix (1039) 15 //N3 PATIENT ADDRESS INFORMATION edidatasegment.set(ref osegment, otransactionset. CreateDataSegment("HL\\NM1\\N3")); osegment.set_dataelementvalue(1, 0, odependentrow[ "N301_PatientAddr1"].ToString()); //Address Information osegment.set_dataelementvalue(2, 0, odependentrow[ "N302_PatientAddr2"].ToString()); // Address Information (166) CreateDataSegment("HL\\NM1\\N4")); //N4 PATIENT LOCATION edidatasegment.set(ref osegment, otransactionset. osegment.set_dataelementvalue(1, 0, odependentrow[ "N401_PatientCity"].ToString()); //City Name osegment.set_dataelementvalue(2, 0, odependentrow[ "N402_PatientState"].ToString()); //State or Province Code osegment.set_dataelementvalue(3, 0, odependentrow[ "N403_PatientZip"].ToString()); //Postal Code osegment.set_dataelementvalue(4, 0, odependentrow[ "N404_PatientCountry"].ToString()); // Country Code (26) osegment.set_dataelementvalue(7, 0, odependentrow[ "N407_PatientCountrySubdivision"].ToString()); // Country Subdivision Code (1715) //DMG PATIENT DEMOGRAPHIC INFORMATION edidatasegment.set(ref osegment, otransactionset. CreateDataSegment("HL\\NM1\\DMG")); if (odependentrow["dmg02_patientbirthdate"].tostring().trim()! = "") osegment.set_dataelementvalue(1, 0, "D8"); //Date Time Period Format Qualifier osegment.set_dataelementvalue(2, 0, odependentrow[ "DMG02_PatientBirthDate"].ToString()); //Date Time Period osegment.set_dataelementvalue(3, 0, odependentrow[ "DMG03_PatientGenderCode"].ToString()); //Gender Code ninstance = 1; // Reference Identification (REF) "AGENCY CLAIM NUMBER" if (odependentrow["ref02_propertycasualtyclaimno"].tostring(). Trim()!= "") edidatasegment.set(ref osegment, otransactionset. CreateDataSegment("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "Y4"); // Reference Identification Qualifier (128) osegment.set_dataelementvalue(2, 0, odependentrow[ "REF02_PropertyCasualtyClaimNo"].ToString()); // Reference Identification (127) // Reference Identification (REF) SOCIAL SECURITY NUMBER if (odependentrow["ref02_patientsocialsecurityno"].tostring().
16 Trim()!= "") edidatasegment.set(ref osegment, otransactionset. CreateDataSegment("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "SY"); // Reference Identification Qualifier (128) osegment.set_dataelementvalue(2, 0, odependentrow[ "REF02_PatientSocialSecurityNo"].ToString()); // Reference Identification (127) 16 // Reference Identification (REF) MEMBER IDENTIFICATION NUMBER if (odependentrow["ref02_memberidno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset. CreateDataSegment("HL\\NM1\\REF(" + osegment.set_dataelementvalue(1, 0, "1W"); // Reference Identification Qualifier (128) osegment.set_dataelementvalue(2, 0, odependentrow[ "REF02_MemberIdNo"].ToString()); // Reference Identification (127) // Administrative Communications Contact (PER) if (odependentrow["per04_patientphoneno"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset. CreateDataSegment("HL\\NM1\\PER")); osegment.set_dataelementvalue(1, 0, "IC"); // Contact Function Code (366) osegment.set_dataelementvalue(2, 0, odependentrow[ "PER02_PatientContactName"].ToString()); // Name (93) osegment.set_dataelementvalue(3, 0, "TE"); // Communication Number Qualifier (365) osegment.set_dataelementvalue(4, 0, odependentrow[ "PER04_PatientPhoneNo"].ToString()); // Communication Number (364) if (odependentrow["per06_patientphoneextno"].tostring(). Trim()!= "") osegment.set_dataelementvalue(5, 0, "EX"); // Communication Number Qualifier (365) osegment.set_dataelementvalue(6, 0, odependentrow[ "PER06_PatientPhoneExtNo"].ToString()); // Communication Number (364) //if //if //2010CA PATIENT //Patient//s claims Proc_2300_Claim(ref otransactionset, ref oconnection, "select * from [837X222_Claims] where Dependentkey = " + odependentrow["dependentkey"].tostring()); //foreach odependentrow //if (!bdependent) //foreach osubscriberrow //foreach oinfosourcerow //foreach oheaderrow //foreach ogrouprow //foreach ointerchangerow
17 17 //TRAILING SEGMENTS ARE AUTOMATICALLY CREATED WHEN FREDI COMMITS (SAVES) //THE EDIDOC OBJECT INTO AN EDI FILE. oedidoc.save(sapppath + sedifile); MessageBox.Show("Done"); //DESTROYS OBJECTS otransactionset.dispose(); ogroup.dispose(); ointerchange.dispose(); oschemas.dispose(); oedidoc.dispose(); // btngenerate private void Proc_2300_Claim(ref editransactionset otransactionset, ref SqlConnection oconnection, string ssql) edidatasegment osegment=null; int ninstance = 1; int nelempos = 0; //2300 CLAIM SqlDataAdapter oclaimsadapter = new SqlDataAdapter(sSql, oconnection); DataSet oclaimsds = new DataSet("dsClaims"); oclaimsadapter.fill(oclaimsds, "dsclaims"); foreach (DataRow oclaimsrow in oclaimsds.tables["dsclaims"].rows) //CLM HEALTH CLAIM edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\clm")); osegment.set_dataelementvalue(1, 0, oclaimsrow["clm01_patientcontrolno"].tostring()); //Claim Submitter//s Identifier osegment.set_dataelementvalue(2, 0, oclaimsrow["clm02_totalclaimchargeamount"].tostring()); //Monetary Amount osegment.set_dataelementvalue(5, 1, 0, oclaimsrow["clm05_01_placeofservicecode"].tostring ()); //Facility Code Value osegment.set_dataelementvalue(5, 2, 0, "B"); //Facility Code Qualifier osegment.set_dataelementvalue(5, 3, 0, oclaimsrow["clm05_03_claimfrequencycode"].tostring ()); //Claim Frequency Type Code osegment.set_dataelementvalue(6, 0, oclaimsrow["clm06_suppliersignatureindicator"].tostring ()); //Yes/No Condition or Response Code osegment.set_dataelementvalue(7, 0, oclaimsrow["clm07_planparticipationcode"].tostring()); //Provider Accept Assignment Code osegment.set_dataelementvalue(8, 0, oclaimsrow["clm08_benefitsassignmentcertindicator"]. ToString()); //Yes/No Condition or Response Code osegment.set_dataelementvalue(9, 0, oclaimsrow["clm09_releaseofinformationcode"].tostring ()); //Release of Information Code osegment.set_dataelementvalue(10, 0, oclaimsrow["clm10_patientsignaturesourcecode"]. ToString()); // Patient Signature Source Code (1351) osegment.set_dataelementvalue(11, 1, oclaimsrow["clm11_01_relatedcausescode"].tostring()); // Related Causes Code (1362) osegment.set_dataelementvalue(11, 2, oclaimsrow["clm11_02_relatedcausescode"].tostring()); // Related Causes Code (1362) osegment.set_dataelementvalue(11, 4, oclaimsrow["clm11_04_autoaccidentstatecode"].tostring ()); // State or Province Code (156) osegment.set_dataelementvalue(11, 5, oclaimsrow["clm11_05_countrycode"].tostring()); // Country Code (26) osegment.set_dataelementvalue(12, 0, oclaimsrow["clm112_specialprogramcode"].tostring()); // Special Program Code (1366)
18 osegment.set_dataelementvalue(20, 0, oclaimsrow["clm120_delayreasoncode"].tostring()); // Delay Reason Code (1514) 18 ninstance = 1; // Date or Time or Period (DTP) "ONSET OF CURRENT SYMPTOMS OR ILLNESS" if (oclaimsrow["dtp03_onsetofcurrentillnessinjurydate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "431"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_onsetofcurrentillnessinjurydate"].tostring()); // Date Time Period (1251) // Date or Time or Period (DTP) "INITIAL TREATMENT" if (oclaimsrow["dtp03_initialtreatmentdate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "454"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_initialtreatmentdate"].tostring ()); // Date Time Period (1251) // Date or Time or Period (DTP) LATEST VISIT OR CONSULTATION if (oclaimsrow["dtp03_lastseendate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "304"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_lastseendate"].tostring()); // Date Time Period (1251) // Date or Time or Period (DTP) ACUTE MANIFESTATION OF A CHRONIC CONDITION if (oclaimsrow["dtp03_acutemanifestationdate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "453"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_acutemanifestationdate"].tostring ()); // Date Time Period (1251) // Date or Time or Period (DTP) ACCIDENT if (oclaimsrow["dtp03_accidentdate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "439"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_accidentdate"].tostring()); // Date Time Period (1251)
19 19 // Date or Time or Period (DTP) LAST MENSTRUAL PERIOD if (oclaimsrow["dtp03_lastmenstrualperioddate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "484"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_lastmenstrualperioddate"]. ToString()); // Date Time Period (1251) // Date or Time or Period (DTP) "LAST X RAY" if (oclaimsrow["dtp03_lastxraydate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "455"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_lastxraydate"].tostring()); // Date Time Period (1251) // Date or Time or Period (DTP) PRESCRIPTION if (oclaimsrow["dtp03_hearvisionprescriptdate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "471"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_hearvisionprescriptdate"]. ToString()); // Date Time Period (1251) // Date or Time or Period (DTP) DISABILITY if (oclaimsrow["dtp03_disability"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "314"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "RD8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_disability"].tostring()); // Date Time Period (1251) // Date or Time or Period (DTP) INITIAL DISABILITY PERIOD START if (oclaimsrow["dtp03_initialdisabilityperiodstart"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "360"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_initialdisabilityperiodstart"]. ToString()); // Date Time Period (1251)
20 20 // Date or Time or Period (DTP) INITIAL DISABILITY PERIOD END if (oclaimsrow["dtp03_initialdisabilityperiodend"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "361"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_initialdisabilityperiodend"]. ToString()); // Date Time Period (1251) // Date or Time or Period (DTP) INITIAL DISABILITY PERIOD LAST DAY WORKED if (oclaimsrow["dtp03_lastworkeddate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "297"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_lastworkeddate"].tostring()); // Date Time Period (1251) // Date or Time or Period (DTP) INITIAL DISABILITY PERIOD RETURN TO WORK if (oclaimsrow["dtp03_workreturndate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "296"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_workreturndate"].tostring()); // Date Time Period (1251) // Date or Time or Period (DTP) ADMISSION if (oclaimsrow["dtp03_hospitalizationadmissiondate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "435"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_hospitalizationadmissiondate"]. ToString()); // Date Time Period (1251) // Date or Time or Period (DTP) DISCHARGE if (oclaimsrow["dtp03_hospitalizationdischargedate"].tostring().trim()!= "") edidatasegment.set(ref osegment, otransactionset.createdatasegment("hl\\clm\\dtp(" + osegment.set_dataelementvalue(1, 0, "096"); // Date/Time Qualifier (374) osegment.set_dataelementvalue(2, 0, "D8"); // Date Time Period Format Qualifier (1250) osegment.set_dataelementvalue(3, 0, oclaimsrow["dtp03_hospitalizationdischargedate"]. ToString()); // Date Time Period (1251)
private string sconnection = ConfigurationManager.ConnectionStrings["Development"].ConnectionString
using System; using System.Configuration; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms;
More informationnamespace csharp_gen837x223a2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace
More informationnamespace Gen837X222A1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace
More informationC:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen837X222A1\Form1.vb Imports Edidev.FrameworkEDI
Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschemas
More informationstring spath; string sedifile = "277_005010X228.X12"; string sseffile = "277_005010X228.SemRef.EVAL0.SEF";
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI; 1 namespace
More informationnamespace csharp_gen277x214 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
using System using System.Collections.Generic using System.ComponentModel using System.Data using System.Drawing using System.Text using System.Windows.Forms using Edidev.FrameworkEDI 1 namespace csharp_gen277x214
More information// Specify SEF file to load. oschema = (edischema) oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDI;
More information// Specify SEF file to load. edischema oschema = oedidoc.loadschema(spath + sseffilename, SchemaTypeIDConstants. Schema_Standard_Exchange_Format);
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Edidev.FrameworkEDIx64;
More informationC:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen277X214\Form1.vb Imports Edidev.FrameworkEDI
Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschema
More informationC:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen834X220A1\Form1.vb Imports Edidev.FrameworkEDI
Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschemas
More informationC:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Gen835X221A1\Form1.vb Imports Edidev.FrameworkEDI
Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btngenerate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btngenerate.click Dim oedidoc As edidocument Dim oschemas
More informationC:\EDIdEv\Examples\HIPAA\5010\VbNet\vbNet_Tran834X220A1\Form1.vb Imports Edidev.FrameworkEDI
Imports Edidev.FrameworkEDI 1 Public Class Form1 Private Sub btntranslate_click(byval sender As System.Object, ByVal e As System.EventArgs) Handles btntranslate.click Dim oedidoc As edidocument Dim oschemas
More information5010 Upcoming Changes:
HP Systems Unit I N D I A N A H E A L T H C O V E R A G E P R O G R A M S 5010 Upcoming Changes: 837 Dental Claims Transaction Based on Version 5, Release 1 ASC X12N 005010X224 Revision Information Revision
More information837 Professional Health Care Claim. Section 1 837P Professional Health Care Claim: Basic Instructions
anthemeap.com Companion Document 837P This companion document is for informational purposes only to describe certain aspects and expectations regarding the transaction and is not a complete guide. The
More informationSHARES 837P Companion Guide
SHARES 837P Companion Guide Contents Introduction... 2 SHARES 837 Guidelines... 2 SHARES Interchange Requirements... 2 Transaction Segment Delimiters and Terminators... 2 Claim Matching... 2 Service Line
More information837 Healthcare Claim Companion Guide ANSI ASC X12N (Version 4010A) Professional, Institutional, and Dental
837 Healthcare Claim Companion Guide ANSI ASC X12N (Version 4010A) Professional, Institutional, and Dental State of Washington Department of Social & Health Services Prepared by: CNSI 3000 Pacific Avenue
More informationCOMMONWEALTH CARE ALLIANCE CCA COMPANION GUIDE
COMMONWEALTH CARE ALLIANCE CCA 5010 837 COMPANION GUIDE PREFACE This Companion Guide is v5010 and ASC X12N compatible and adopted under HIPAA clarifies and specifies the data content when exchanging electronically
More informationEDS SYSTEMS UNIT. Companion Guide: 837 Dental Claims Transaction
EDS SYSTEMS UNIT I N D I A N A H E A L T H C O V E R A G E P R O G R A M S Companion Guide: 837 Dental Claims Transaction L I B R A R Y R E F E R E N C E N U M B E R : C L E L 1 0 0 1 3 [ A S C X 1 2 N
More information5010 Gap Analysis for Institutional Claims. Based on ASC X v5010 TR3 X223A2 Version 2.0 August 2010
5010 Gap Analysis for Institutional Claims Based on ASC X12 837 v5010 T3 X223A2 Version 2.0 August 2010 This information is provided by Emdeon for education and awareness use only. Even though Emdeon believes
More information837 Dental Health Care Claim
Companion Document 837D 837 Dental Health Care Claim Basic Instructions This section provides information to help you prepare for the ANSI ASC X12N 837 Health Care transaction for dental claims. The remaining
More information837 Health Care Claim Companion Guide. Professional and Institutional
837 Health Care Claim Companion Guide Professional and Institutional Revised December 2011 Table of Contents Introduction... 3 Purpose... 3 References... 3 Additional information... 4 Delimiters Supported...
More informationHIPAA TRANSACTION STANDARD 837 HEALTH CARE CLAIM: PROFESSIONAL COMPANION GUIDE APRIL 21, 2004 VERSION X098A1
HIPAA TRANSACTION STANDARD 837 HEALTH CARE CLAIM: PROFESSIONAL COMPANION GUIDE APRIL 21, 2004 VERSION 004010X098A1 837 Health Care Claim: Professional Below is a summary of the fields that have additional
More information5010 Upcoming Changes: 837 Professional Claims and Encounters Transaction
HP Systems Unit I N D I A N A H E A L T H C O V E R A G E P R O G R A M S 5010 Upcoming Changes: 837 Professional Claims and Encounters Transaction Based on Version 5, Release 1 ASC 12N 005010222 and ASC12N005010222A1
More informationUnsolicited 277 Trading Partner Specification
Unsolicited 277 Trading Partner Specification Revision Summary: Revision Date Summary of Changes Number 1.0 3/20/2007 NPI changes in loop 2100C AmeriHealth U277 Unsolicited Health Care Claim Status Notification
More informationRefers to the Technical Reports Type 3 Based on ASC X12 version X /277 Health Care Claim Status Inquiry and Response
HIPAA Transaction Standard Companion Guide For Availity Health Information Network Users Refers to the Technical Reports Type 3 Based on ASC X12 version 005010X212 276/277 Health Care Claim Status Inquiry
More informationCabinet for Health and Family Services Department for Medicaid Services
KyHealth Choices 277 Health Care Payer Unsolicited Claim Status (ASC X12N 277) Companion Guide Version 2.3 Version 003070 Cabinet for Health and Family Services Department for Medicaid Services August
More information270/271 Health Care Eligibility, Coverage, or Benefit Inquiry and Response
Companion Document 270/271 270/271 Health Care Eligibility, Coverage, or Benefit Inquiry and Response Basic Instructions This section provides information to help you prepare for the ANSI ASC X12.281 Eligibility,
More informationX A1 ADDENDA COMPANION DOCUMENT PROFESSIONAL (004010X098A1)
X12 837 4010A1 ADDENDA COMPANION DOCUMENT PROFESSIONAL (004010X098A1) Updated February 2006 Submission of the National Provider Identifier (NPI) IN ADDITION to the Empire assigned provider Number (EPIN)
More information837D Health Care Claim: Educational Guide
837D Health Care Claim: Educational Guide January 2011 - Version 3.0 Disclaimer INGENIX is still under development stages and frequent changes within this document are expected. This documentation was
More information276 Health Care Claim Status Request Educational Guide
276 Health Care Claim Status Request Educational Guide June 2010 - Version 1.1 Disclaimer INGENIX is still under development stages and frequent changes within this document are expected. This documentation
More information270/271 Companion Document ASC X12N. Health Care Eligibility and Benefit Inquiry and Response Version 4010A1 Addenda October 2002
Purpose of This Document 270/271 Companion Document ASC N Health Care Eligibility and Benefit Inquiry and Response Version 4010A1 Addenda October 2002 This companion guide has been written to assist those
More informationEMBLEMHEALTH HIPAA Transaction Standard Companion Guide
EMBLEMHEALTH HIPAA Transaction Standard Companion Guide Refers to the X12N Implementation Guide 005010X222A1: 837P Health Care Claim Professional Transaction HIPAA Readiness Disclosure Statement The Health
More informationElectronic Transaction Manual for Arkansas Blue Cross and Blue Shield FEDERALEMPLOYEEPROGRAM (FEP) DentalClaims
Electronic Transaction Manual for Arkansas Blue Cross and Blue Shield FEDERALEMPLOYEEPROGRAM (FEP) DentalClaims HIPAA Transaction Companion Document Guide Refers to the X12N Implementation Guide: 005010X224A2:
More informationPennsylvania PROMISe Companion Guide
Pennsylvania Companion Guide Unsolicited 277 Claim Response Version 5010 September 2010 Version 1 Pennsylvania PROMISe Unsolicited 277 Claim Companion Guide This page intentionally left blank. September
More informationKentucky HIPAA HEALTH CARE CLAIM: DENTAL Companion Guide 837
Kentucky HIPAA HEALTH CARE CLAIM: DENTAL Companion Guide 837 Version 1.4 Final RECORD OF CHANGE VERSION NUMBER DATE REVISED DESCRIPTION OF CHANGE PERSONS INVOLVED 1.0 10/25/02 Creation and first view by
More information837 Professional Health Care Claim
Section 2A 837 Professional Health Care Claim Basic Instructions This section provides information to help you prepare for the ANSI ASC X12N 837 Health Care transaction for professional claims. The tables
More informationIntegration Guide for Data Originators of Claim Status. Version 1.1
Integration Guide for Data Originators of Claim Status Version 1.1 December 23, 2010 Integration Guide for Data Originators of Claim Status Revision History Date Version Description Author November 25,
More informationHIPAA 276/277 Companion Guide Cardinal Innovations Prepared for Health Care Providers
Cardinal Innovations Prepared for Health Care Providers, February 2017 Table of Contents Preface... 4 1. Transaction Instruction (TI) Introduction... 5 1.1 Scope... 5 1.2 Overview... 5 1.3 References...
More informationVendor Specifications 270/271 Eligibility Benefit Inquiry and Response ASC X12N Version for. State of Idaho MMIS
Vendor Specifications 270/271 Eligibility Benefit Inquiry and Response ASC X12N Version 5010 for State of Idaho MMIS Date of Publication: 7/27/2017 Document : TL419 Version: 8.0 Revision History Version
More informationANSI ASC X12N 277 Claims Acknowledgement (277CA)
ANSI ASC X12N 277 Claims Acknowledgement (277CA) Acute Care Long Term Care Encounters COMPANION GUE February 28, 2012 Texas Medicaid & Healthcare Partnership Page 1 of 23 Print Date: 1/10/2013 Table of
More information271 Health Care Eligibility Benefit Inquiry Response Educational Guide
271 Health Care Eligibility Benefit Inquiry Response Educational Guide June 2010 - Version 1.1 Disclaimer INGENIX is still under development stages and frequent changes within this document are expected.
More informationHIPAA Transaction Health Care Claim Acknowledgement Standard Companion Guide (277CA, X214)
(underwritten by Dean Health Plan) HIPAA Transaction Health Care Claim Acknowledgement Standard Companion Guide (277CA, 005010X214) Instructions related to Transactions based on ASC X12 Implementation
More information837 PROFESSIONAL CLAIMS AND ENCOUNTERS TRANSACTION COMPANION GUIDE
837 PROFESSIONAL CLAIMS AND ENCOUNTERS TRANSACTION COMPANION GUIDE OCTOBER 19, 2012 A S C X 1 2 N 8 3 7 (0 0 5 0 10 X 222A1) VERSION 3.0 TABLE OF CONTENTS 1.0 Overview 3 2.0 Introduction 4 3.0 Data Exchange
More informationKentucky HIPAA HEALTH CARE PAYER UNSOLICITED CLAIM STATUS Companion Guide Unsolicited 277. Version 1.1
Kentucky HIPAA HEALTH CARE PAYER UNSOLICITED CLAIM STATUS Companion Guide Unsolicited 277 Version 1.1 Released August 4, 2004 RECORD OF CHANGE VERSION NUMBER DATE REVISED DESCRIPTION OF CHANGE PERSONS
More informationIt is recommended that separate transaction sets be used for different patients.
ASC X12N 278 (004010X094A1) Health Care Services Request For Review And Response Companion Guide Notes The ISA segment terminator, which immediately follows the component element separator, must consist
More informationUSVI HEALTH ELIGIBILITY/BENEFIT INQUIRY 5010 Companion Guide 270
USVI HEALTH ELIGIBILITY/BENEFIT INQUIRY 5010 Companion Guide 270 Date of Publication: 12/04/2012 Version: 1.1 DISCLAIMER The DXC Technology Companion Guide for USVI Medicaid is subject to change prior
More informationQuestions, comments, or suggestions regarding this information should be directed to
302 837 PROFESSIONAL 302.1 GENERAL INFORMATION Introduction This chapter contains information on processing electronic claims based on the 004010X098 version of the ASC X12N Professional Health Care Claim
More informationRefers to the Technical Reports Type 3 Based on ASC X12 version X223A2
HIPAA Transaction Standard Companion Guide For Availity Health Information Network Users Refers to the Technical Reports Type 3 Based on ASC X12 version 005010X223A2 837 Health Care Claim Institutional
More informationX A1 Addenda Companion Document - Professional (004010X098A1) - EFFECTIVE 05/23/07
Companion Document 837I++ X12 837 4010A1 Addenda Companion Document - Professional (004010X098A1) - EFFECTIVE 05/23/07 Introduction The Federal Department of Health and Human Services has adopted regulations,
More informationWest Virginia HMO Rosters Companion Guide 834
West Virginia HMO Rosters Companion Guide 834 Version 1.8 Created Modified March 09, 2015 March 09, 2015 I TABLE OF CONTENTS Record of change... 3 Companion Guide Purpose... 3 Overview... 3 Scope... 4
More informationSection 3 837D Dental Health Care Claim: Charts for Situational Rules
Companion Document 837D This companion document is for informational purposes only to describe certain aspects and expectations regarding the transaction and is not a complete guide. The details contained
More informationHIPAA X 12 Transaction Standards
HIPAA X 12 Transaction Standards Abbreviated Companion Guide 837 Institutional Health Care Claim Version 004010X096A1 Trading Partner Companion Guide Information and Considerations 837I 1. General Transaction
More information816 Organizational Relationships
816 Organizational Relationships Functional Group ID=OR Introduction: This Draft Standard for Trial Use contains the format and establishes the data contents of the Organizational Relationships Transaction
More informationGeneral Companion Guide 837 Professional and Institutional Healthcare Claims Submission Version Version Date: June 2017
General Companion Guide 837 Professional and Institutional Healthcare Claims Submission Version 5010 Version Date: June 2017 1 Introduction ************************************************************************
More informationX A1 Addenda Companion Document - Institutional (004010X096A1) - EFFECTIVE 05/23/07
Companion Document 837I++ X12 837 4010A1 Addenda Companion Document - Institutional (004010X096A1) - EFFECTIVE 05/23/07 Introduction The Federal Department of Health and Human Services has adopted regulations,
More informationBLUE CROSS AND BLUE SHIELD OF LOUISIANA PROFESSIONAL CLAIMS COMPANION GUIDE
BLUE CROSS AND BLUE SHIELD OF LOUISIANA Table of Contents I. Introduction...3 II. General Specifications...4 III. Enveloping Specifications...5 IV. Loop and Data Element Specifications...7 V. Transaction
More informationHIPAA X 12 Transaction Standards
HIPAA X 12 Transaction Standards Abbreviated Companion Guide 837 Professional Health Care Claim Version 004010X098A1 Trading Partner Companion Guide Information and Considerations 837P 1. General Transaction
More information270/271 Benefit Eligibility Inquiry/Response Transactions Companion Guide ANSI ASC X12N 270/271 (Version 4010A)
270/271 Benefit Eligibility Inquiry/Response Transactions ANSI ASC X12N 270/271 (Version 4010A) State of Washington Department of Social & Health Services Prepared by: CNSI 3000 Pacific Avenue S.E. Suite
More informationSYSCO only provide the customer address of a certain type of customers.
816 Organizational Relationships Functional Group ID=OR Introduction: This Draft Standard for Trial Use contains the format and establishes the data contents of the Organizational Relationships Transaction
More informationBLUE CROSS AND BLUE SHIELD OF LOUISIANA INSTITUTIONAL CLAIMS COMPANION GUIDE
BLUE CROSS AND BLUE SHIELD OF LOUISIANA Table of Contents I. Introduction...3 II. General Specifications...4 III. Enveloping Specifications...5 IV. Loop and Data Element Specifications...7 V. Transaction
More informationHIPAA Transaction 278 Request for Review and Response Standard Companion Guide
FLORIDA BLUE HEALTH PLAN COMPANION GUIDE HIPAA Transaction 278 Request for Review and Response Standard Companion Guide Refers to the Technical Reports Type 3 Based on ASC X12 version 005010X217 Companion
More informationANSI ASC X12N 837 Healthcare Claim Institutional, Professional and Dental Department of Labor-OWCP Companion Guide
Institutional, Professional and Dental Department of Labor-OWCP Companion Guide May 31, 2017 TABLE OF CONTENTS AT A GLANCE II CHAPTER 1 INTRODUCTION 1 Audience 1 CHAPTER 2 TRANSMISSION METHODS 2 Communication
More information276/ /277 Health Care Claim Status Request and Response Real-Time. Basic Instructions. Companion Document
Companion Document 276/277 276/277 Health Care Claim Status Request and Response Real-Time Basic Instructions This section provides information to help you prepare for the ANSI ASC X12.316 Health Care
More informationWest Virginia HEALTH ELIGIBILITY/BENEFIT INQUIRY Companion Guide 270
West Virginia HEALTH ELIGIBILITY/BENEFIT INQUIRY Companion Guide 270 Date of Publication: 01/01/2014 Document Number: Version: 2.0 DISCLAIMER The Molina Healthcare Companion Guide for West Virginia is
More informationCALCULATOR APPLICATION
CALCULATOR APPLICATION Form1.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;
More information837 Health Care Claim Professional, Institutional & Dental Companion Guide
837 Health Care Claim Professional, Institutional & Dental Companion Guide 005010X222A1 & 005010X223A1 V. 1.2 Created 07/18/14 Disclaimer Blue Cross of Idaho created this companion guide for 837 healthcare
More information521 Income or Asset Offset
521 Income or Asset Offset Functional Group ID=AO Introduction: This Draft Standard for Trial Use contains the format and establishes the data contents of the Income or Asset Offset Transaction Set (521)
More informationThe report heading will contain a fourth line if the transmission is a New Biller test, in addition to having a different report number.
11 west forty-second new york, ny 10046 www.empireblue.com DATE: July 2003 AUDIENCE: Institutional Electronic Claims Submitters SUBJECT: Electronic Media Claims (EMC) Receipt Report for 837 Institutional
More information822 Account Analysis. Heading: Detail: Functional Group ID=AA. GISB Statement of Account
822 Account Analysis Functional Group ID=AA Heading: Pos. Seg. Req. Loop Notes and No. ID Name Des. Max.Use Repeat Comments 0100 ST Transaction Set Header M 1 0200 BGN Beginning Segment M 1 0300 DTM Date/Time
More informationHorizon Blue Cross and Blue Shield of New Jersey
Horizon Blue Cross and Blue Shield of New Jersey Companion Guide for Transaction and Communications/Connectivity Information Instructions related to Transactions based on ASC X12 Implementation Guides,
More informationStreamline SmartCare Network180 EHR
Last modified 8/28/2016 Network180-Streamline837CompanionGuide20160818.doc Page 1 of 8 Streamline SmartCare Network180 EH HIPAA 837 Companion Guide for Direct Submitters (V 1.0 Updated 08/28/2016) Last
More information278 Health Care Service Review and Response
278 Health Care Service Review and Response Overview 2 Blue Card Inquiries (Blue Exchange) 2 Health Care Services Review Processing 2 Frequency of Data Exchange 2 Acknowledgements 2 Data Retention 3 Batch
More informationOptum/Care Improvement Plus Healthcare Claim: 837 Companion Guide. Versions: X222A X223A2
Optum/Care Improvement Plus Healthcare Claim: 837 Companion Guide Versions: 005010X222A1 005010X223A2 Updated December, 2016 2016 Conduent Business Services, LLC. All rights reserved. Conduent and Conduent
More informationStandard Companion Guide
Standard Companion Guide Refers to the Implementation Guide Based on X12 Version 005010X224A2 Health Care Claim Dental (837D) Companion Guide Version Number 2.0 September 25, 2018 Page 1 of 15 CHANGE LOG
More informationRelayHealth EDI 12 Plug-in
GE Healthcare RelayHealth EDI 12 Plug-in Installation and Setup Guide Contents... Checklist for first time installations... 2 Checklist for upgrading only... 2 Checklist for upgrading and adding EDI remittance
More informationX A1 ADDENDA COMPANION DOCUMENT INSTITUTIONAL (004010X096A1)
X12 837 4010A1 ADDENDA COMPANION DOCUMENT INSTITUTIONAL (004010X096A1) Updated February 2006 Submission of the National Provider Identifier (NPI) IN ADDITION to the Empire assigned provider number (EPIN)
More informationif (say==0) { k.commandtext = "Insert into kullanici(k_adi,sifre) values('" + textbox3.text + "','" + textbox4.text + "')"; k.
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient;
More information276 STATUS REQUEST - Inbound Translation
INTECHANGE CONTOL HEADE 276 TATU EQUET - Inbound Translation ANI 276 Name Allowable Data Values IG IA01 Auth Infmation 00 No auth info present 03 Additional data infmation B3 2 2 The following group of
More information/277 Companion Guide. Refers to the Implementation Guides Based on X12 version Companion Guide Version Number: 1.1
5010 276/277 Companion Guide Refers to the Implementation Guides Based on X12 version 005010 Companion Guide Version Number: 1.1 November 26, 2012 1 Disclosure It is the sole responsibility of the provider/vendor
More informationUNIT-3. Prepared by R.VINODINI 1
Prepared by R.VINODINI 1 Prepared by R.VINODINI 2 Prepared by R.VINODINI 3 Prepared by R.VINODINI 4 Prepared by R.VINODINI 5 o o o o Prepared by R.VINODINI 6 Prepared by R.VINODINI 7 Prepared by R.VINODINI
More informationStandard Companion Guide
HealthSmart Benefit Solutions, Inc. Standard Companion Guide Refers to the Implementation Guide Based on X12 Version 00X220A1 Benefit Enrollment and Maintenance () January 2012 Companion Guide Version
More informationTIBCO Foresight Products
TIBCO Foresight Products Error Message Numbers, Editing, and Management August 2017 Two-Second Advantage Important Information SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED
More information276/277 Health Care Claim Status Request/ Response Real-Time. Section 1 276/277 Claim Status Request/Response: Basic Instructions
Companion Document 276/277 276/277 Health Care Claim Status Request/ Response Real-Time This companion document is for informational purposes only to describe certain aspects and expectations regarding
More informationInbound ANSI X Version 04010
Inbound ANSI X12 850 Version 04010 For CLP License Ordering Version: ANSI X12 850 4010 Author: Adobe EDI Modified: 06/09/2010 CLP_X12_ANSI8504010_060910.ecs 1 For internal use only 850 Purchase Order Functional
More informationANSI ASC X12N 837 Healthcare Claim (Version X222A1-June 2010) Professional Companion Guide
ANSI ASC X12N 837 Healthcare Claim (Version 005010X222A1-June 2010) Pruitt Health Premier Missouri Medicare Select Signature Advantage September 2015 TABLE OF CONTENTS AT A GLANCE II CHAPTER 1: INTRODUCTION
More informationILLINOIS DEPARTMENT OF HUMAN SERVICES DIVISION OF MENTAL HEALTH. Page 1 Version 1.3 9/18/09
ILLINOIS DEPATMENT OF HUMAN SEVICES DIVISION OF MENTAL HEALTH Page 1 Version 1.3 9/18/09 Illinois Health Care Claim Companion Guide 837 Professional HIPAA 4010 Version Version 1.3 September 18, 2009 Page
More informationILLINOIS DEPARTMENT OF HUMAN SERVICES DIVISION OF MENTAL HEALTH. Page 1 Version 1.2 8/14/08
ILLINOIS DEPATMENT OF HUMAN SEVICES DIVISION OF MENTAL HEALTH Page 1 Version 1.2 8/14/08 Illinois Health Care Claim Companion Guide 837 Professional HIPAA 4010 Version Version 1.2 August 14, 2008 Page
More information276/277 Health Care Claim Status Request/ Response Real-Time. Section 1 276/277 Claim Status Request/Response: Basic Instructions
Companion Document 276/277 276/277 Health Care Claim Status Request/ Response Real-Time This companion document is for informational purposes only to describe certain aspects and expectations regarding
More information837 Companion Guide. October PR.P.WM.1 3/17
837 Companion Guide Refers to the Implementation Guides based on the HIPAA Transaction ASC X12N. Standards for Electronic Data Interchange X12N/005010x222 Health Care Claim: Professional (837P) and ASC
More informationMolina Healthcare HIPAA Transaction Standard Companion Guide
Molina Healthcare HIPAA Transaction Standard Companion Guide Refers to the Implementation Guides Based on ASC X12 version 005010 Last Revised July 19, 2016 Molina Healthcare, Inc. 200 E. Oceangate Long
More informationInbound X Version 04010
Inbound X12 850 Version 04010 For Value Incentive Plan (VIP) License Ordering Version: ANSI ASC X12 850 4010 Author: Adobe EDI Company: Adobe Systems Inc Modified: 8/31/2015 850 Purchase Order Functional
More informationMainly three tables namely Teacher, Student and Class for small database of a school. are used. The snapshots of all three tables are shown below.
APPENDIX 1 TABLE DETAILS Mainly three tables namely Teacher, Student and Class for small database of a school are used. The snapshots of all three tables are shown below. Details of Class table are shown
More informationMedicare-Medicaid Encounter Data System
Medicare-Medicaid Encounter Data System Addendum to Encounter Data System Companion Guide and State assigned Medicaid Companion Guides Instructions related to the 837 Health Care Claim: Institutional Transaction
More informationConcurrent Session 204 Transactions and Code Sets: Its All in the Guides
Concurrent Session 204 Transactions and Code Sets: Its All in the Guides The HIPAA Summit West June 21, 2001 San Francisco, CA Gary Beatty gary@wpc-edi.com Washington Publishing Company Chair X12 Insurance
More information835 Health Care Claim Payment and Remittance Advice Companion Guide X091A1
835 Health Care Claim Payment and Remittance Advice Companion Guide 004010 X091A1 Version 1.3 March 1, 2008 1-March-2008 TABLE OF CONTENTS 1 Introduction... 1 1.1 Purpose... 1 2 Transmission and Data Retrieval
More informationCSIS 1624 CLASS TEST 6
CSIS 1624 CLASS TEST 6 Instructions: Use visual studio 2012/2013 Make sure your work is saved correctly Submit your work as instructed by the demmies. This is an open-book test. You may consult the printed
More informationMOLINA MEDICAID SOLUTIONS
MOLINA MEDICAID SOLUTIONS SUBMITTER S COMPION GUIDE FOR CSI MOLINA MEDICAID SOLUTIONS Submitter s Companion Guide for the Claims Status Inquiry System (CSI) Refers to the Implementation Guides Based on
More informationHIPAA X 12 Transaction Standards
HIPAA X 12 Transaction Standards Companion Guide 837 Professional/ Institutional Health Care Claim Version 5010 Trading Partner Companion Guide Information and Considerations 837P/837I June 11, 2012 Centene
More informationNYEIS. 837 Health Care Claim Professional Companion Guide
NYEIS New York State Department of Health Center for Community Health Bureau of Early Intervention 837 Health Care Professional Companion Guide HIPAA 005010X222A1 837: Health Care : Professional Version:
More informationAppendix 4D. Deactivated Edits. Table 4D.1. Deactivated Edits
Appendix 4D. Deactivated Edits Several CCEM s currently active in the CMS 5010 Professional Edits spreadsheet will be deactivated to ensure that syntactically correct encounters pass front- ing. This appendix
More information