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 date in patient dashboard #5315

Closed
8 tasks
aparnacoronasafe opened this issue Apr 10, 2023 · 1 comment · Fixed by #5333
Closed
8 tasks

Discharged date in patient dashboard #5315

aparnacoronasafe opened this issue Apr 10, 2023 · 1 comment · Fixed by #5333
Assignees
Labels
P1 breaking issue or vital feature

Comments

@aparnacoronasafe
Copy link
Member

Describe the bug
When a patient is discharged with discharge reason as anything other than recovered,
the discharged patients dashboard shows discharge date as Current date and not the discharge date mentioned in the discharge pop up window.

Eg:
https://care.coronasafe.in/facility/4f885b99-9557-45b6-b696-0a851393dcdf/patient/931fdc5b-d460-4209-b11b-0576e74f78ae/consultation/06f7f97f-3111-4016-9d97-c276c6068cc7

The patient was discharged from CARE on 10/04/2023 by providing the following details in the discharge pop-up form:
Discharge reason: expired
date of death: 03/04/2023

Yet the patients' dashboard shows "Discharged on 10/04/2023"
Screenshot 2023-04-10 at 10 51 34 PM

To Reproduce
Steps to reproduce the behavior:

  1. Go to any patient
  2. Click on "Discharge from CARE"
  3. in reason for discharge, mention anything but recovered
  4. and give any date other than current date in date of discharge

Expected behavior
The date provided in the pop-up discharge form must appear on the patient dashboard as the discharge date

To-Do

When the discharge reason is expired,

Screenshot 2023-04-10 at 11 00 24 PM

- [ ] Add data validation to the date field in the discharge pop-up form: the date cannot be before the Admission date if there is an admission date (if not, date of consultation filed) or after the current date. Allow date of consultation/ Admission date.

When the discharge reason is referred,

  • the patient dashboard to show "Admitted on XYZ, discharged on DD/MM/YYYY(date given in the pop up discharge form)"
  • In the Discharge details card in the patient dashboard, rename date to "discharge date and show the date given in the pop up discharge form
  • In data validation to the date field in the discharge pop-up form: the date cannot be before the admission date (if there is no admission date, then date of Consultation filed )or after the current date. Allow date of consultation/ Admission date.

When the discharge reason is LAMA,

  • the patient dashboard to show "Admitted on XYZ, discharged on DD/MM/YYYY(date given in the pop up discharge form)"
  • In the Discharge details card in the patient dashboard, rename date to "discharge date and show the date given in the pop up discharge form"
  • In data validation to the date field in the discharge pop-up form: the date cannot be before the admission date (if there is no admission date, then the date of Consultation filed )or after the current date. Allow date of consultation/ Admission date.
@aparnacoronasafe aparnacoronasafe added the P1 breaking issue or vital feature label Apr 10, 2023
@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 breaking issue or vital feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants