← Back to team overview

dhis2-devs team mailing list archive

Storing value type 'Age' in numeric form

 

Hi

We are using DHIS version 2.26. We are exploring the new value type "*Age*"
that has been introduced with this release. On the UI, when we enter a
date, it calculates the age in years, months and days perfectly. But we
observe that the calculated age in years is not stored in the DB. The value
of an Age type data element is stored only as a date (YYYY-MM-DD) in the
database. We would like to use the age in years in analytics on the
visualisation apps. We have tried using program indicators for the same,
but that did not work as expected.

Could you please suggest how we could leverage the use of age in years,
given the existing functionality.



*Cheers*,

Archana Chillala
Application Developer
Email archanac@xxxxxxxxxxxxxxxx
Telephone +91 9100960533 <+91+9100960533>

[image: www.thoughtworks.com] <http://www.thoughtworks.com>

PNG image


Follow ups