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

Incorrect representation of Patient Age #7383

Closed
6 of 9 tasks
rithviknishad opened this issue Mar 11, 2024 · 6 comments · Fixed by #7411
Closed
6 of 9 tasks

Incorrect representation of Patient Age #7383

rithviknishad opened this issue Mar 11, 2024 · 6 comments · Fixed by #7411
Assignees
Labels
Backend Frontend P1 breaking issue or vital feature urgent

Comments

@rithviknishad
Copy link
Member

rithviknishad commented Mar 11, 2024

Describe the bug
Incorrect representation of Age in Patient Home

Issues Identified

  • DB has 3 fields: age, year_of_birth, date_of_birth.
  • Age calculation is not using timezone.now() in the model save method.
  • Possible issue with formatAge utility method in FE. cc: @Ashesh3
image

Action Items in Backend

  • Drop field age from patient registration in favour of year_of_birth
  • Add serializer field: age_in_days
  • Age should be the number of days between (date of birth/year of birth) and (date of death/today).
  • Filters to be based on year_of_birth instead of age.

Action Items in Front-end

  • Support for collecting year of birth alone as an alternative to date of birth.
  • Update filters to be based on year of birth instead of age.

Screenshots
image

cc: @nihal467 @sainak

@Ashesh3
Copy link
Member

Ashesh3 commented Mar 11, 2024

Interesting, could you add the link of the patient which is being shown in the attached screenshot?

@rithviknishad
Copy link
Member Author

@Ashesh3 from production... That's why hid most of the irrelevant details. @nihal467 has tested in staging, but unable to reproduce.

@manasvi-gaur
Copy link
Contributor

@rithviknishad, can you please assign this to me?

@rithviknishad rithviknishad moved this from Triage to Up Next in Care Mar 11, 2024
@rash-27
Copy link
Contributor

rash-27 commented Mar 11, 2024

I would like to work on this issue

Copy link

⚠️ Refrain from assigning this issue to yourself if you have another P1 issue assigned that is not yet closed.
@rithviknishad @rash-27 kindly acknowledge this message by commenting 'Acknowledged' below.

@dwip708
Copy link

dwip708 commented Mar 11, 2024

Hi, can I work on this issue ? @rithviknishad
I am interested to work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Frontend P1 breaking issue or vital feature urgent
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants