Jonathan212
IS-IT--Management
I have a report that displays surgery cases that were scheduled (“datebooked”) AND completed (“datecompleted”) in the same week to identify any cases that were scheduled (and missed) after a report “run” date. The “run” date we are always using is the Friday afternoon of every week.
Here is an example of cases we might miss:
Scheduled Cases report “run” on 7/20/2007
New Case #123 added on 7/24/2007
Case #123 completed on 7/26/2007
The report run on 7/27/2007 would not capture Case #123 as a scheduled case (only as a completed case when we run a completed case report).
The problem for the Researchers is that although they eventually see that a case was done (when they run a completed surgery report) they have no record of the particular case in their scheduled surgery registry. The Researchers want to load information into their scheduled surgery registry even though the case was already done. Naturally, some loopholes could be closed if the scheduled surgery report was run several times every day, but that is not going to happen.
Therefore, to at least identify cases scheduled and done in the same week I created two parameter values “datebooked’ and “datecompleted”. The same date ranges must be entered for both parameters (for example, “7/23/2007 to “7/27/2007”). This works fine.
Is there a way to do this for multiple time periods, using perhaps a datediff formula or some other formula. As an example, without having to run the report multiple times to find out cases scheduled and done in the following weeks:
7/9/2007 to 7/13/2007
7/16/2007 to 7/20/2007
7/23/2007 to 7/27/2007
I am using Crystal Reports 10.
Thanks in advance for any ideas.
Jonathan
Here is an example of cases we might miss:
Scheduled Cases report “run” on 7/20/2007
New Case #123 added on 7/24/2007
Case #123 completed on 7/26/2007
The report run on 7/27/2007 would not capture Case #123 as a scheduled case (only as a completed case when we run a completed case report).
The problem for the Researchers is that although they eventually see that a case was done (when they run a completed surgery report) they have no record of the particular case in their scheduled surgery registry. The Researchers want to load information into their scheduled surgery registry even though the case was already done. Naturally, some loopholes could be closed if the scheduled surgery report was run several times every day, but that is not going to happen.
Therefore, to at least identify cases scheduled and done in the same week I created two parameter values “datebooked’ and “datecompleted”. The same date ranges must be entered for both parameters (for example, “7/23/2007 to “7/27/2007”). This works fine.
Is there a way to do this for multiple time periods, using perhaps a datediff formula or some other formula. As an example, without having to run the report multiple times to find out cases scheduled and done in the following weeks:
7/9/2007 to 7/13/2007
7/16/2007 to 7/20/2007
7/23/2007 to 7/27/2007
I am using Crystal Reports 10.
Thanks in advance for any ideas.
Jonathan