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

Discharged Patient status showing as "live" #9289

Open
samholics opened this issue Dec 4, 2024 · 9 comments · May be fixed by #9415
Open

Discharged Patient status showing as "live" #9289

samholics opened this issue Dec 4, 2024 · 9 comments · May be fixed by #9415
Assignees
Labels

Comments

@samholics
Copy link

samholics commented Dec 4, 2024

Describe the bug
Discharged patient Status showing as Live for some patients. its happening for the patient having multiple consultations filed. Also it not happening for all the patients

reported by karnataka state official and arike staffs

To Reproduce
Steps to reproduce the behavior:

  1. Go to discharged patient on staging website
  2. Click on Patient "Raw" or Ritwik Nishad" ( facility - Gayan's Hospital)
  3. Go to Patient Details page
  4. See error

Expected behavior
Status should be showing as Discharged for the discharged patients

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@JavidSumra
Copy link
Contributor

Can you please assign this issue to me?

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 4, 2024
@Jacobjeevan Jacobjeevan added P1 breaking issue or vital feature bug Something isn't working labels Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

⚠️ Refrain from assigning this issue to yourself if you have another P1 issue assigned that is not yet closed.

@Jacobjeevan Jacobjeevan added this to Care Dec 4, 2024
@github-project-automation github-project-automation bot moved this to Triage in Care Dec 4, 2024
@Jacobjeevan
Copy link
Contributor

@JavidSumra Can you open a PR before EOD?

@JavidSumra
Copy link
Contributor

Yup I'll do that

@Jacobjeevan Jacobjeevan removed question Further information is requested needs-triage labels Dec 4, 2024
@JavidSumra
Copy link
Contributor

JavidSumra commented Dec 4, 2024

Hey @Jacobjeevan, I've looked into the issue, and it seems to be with the backend. When fetching the response for a particular discharged patient, the is_active flag is incorrectly set to true. Additionally, there are missing fields value such as "new_discharge_reason", "discharge_notes", "discharge_prescription", and "discharge_prn_prescription". To address this, we could pass a parameter in the URL to indicate whether it's the discharged patient page or not.

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 4, 2024
@Jacobjeevan Jacobjeevan removed question Further information is requested needs-triage labels Dec 4, 2024
@Jacobjeevan Jacobjeevan moved this from Triage to In Progress in Care Dec 4, 2024
@nihal467 nihal467 changed the title !!!!!! Discharged Patient status showing as "live" !!!!! Discharged Patient status showing as "live" Dec 4, 2024
@nihal467
Copy link
Member

nihal467 commented Dec 9, 2024

@samholics The issue arises because the patient is marked as "live" on the patient details page due to their admission to another facility. Since you are accessing the page as admin, you can view the details. However, ideally, once a patient is discharged, the patient details page should not be accessible to staff members

This problem occurs because the patient details page is shared across CARE and is not specific to a particular facility.

To address this, we need to define the ideal behavior. Some potential solutions include:

  • Removing the "live" status badge from the patient details page.
  • Updating the "live" badge to display the name of the current live facility, providing more context.

Or Exploring other approaches to better align the page behavior with the expected workflows after discussing with the users and product teams, meanwhile I am blocking this issue and assigning it to you

@nihal467 nihal467 assigned samholics and unassigned JavidSumra Dec 9, 2024
@nihal467 nihal467 added the question Further information is requested label Dec 9, 2024
@rithviknishad rithviknishad removed P1 breaking issue or vital feature bug Something isn't working labels Dec 9, 2024
@samholics
Copy link
Author

@aparnacoronasafe need your suggestion on this issue.
@nihal467 But I do have doubts about the ideal scenario that u mentioned here, if the users /staff are not allowed to access the patient details page when patient is discharged then how they are going to see patients' demographic details, encounters on other facilities, allow or disable transer etc. ??

@aparnacoronasafe
Copy link
Member

Let's remove the "live" badge from patient details and add it against the specific encounter listed in the patient details page.

@nihal467 nihal467 added P2 and removed question Further information is requested needs-triage labels Dec 13, 2024
@AdityaJ2305 AdityaJ2305 linked a pull request Dec 14, 2024 that will close this issue
6 tasks
@AdityaJ2305
Copy link
Contributor

Hey @nihal467 @Jacobjeevan , I’ve created a pull request for it. Could you assign it to me and review it?

@github-actions github-actions bot added needs-triage question Further information is requested labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Progress
7 participants