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

Severity Based Sort By in patient list page is malfunctioning #8634

Open
nihal467 opened this issue Sep 26, 2024 · 6 comments
Open

Severity Based Sort By in patient list page is malfunctioning #8634

nihal467 opened this issue Sep 26, 2024 · 6 comments

Comments

@nihal467
Copy link
Member

Describe the bug

When sorting the patient list by "High severity" or "Lowest Severity," the cards are currently being sorted based on the patient category from the initial consultation form. However, the sorting should be done using the most recent patient category from the log updates, if available.

Context: The patient category is assigned during the creation of a patient consultation, but it can be updated later through the log update functionality. When sorting the patient list, the system should first check if any log updates exist for a patient. If a log update is present, the patient should be sorted based on the category in the latest log update. If no log update exists, the category from the consultation form should be used for sorting.

To Reproduce
Steps to reproduce the behavior

Create a patient

  1. Go to patient tab and create a new patient
  2. Once you successfully created a patient , in the patient dashboard click on the log update button
  3. then create a new log update with different patient category mentioned from consultation
  4. submit the form and return back the patient tab
  5. apply the sort by based on high severity
  6. See error

Expected behavior

  • When sorting by "High severity," the order should be:
    Actively dying → Critical → Moderate → Mild → Comfort Care
  • For sorting by "Lowest Severity," the order should be the reverse:
    Comfort Care → Mild → Moderate → Critical → Actively dying.

Screenshots

image

@nihal467 nihal467 added the bug Something isn't working label Sep 26, 2024
@bodhish
Copy link
Member

bodhish commented Sep 26, 2024

Who need this sort?

@aparnacoronasafe
Copy link
Member

This sorting was introduced after request from TeleICU Hubs to allow doctors to see the most severe cases on top

@bodhish
Copy link
Member

bodhish commented Sep 26, 2024

@aparnacoronasafe we can make it a filter, sorting doesn't make sense, can you specify the use case.

@aparnacoronasafe
Copy link
Member

I still think severity wise sorting is needed. The doctors in 1 glance would want to know how many severe patients are there and so on.

@rithviknishad rithviknishad removed the bug Something isn't working label Oct 21, 2024
@Jacobjeevan
Copy link
Contributor

What's the status with this? @bodhish @rithviknishad ?

@bodhish
Copy link
Member

bodhish commented Oct 21, 2024

Keeping it on hold;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Triage
Development

No branches or pull requests

5 participants