Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support for viewing discharged patients of a facility #7148

Merged
merged 9 commits into from
Mar 4, 2024

Conversation

rithviknishad
Copy link
Member

Required Backends

Proposed Changes

image image

@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers

Merge Checklist

  • Add specs that demonstrate bug / test a new feature.
  • Update product documentation.
  • Ensure that UI text is kept in I18n files.
  • Prep screenshot or demo video for changelog entry, and attach it to issue.
  • Request for Peer Reviews
  • Completion of QA

Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for care-egov-staging ready!

Name Link
🔨 Latest commit 6623d03
🔍 Latest deploy log https://app.netlify.com/sites/care-egov-staging/deploys/65ded65680a4bd0008078dc7
😎 Deploy Preview https://deploy-preview-7148--care-egov-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

vercel bot commented Feb 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
care-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 28, 2024 6:45am

Copy link

cypress bot commented Feb 1, 2024

Passing run #2187 ↗︎

0 111 0 0 Flakiness 0

Details:

Adds support for viewing discharged patients of a facility
Project: CARE Commit: 6623d038ed
Status: Passed Duration: 03:42 💡
Started: Feb 28, 2024 6:48 AM Ended: Feb 28, 2024 6:52 AM

Review all test suite changes for PR #7148 ↗︎

@nihal467
Copy link
Member

nihal467 commented Feb 6, 2024

image

  • a discharge patient file is trying to be accessed by a staff , but he is not able to see the details, because the patient is already admitted in another facility as live patient

is this expected behaviour @rithviknishad

@rithviknishad rithviknishad force-pushed the discharged-facility-patients branch from 2764f0e to 76071ff Compare February 7, 2024 13:45
@rithviknishad
Copy link
Member Author

rithviknishad commented Feb 7, 2024

@nihal467 unable to reproduce.

I've admitted a previously discharged patient of "Critical Care" patient named "James Gunn" to "James Assets" facility (so he is a live patient).

I'm still able to access the patient from the discharged patients view of "Critical Care"

image image

@rithviknishad
Copy link
Member Author

rithviknishad commented Feb 12, 2024

As per discussions, the following changes will be made to the permissions:

Patient Registration Permission

Current:
If a patient is readmitted to a different facility, the users of the previous consultation's facility cannot access those patient details.

New:
If the user belongs to one of the facilities where the patient has ever had a consultation, they can read the "Patient Registration" details.

Consultation History

Current:
If a patient has access to the patient details page, they can "read" older consultations even if those consultations may not be part of the latest facility of the patient. I.e., If a patient is readmitted to a different facility, users of the latest facility can "view" all the consultations regardless of which facility the previous consultations belong to.

New:
Possible solutions:

  • Allow users who have access to view the patient details to also be able to view all previous consultations regardless of which facility the previous consultations belonged to.
  • Allow users to view all consultation history (regardless of facility) if the active/latest consultation belongs to the facility that the user belongs to. However, if the user belongs to a facility which is not the latest consultation facility, they won't have permission to view consultations that took part in other facilities of the patient. (This could lead to confusion to the user as they'll loose access to the full consultation history once the patient is readmitted to a different facility).

@aparnacoronasafe to comment on which solution to go with.

@aparnacoronasafe
Copy link

aparnacoronasafe commented Feb 20, 2024

Discussed this with @rithviknishad over slack.

Notes from discussion:
Screenshot 2024-02-20 at 10 03 20 AM

@nihal467 while testing, test for all these

  1. Home and remote user: live patient, see all prev consultation across all hospitals
  2. Home user: discharged patient- can see patient details and all consultation from that hospital (NOT other hospitals)
  3. Remote user: discharged patient- can only see patient details and no consultations

@rithviknishad rithviknishad marked this pull request as ready for review February 23, 2024 14:29
@rithviknishad rithviknishad requested review from Ashesh3 and removed request for Ashesh3 February 23, 2024 14:29
@nihal467
Copy link
Member

LGTM

@khavinshankar khavinshankar merged commit cd23b66 into develop Mar 4, 2024
61 of 63 checks passed
@khavinshankar khavinshankar deleted the discharged-facility-patients branch March 4, 2024 13:39
Copy link

github-actions bot commented Mar 4, 2024

@rithviknishad Your efforts have helped advance digital healthcare and TeleICU systems. 🚀 Thank you for taking the time out to make CARE better. We hope you continue to innovate and contribute; your impact is immense! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access to discharged patient file
5 participants