We have patients that change service types as the decease progress or regress. We would like to show only the last update for all the patients in our tabular result datapage.
Example data and logic below:
Member_ID 123 has 3 records with the update_dates = 01/01/2023 Service_type = Inactive, 05/01/2023 Service_type = Monitor and another record 11/01/2023 Service_type = Critical
Member_ID 231 has 1 record with the update_ dates = 02/01/2023 Service_type = Monitor
Member_ID 456 has 2 records with the update_ dates = 06/01/2023 Service_type = Monitor and another record 11/01/2023 Service_type = Critical
If we run the report for the current date 11/30/2023 the results should show
Member ID Last update Service Type
123 11/01/2023 Critical
231 02/01/2023 Monitor
456 11/01/2023 Critical
But if we ran a date rage of <=07/01/2023 the result should be as follows
Member ID Last update Service Type
123 05/01/2023 Monitor (Since this is the last record < the defined date range)
231 02/01/2023 Monitor
456 06/01/2023 Monitor (Since this is the last record < the defined date range)
I hope I can get some assistance on this. Thank you!
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Jarmizee
We have patients that change service types as the decease progress or regress. We would like to show only the last update for all the patients in our tabular result datapage.
Example data and logic below:
Member_ID 123 has 3 records with the update_dates = 01/01/2023 Service_type = Inactive, 05/01/2023 Service_type = Monitor and another record 11/01/2023 Service_type = Critical
Member_ID 231 has 1 record with the update_ dates = 02/01/2023 Service_type = Monitor
Member_ID 456 has 2 records with the update_ dates = 06/01/2023 Service_type = Monitor and another record 11/01/2023 Service_type = Critical
If we run the report for the current date 11/30/2023 the results should show
Member ID Last update Service Type
123 11/01/2023 Critical
231 02/01/2023 Monitor
456 11/01/2023 Critical
But if we ran a date rage of <=07/01/2023 the result should be as follows
Member ID Last update Service Type
123 05/01/2023 Monitor (Since this is the last record < the defined date range)
231 02/01/2023 Monitor
456 06/01/2023 Monitor (Since this is the last record < the defined date range)
I hope I can get some assistance on this. Thank you!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.