Re: [Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-02 Thread Nayeem Al Mifthah
Hi Nick
I have also notice the same problem. Later created a data element in
program stage and assign age in year as a calculative value from program
attribute 'age'.

It works!

Regards,
Nayeem Al Mifthah
Consultant for HSS, HMIS, M, GIS and Surveillance

Kindly ignore typos.

On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  wrote:

> Hi
>
> I am trying to figure out the best method to use age-type attributes in
> program indicator calculations. As a simple example, let us say I want a
> program indicator which displays the age in years of a person. From what I
> can see, the age-type attribute stores its value as a date, according to
> the date of birth either selected or estimated based on what is entered in
> the years, weeks and months fields respectively during registration. If I
> want to use this date in a program indicator however it seems to not work
> correctly.
>
> ie d2:yearsBetween(age, event_date) when used as an expressions as an
> example would not give me the correct age in years. Is there another way in
> which to make these types of program indicators work with the age-type
> attribute?
>
> Thanks,
> Nick
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] Using age-type attributes in program indicator calculations

2018-04-02 Thread Shurajit Dutta
Hi

I am trying to figure out the best method to use age-type attributes in
program indicator calculations. As a simple example, let us say I want a
program indicator which displays the age in years of a person. From what I
can see, the age-type attribute stores its value as a date, according to
the date of birth either selected or estimated based on what is entered in
the years, weeks and months fields respectively during registration. If I
want to use this date in a program indicator however it seems to not work
correctly.

ie d2:yearsBetween(age, event_date) when used as an expressions as an
example would not give me the correct age in years. Is there another way in
which to make these types of program indicators work with the age-type
attribute?

Thanks,
Nick
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp