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

Pain Scale (0-10) #7378

Closed
aparnacoronasafe opened this issue Mar 11, 2024 · 9 comments · Fixed by #7380
Closed

Pain Scale (0-10) #7378

aparnacoronasafe opened this issue Mar 11, 2024 · 9 comments · Fixed by #7380
Assignees

Comments

@aparnacoronasafe
Copy link
Member

Is your feature request related to a problem? Please describe.
https://care.coronasafe.in/facility/0c95c7f0-e1d2-4aff-83fa-933cef60d3a8/patient/7e8fc20f-02da-47f7-8c33-f2d8c7e52dd8/consultation/cb44a173-6fe2-452f-b2d1-6c6e2695411e/daily_rounds/8e4d0791-30d4-4e5d-8ca4-f6e27abb6418/update

Currently the pain scale in CARE is from 0-5.

Change it to 0-10 to allow user to input a more nuanced measure of pain experienced by the patient.

@github-project-automation github-project-automation bot moved this to Triage in Care Mar 11, 2024
@aparnacoronasafe aparnacoronasafe added the good first issue Good for newcomers label Mar 11, 2024
@rithviknishad
Copy link
Member

@aparnacoronasafe should we also be updating the existing data to scale accordingly?

For example, if old data is 5, should it be updated to 10?

@shivankacker
Copy link
Member

Recording.2024-03-11.153229.mp4

Pain below 2 is being shown in red, then green, then once again red after 5. @aparnacoronasafe can you also tell if this coloring should be changed?

Ill take up the issue because I am already working on the preview UI for this

@shivankacker shivankacker self-assigned this Mar 11, 2024
@leftover19
Copy link

The slider corresponds to pain. I have few suggestions to make.

  1. Instead of Low, Normal and High labels, we can change it to Normal, Mild and High.
  2. In that regard, Color of Low can be Green, Mild can be Yellow, and High ( or severe) can be Red.
  3. 0-2 Normal 3-6 Mild 7 - 10 High ( or severe )
    If this is acceptable, I can raise a PR.
    Let me know if there's any issue

@aparnacoronasafe
Copy link
Member Author

Great suggestions guys!

@rithviknishad yes, the existing entries needs to be adjusted against scale of 0-10. So previously entered "2" will become 4.

@leftover19 Good suggestion. However, one change I want to suggest is to have description of pain as "Low, mild and high". "Normal" in the context of pain is not logical.

0-3- Low (Green)
3-7- Mild (Yellow)
8-10- High (Red)

@skks1212 Please go ahead with the above.

@rithviknishad rithviknishad moved this from Triage to Up Next in Care Mar 12, 2024
@leftover19
Copy link

Solution.mp4
I have raised a PR for the same. Please review. Thanks

@rithviknishad
Copy link
Member

@leftover19 needs changes to be made in the backend for:

the existing entries needs to be adjusted against scale of 0-10. So previously entered "2" will become 4.

@leftover19
Copy link

leftover19 commented Mar 12, 2024

@leftover19 needs changes to be made in the backend for existing entries.

Can you please guide how?
Do I need to raise PR in Backend repository?
or what exactly do I need to do here?

@rithviknishad
Copy link
Member

Yup, you need to create a custom migration to migrate existing data and raise a PR in that repository.

@shivankacker
Copy link
Member

@leftover19 thank you for your inputs, but I would recommend having a look at the issue assignees and history before assigning an issue to yourself and raising a PR. Now there will be a duplicate PRs for this issue🙂

Keep this in mind from next time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
4 participants