Hi Folks,
I am trying to find out how many times a person switched from Medicaid to Non-Medicaid Status and visa-versa for a non-profit government agency. I have filtered the data to show three fields: Client_Indentifier, Effective_Date, and Medicaid_Status (either flagged as MCD or NON). Each row is unique, and the data is sorted by Client_Identifier and then by Effective_Date. In attempting to arrive at the number of times an individual has switched between Medicaid (MCD) and Non-Medicaid (NON) Status, the problem is that sometimes Medicaid (MCD) spans are found back-to-back since the data must be sorted by Effective_Date and it offers occurs that there is a lapse in spans when dealing with Medicaid. I would like to ignore incidences where Medicaid spans are back-to-back, as the individual never truly switched between Medicaid/Non-Medicaid but just had a break of service in his/her Medicaid span. Is there any way to do this? Any help would be greatly appreciated. If I can't use a query to do this, would code be able to do it?
Thank you,
Joe
I am trying to find out how many times a person switched from Medicaid to Non-Medicaid Status and visa-versa for a non-profit government agency. I have filtered the data to show three fields: Client_Indentifier, Effective_Date, and Medicaid_Status (either flagged as MCD or NON). Each row is unique, and the data is sorted by Client_Identifier and then by Effective_Date. In attempting to arrive at the number of times an individual has switched between Medicaid (MCD) and Non-Medicaid (NON) Status, the problem is that sometimes Medicaid (MCD) spans are found back-to-back since the data must be sorted by Effective_Date and it offers occurs that there is a lapse in spans when dealing with Medicaid. I would like to ignore incidences where Medicaid spans are back-to-back, as the individual never truly switched between Medicaid/Non-Medicaid but just had a break of service in his/her Medicaid span. Is there any way to do this? Any help would be greatly appreciated. If I can't use a query to do this, would code be able to do it?
Thank you,
Joe