For complex topics that regular users would not be interested in. For power users and database administrators.
-
steveng
- Posts: 49
- Joined: Mon Jun 18, 2007 7:41 pm
- Location: New York
Post
by steveng » Tue Apr 28, 2009 5:15 pm
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.
-
steveng
- Posts: 49
- Joined: Mon Jun 18, 2007 7:41 pm
- Location: New York
Post
by steveng » Fri May 08, 2009 8:02 am
Did you had a chance to look at it?
Thanks,
Steven G.
-
jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
-
Contact:
Post
by jordansparks » Fri May 08, 2009 8:27 pm
It's been added to the bug list until I have time to review it.
-
jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
-
Contact:
Post
by jordansparks » Fri May 15, 2009 4:14 am
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.
-
steveng
- Posts: 49
- Joined: Mon Jun 18, 2007 7:41 pm
- Location: New York
Post
by steveng » Wed May 20, 2009 12:00 pm
That's great news. I see you point.
Thanks,
Steven G.