FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
Describe the bug
In the patient age registration calendar within the application, leap years are not being accounted for when calculating the age of patients.After registering a patient in a leap year their age is shown as a day short and sometimes a month short.
To Reproduce
Steps to reproduce the behavior:
Login to any of the apps
Add a patient enter any age (Click Date of Birth unknown and enter age in years)
Save
Expected behavior
Age displayed should be equal to that user had input in the form
Describe the bug In the patient age registration calendar within the application, leap years are not being accounted for when calculating the age of patients.After registering a patient in a leap year their age is shown as a day short and sometimes a month short.
To Reproduce Steps to reproduce the behavior:
Expected behavior Age displayed should be equal to that user had input in the form
https://github.com/opensrp/fhircore/assets/29072646/455da3f1-9a94-4cf8-8882-593d32e48788