Quantcast
Channel: DHIS2 Community - Latest topics
Viewing all articles
Browse latest Browse all 1510

Restriction on age

$
0
0

Good morning,
I want to put a restriction on the age on a tracker entity attribute (date of birth) so the users have warning when entrying a date which will make the patient more than 15 years old:
I created a program rule for that
this is the program rule expression:
d2:yearsBetween(V{incident_date}, A{EMR_Date_of_birth})>‘15’
and the action is to show error.

But this is not working it still allow the user to write a date which will make the patient more than 15 years old and there are no error shown. What will be your advise please?

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 1510

Trending Articles