Treatment finder query report

For complex topics that regular users would not be interested in. For power users and database administrators.
Post Reply
User avatar
steveng
Posts: 49
Joined: Mon Jun 18, 2007 7:41 pm
Location: New York

Treatment finder query report

Post by steveng »

There is a minor assumption that is not performing right....
The query assumes calendar year while some patients have fiscal year coverage and thus their figures are showing zeros for annual maximum and everything else is not falling in the right places thereafter. Please comment out line for calendar year in FormRpTreatmentFinder.cs :

Code: Select all

INSERT INTO tempannualmax
SELECT benefit.PlanNum, benefit.MonetaryAmt
FROM benefit, covcat
WHERE covcat.CovCatNum = benefit.CovCatNum
AND benefit.BenefitType = 5 /* limitation */
/*****************************************************************
AND benefit.TimePeriod = 2 /* calendar year */
*****************************************************************/
AND covcat.EbenefitCat=1
AND benefit.MonetaryAmt <> 0
GROUP BY benefit.PlanNum
ORDER BY benefit.PlanNum;
Thanks,
Steven G.
User avatar
steveng
Posts: 49
Joined: Mon Jun 18, 2007 7:41 pm
Location: New York

Re: Treatment finder query report

Post by steveng »

Did you had a chance to look at it?
Thanks,
Steven G.
User avatar
jordansparks
Site Admin
Posts: 5776
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Treatment finder query report

Post by jordansparks »

It's been added to the bug list until I have time to review it.
Jordan Sparks, DMD
http://www.opendental.com
User avatar
jordansparks
Site Admin
Posts: 5776
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Treatment finder query report

Post by jordansparks »

OK, I made the suggested change. So at least there will be more patients coming up on the list. But the amount used and remaining will still not be accurate since they are calculated on calendar year. There is no simple solution. There is a solution which is quite complex, and we'll look into that at some point.
Jordan Sparks, DMD
http://www.opendental.com
User avatar
steveng
Posts: 49
Joined: Mon Jun 18, 2007 7:41 pm
Location: New York

Re: Treatment finder query report

Post by steveng »

That's great news. I see you point.
Thanks,
Steven G.
Post Reply