hello , I am using dhis2 2.40 version. i was trying to add program rule for age value type . the program rule is to hide some fields if the age is under 4. i used program rule expression of these type d2:daysBetween( V{incident_date}, A{Age} ) <4. and this is not working.
What is the value type of the attribute? I expect this attribute is the age in years?
Thanks!
I think for this to work with program rules, the type needs to be a number.
how can I make if the value type is age?
Hi @blen
I think for an attribute Age in years the numbers can only be zero or positive number which is the same as this example in play: DHIS 2 Demo - Sierra Leone
Please test again using this data type. Thanks!
1 Like