Dear devs,
I am looking at the query logged at openmrs-module-reporting/HibernateCohortQueryDAO.java at 0.9.9 · openmrs/openmrs-module-reporting · GitHub and it appears as if certain birthdates appear in multiple age dimensions. For example, the below logs are for age groups 35-39 and 40-44:
Executing: select t.patient_id from patient t, person p where t.patient_id = p.person_id and t.voided = false and (p.birthdate <= :maxBirthFromAge and p.birthdate >= :minBirthFromAge)
with params: {minBirthFromAge=Wed Dec 31 00:00:00 GMT+03:00 1980, maxBirthFromAge=Tue Dec 31 00:00:00 GMT+03:00 1985}
Executing: select t.patient_id from patient t, person p where t.patient_id = p.person_id and t.voided = false and (p.birthdate <= :maxBirthFromAge and p.birthdate >= :minBirthFromAge)
with params: {minBirthFromAge=Wed Dec 31 00:00:00 GMT+03:00 1975, maxBirthFromAge=Wed Dec 31 00:00:00 GMT+03:00 1980}
You notice that Wed Dec 31 00:00:00 GMT+03:00 1980 appear in both dimensions thus makes any person with that birthdate appear in the two age groups. Am wondering whether there exists a solution to this issue or a guide on how to go about it.
Regards,
Antony