示例#1
0
		private void gridElectIDs_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			if(IsSelectMode) {
				selectedID=ElectIDs.List[e.Row];
				DialogResult=DialogResult.OK;
			}
			else {
				FormElectIDEdit FormEdit=new FormElectIDEdit();
				FormEdit.electIDCur=ElectIDs.List[e.Row];
				if(FormEdit.ShowDialog()==DialogResult.OK) {
					FillElectIDs(FormEdit.electIDCur.ElectIDNum);
				}
			}
		}
示例#2
0
		private void butOK_Click(object sender, System.EventArgs e) {
			if(IsSelectMode && gridElectIDs.SelectedIndices.Length<1){
				MessageBox.Show(Lan.g(this,"Please select an item first."));
				return;
			}
			selectedID=ElectIDs.List[gridElectIDs.SelectedIndices[0]];
			DialogResult=DialogResult.OK;
		}
示例#3
0
文件: ElectIDs.cs 项目: nampn/ODental
 public static void Update(ElectID electID)
 {
     //No need to check RemotingRole; no call to db.
     Crud.ElectIDCrud.Update(electID);
 }
示例#4
0
文件: ElectIDs.cs 项目: nampn/ODental
 public static void Insert(ElectID electID)
 {
     //No need to check RemotingRole; no call to db.
     Crud.ElectIDCrud.Insert(electID);
 }
示例#5
0
        public static string Validate(Clearinghouse clearinghouseClin, Carrier carrier, Provider billProv, Clinic clinic, InsPlan insPlan, Patient subscriber, InsSub insSub, Patient patForRequest)
        {
            StringBuilder strb = new StringBuilder();

            X12Validate.ISA(clearinghouseClin, strb);
            X12Validate.Carrier(carrier, strb);
            if (carrier.ElectID.Length < 2)
            {
                if (strb.Length != 0)
                {
                    strb.Append(",");
                }
                strb.Append("Electronic ID");
            }
            if (billProv.SSN.Length != 9)
            {
                if (strb.Length != 0)
                {
                    strb.Append(",");
                }
                strb.Append("Prov TIN 9 digits");
            }
            X12Validate.BillProv(billProv, strb);
            if (PrefC.GetBool(PrefName.UseBillingAddressOnClaims))
            {
                X12Validate.BillingAddress(strb);
            }
            else if (clinic == null)
            {
                X12Validate.PracticeAddress(strb);
            }
            else
            {
                X12Validate.Clinic(clinic, strb);
            }
            if (insSub.SubscriberID.Length < 2)
            {
                if (strb.Length != 0)
                {
                    strb.Append(",");
                }
                strb.Append("SubscriberID");
            }
            if (subscriber.Birthdate.Year < 1880)
            {
                if (strb.Length != 0)
                {
                    strb.Append(",");
                }
                strb.Append("Subscriber Birthdate");
            }
            if (patForRequest.PatNum != subscriber.PatNum)           //Dependent validation.
            {
                if (patForRequest.Birthdate.Year < 1880)             //Dependent level validation.
                {
                    if (strb.Length != 0)
                    {
                        strb.Append(",");
                    }
                    strb.Append("Dependent Birthdate");
                }
            }
            ElectID eID = ElectIDs.GetID(carrier.ElectID);
            //Medicaid uses the patient First/Last/DOB to get benefits, not group number, so skip this validation if this is medicaid
            bool isMedicaid = (eID != null && eID.IsMedicaid) || carrier.CarrierName.ToLower().Contains("medicaid");

            if (!isMedicaid)
            {
                if (insPlan.GroupNum == "")
                {
                    if (strb.Length != 0)
                    {
                        strb.Append(",");
                    }
                    strb.Append("Group Number");
                }
            }
            //Darien at Dentalxchange helped us resolve one issue where the Group Number included a dash and was failing.
            //The fix suggested by Darien was to only include the numbers before the dash...  See task #705773
            if (IsClaimConnect(clearinghouseClin) && insPlan.GroupNum.Contains("-"))
            {
                if (strb.Length != 0)
                {
                    strb.Append(",");
                }
                strb.Append("Group Number: Only include the group number prior to the '-'");
            }
            return(strb.ToString());
        }
示例#6
0
文件: ElectIDs.cs 项目: mnisl/OD
		public static void Update(ElectID electID) {
			//No need to check RemotingRole; no call to db.
			Crud.ElectIDCrud.Update(electID);
		}
示例#7
0
文件: ElectIDs.cs 项目: mnisl/OD
		public static void Insert(ElectID electID) {
			//No need to check RemotingRole; no call to db.
			Crud.ElectIDCrud.Insert(electID);
		}