public static InsuranceInfo AddInsurance(Patient pat, string carrierName, string planType = "", long feeSchedNum = 0, int ordinal = 1, bool isMedical = false, EnumCobRule cobRule = EnumCobRule.Basic, long copayFeeSchedNum = 0) { Carrier carrier = CarrierT.CreateCarrier(carrierName); InsPlan plan = InsPlanT.CreateInsPlan(carrier.CarrierNum, cobRule); InsPlan planOld = plan.Copy(); plan.PlanType = planType; plan.FeeSched = feeSchedNum; plan.IsMedical = isMedical; plan.CopayFeeSched = copayFeeSchedNum; InsPlans.Update(plan, planOld); InsSub sub = InsSubT.CreateInsSub(pat.PatNum, plan.PlanNum); PatPlan patPlan = PatPlanT.CreatePatPlan((byte)ordinal, pat.PatNum, sub.InsSubNum); return(new InsuranceInfo { ListCarriers = new List <Carrier> { carrier }, ListInsPlans = new List <InsPlan> { plan }, ListInsSubs = new List <InsSub> { sub }, ListPatPlans = new List <PatPlan> { patPlan }, }); }
///<summary>Creats an insurance plan with the default fee schedule of 53.</summary> public static InsPlan CreateInsPlanPPO(long carrierNum,long feeSchedNum, EnumCobRule cobRule){ InsPlan plan=new InsPlan(); plan.CarrierNum=carrierNum; plan.PlanType="p"; plan.FeeSched=feeSchedNum; plan.CobRule=cobRule; InsPlans.Insert(plan); return plan; }
public static InsuranceInfo AddInsurance(Patient pat, string carrierName, string planType = "", long feeSchedNum = 0, int ordinal = 1, bool isMedical = false, EnumCobRule cobRule = EnumCobRule.Basic, long copayFeeSchedNum = 0, int monthRenew = 0, string subscriberID = "1234", ExclusionRule exclusionRule = ExclusionRule.PracticeDefault) { InsuranceInfo ins = new InsuranceInfo(); ins.AddInsurance(pat, carrierName, planType, feeSchedNum, ordinal, isMedical, cobRule, copayFeeSchedNum, monthRenew, subscriberID, exclusionRule); return(ins); }
///<summary>Creats an insurance plan with the default fee schedule of 53.</summary> public static InsPlan CreateInsPlanPPO(long carrierNum, long feeSchedNum, EnumCobRule cobRule) { InsPlan plan = new InsPlan(); plan.CarrierNum = carrierNum; plan.PlanType = "p"; plan.FeeSched = feeSchedNum; plan.CobRule = cobRule; InsPlans.Insert(plan); return(plan); }
///<summary>Creates an insurance plan with the default fee schedule of 53.</summary> public static InsPlan CreateInsPlan(long carrierNum, EnumCobRule cobRule = EnumCobRule.Basic, long feeSched = 53, long allowedFeeSched = 0, long copayFeeSched = 0, bool isMedical = false, string groupNum = "") { InsPlan plan = new InsPlan(); plan.CarrierNum = carrierNum; plan.PlanType = ""; plan.FeeSched = feeSched; plan.AllowedFeeSched = allowedFeeSched; plan.CopayFeeSched = copayFeeSched; plan.CobRule = cobRule; plan.IsMedical = isMedical; plan.GroupNum = groupNum; InsPlans.Insert(plan); return(plan); }
public void AddInsurance(Patient pat, string carrierName, string planType = "", long feeSchedNum = 0, int ordinal = 1, bool isMedical = false, EnumCobRule cobRule = EnumCobRule.Basic, long copayFeeSchedNum = 0, int monthRenew = 0, string subscriberID = "1234", ExclusionRule exclusionRule = ExclusionRule.PracticeDefault) { Carrier carrier = CarrierT.CreateCarrier(carrierName); InsPlan plan = InsPlanT.CreateInsPlan(carrier.CarrierNum, cobRule); InsPlan planOld = plan.Copy(); plan.PlanType = planType; plan.MonthRenew = (byte)monthRenew; plan.FeeSched = feeSchedNum; plan.IsMedical = isMedical; plan.CopayFeeSched = copayFeeSchedNum; plan.ExclusionFeeRule = exclusionRule; InsPlans.Update(plan, planOld); InsSub sub = InsSubT.CreateInsSub(pat.PatNum, plan.PlanNum, subscriberID); PatPlan patPlan = PatPlanT.CreatePatPlan((byte)ordinal, pat.PatNum, sub.InsSubNum); ListCarriers.Add(carrier); ListInsPlans.Add(plan); ListInsSubs.Add(sub); ListPatPlans.Add(patPlan); Pat = pat; }
public static void UpdateCobRuleForAll(EnumCobRule cobRule) { if(RemotingClient.RemotingRole==RemotingRole.ClientWeb) { Meth.GetVoid(MethodBase.GetCurrentMethod(),cobRule); return; } string command="UPDATE insplan SET CobRule="+POut.Int((int)cobRule); Db.NonQ(command); }