I have report that I need to choose a range of eligibility records based on a date parameter. I would like to display the min start date and max end date for each period of eligibility if there is no status change and no break in consecutive months of coverage. I am using Crystal XI and Oracle 10g.
Here is an example of our data:
Mem ID Plan ID Start Dt End Dt Status
255099 1917486 10/01/2003 06/30/2004 A
255099 1917493 07/01/2004 03/31/2005 A
255099 1917518 04/01/2005 12/31/2005 A
255099 1917522 01/01/2006 01/31/2006 A
255099 1917526 02/01/2006 06/30/2006 A
255099 1917530 07/01/2006 08/31/2006 H
255099 3359315 12/01/2006 01/31/2007 H
255099 4093936 04/01/2007 12/31/2099 A
If I choose 03/31/2006 in my parameter it falls in the first period listed and then I need to display 10/01/2003 as the min start date and 06/30/2006 as the max end date. It should not include the next record of 07/01/2006 to 08/31/2006 since the status changed to "H". Can anyone help me with this?
Thanks
Here is an example of our data:
Mem ID Plan ID Start Dt End Dt Status
255099 1917486 10/01/2003 06/30/2004 A
255099 1917493 07/01/2004 03/31/2005 A
255099 1917518 04/01/2005 12/31/2005 A
255099 1917522 01/01/2006 01/31/2006 A
255099 1917526 02/01/2006 06/30/2006 A
255099 1917530 07/01/2006 08/31/2006 H
255099 3359315 12/01/2006 01/31/2007 H
255099 4093936 04/01/2007 12/31/2099 A
If I choose 03/31/2006 in my parameter it falls in the first period listed and then I need to display 10/01/2003 as the min start date and 06/30/2006 as the max end date. It should not include the next record of 07/01/2006 to 08/31/2006 since the status changed to "H". Can anyone help me with this?
Thanks