DARIAEngineering / dcaf_case_management

Rails-based case management system for abortion funds
MIT License
87 stars 245 forks source link

Create call list clearing rules for between shifts #666

Closed colinxfleming closed 7 years ago

colinxfleming commented 8 years ago

From a conversation between @mebates and the CM directors:

So what came up tonight was the many patients who are 'dormant' for days, weeks, or forever. We don't want to encourage CMs to keep calling PTs who don't give DCAF a call back, and leaving them on the list for the whole shift might do that. And what if you come back a month later and they're still there? Or 9 months?

@NerdyGirl537 seconded this.

Two things here: a) finding some way to discourage people from calling patients over and over again when they don't hear back. There may or may not be a programmatic way to do this -- I suspect that the solution here is training.

b) starting with a fresh call list when you hop on a fresh shift. This I think is doable -- as part of the cleanup task, clear users' call lists entirely if they haven't logged in for two weeks or so. I don't imagine there are that many cases where people take multiple shifts like that.

@NerdyGirl537 thoughts?

Spun out from #118 .

lwaldsc commented 8 years ago

I think clearing the call lists after a shift (while leaving the option to mark pts as urgent if they need to retain them in the list) will effectively take care of this. And don't urgent marks expire after 4 days?

On Sun, Oct 9, 2016 at 3:39 PM, Colin notifications@github.com wrote:

From a conversation between @mebates https://github.com/mebates and the CM directors https://github.com/colinxfleming/dcaf_case_management/issues/118#issuecomment-246886012:

So what came up tonight was the many patients who are 'dormant' for days, weeks, or forever. We don't want to encourage CMs to keep calling PTs who don't give DCAF a call back, and leaving them on the list for the whole shift might do that. And what if you come back a month later and they're still there? Or 9 months?

@NerdyGirl537 https://github.com/NerdyGirl537 seconded this.

Two things here: a) finding some way to discourage people from calling patients over and over again when they don't hear back. There may or may not be a programmatic way to do this -- I suspect that the solution here is training.

b) starting with a fresh call list when you hop on a fresh shift. This I think is doable -- as part of the cleanup task, clear users' call lists entirely if they haven't logged in for two weeks or so. I don't imagine there are that many cases where people take multiple shifts like that.

@NerdyGirl537 https://github.com/NerdyGirl537 thoughts?

Spun out from #118 https://github.com/colinxfleming/dcaf_case_management/issues/118 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/colinxfleming/dcaf_case_management/issues/666, or mute the thread https://github.com/notifications/unsubscribe-auth/AKFqsIHlqj63e8GmWWDeOEyApJvBeJdFks5qyUMOgaJpZM4KSFqi .

colinxfleming commented 8 years ago

Yeah, urgents patients are de-flagged after a couple of days of no action.

The task here is to add something to the User#clear_call_list method that will completely wipe a user's call list if User#last_sign_in_at was over two weeks ago. This, in turn, will cascade up to the rake task that we run nightly. (And to add a test for the method you write that does this, if you can!)

Marking backend/hacktoberfest.