Hello everybody:
I need to count the active patients per provider on a 12 month bucket (Jan - Dec). The patient table has 2 fields: StartEffDate(Start Effective Date) and EndEffDate (Termination Date).
Example: Start End
01/01/2003 03/15/2003--> add 1 to jan,feb,mar
01/01/2003 12/31/9999--> add 1 to jan - dec
05/01/2003 05/31/2003--> add 1 to may
06/15/2003 08/15/2003--> add 1 to jun,jul,aug
06/01/2002 12/31/9999--> add 1 to jan - dec
From the example above, a patient can be counted active even if its a partial membership for a month. Active patients has termination date of 12/31/9999 instead of null or zero.
Any help is highly appreciated.
Thank you.
I need to count the active patients per provider on a 12 month bucket (Jan - Dec). The patient table has 2 fields: StartEffDate(Start Effective Date) and EndEffDate (Termination Date).
Example: Start End
01/01/2003 03/15/2003--> add 1 to jan,feb,mar
01/01/2003 12/31/9999--> add 1 to jan - dec
05/01/2003 05/31/2003--> add 1 to may
06/15/2003 08/15/2003--> add 1 to jun,jul,aug
06/01/2002 12/31/9999--> add 1 to jan - dec
From the example above, a patient can be counted active even if its a partial membership for a month. Active patients has termination date of 12/31/9999 instead of null or zero.
Any help is highly appreciated.
Thank you.