codeforamerica / rva-screening

Health service prescreener for sharing patient eligibility data.
http://quickscreenrva.com
BSD 3-Clause "New" or "Revised" License
11 stars 8 forks source link

Prevent duplicate referrals #181

Closed esmithayer closed 8 years ago

esmithayer commented 9 years ago

Right now, the "share patient" page has nothing to indicate whether a patient has already been referred to a particular service, and clicking a button multiple times will create multiple referrals in the database.

We should probably prevent this, but there's some room for interpretation. Should we prevent the user from creating a referral:

mapsam commented 9 years ago

All good questions. I like the idea that a referral can't be made again until someone on the other end has marked it as "confirmed". I'm not sure how this interaction would work though.

What if we, for the sake of this week, say when the last referral to that particular service was next to the share/notify button? This notice would show up for any user within the service that made the referral, rather than just for that specific user.

For example: user A from clinic 1 sends a referral to clinic 2. User B from clinic 1 logs in later, and if they went to the same patient's profile to share it would say user 1 shared with clinic 2 last week. Furthermore, any user from clinic 2 would log in and see the referral from user A at clinic 1. Once a user from clinic 2 checks it as "confirmed", the referral action becomes available again for any user at clinic 1.

Cripes, does that make any sense?

mapsam commented 8 years ago

Currently the application says "view the open referral", instead of allowing for duplicates.

screen shot 2015-11-17 at 9 24 32 am