← Back to team overview

dhis2-users team mailing list archive

Need help in Program Rules

 

Hello All,

I am using DHIS version 2.20 build revision 19691.

I am having a doubt in Program rules.

We have a case where

Data element 'Age Type' has options i.e. *Hours/Days/Weeks/Months/Years*
Now if the user is selecting 'Age type' as *Hours *then another data
element 'Age' should accept value between *0 to 23*, application should not
accept any value more that 23 in case of *Hours *'Age type'.
Similarly, If 'Age type' is *Days  *then it should not accept more that *6 *for
'Age' data element.

Can we add these kind of program rules?

Can some one please guide?

-- 
Thanks,
Neeraj Gupta

Follow ups