-
Notifications
You must be signed in to change notification settings - Fork 434
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
Comments
Who need this sort? |
This sorting was introduced after request from TeleICU Hubs to allow doctors to see the most severe cases on top |
@aparnacoronasafe we can make it a filter, sorting doesn't make sense, can you specify the use case. |
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. |
What's the status with this? @bodhish @rithviknishad ? |
Keeping it on hold; |
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
Expected behavior
Actively dying → Critical → Moderate → Mild → Comfort Care
Comfort Care → Mild → Moderate → Critical → Actively dying.
Screenshots
The text was updated successfully, but these errors were encountered: