← Back to team overview

dhis2-users team mailing list archive

Re: Program Rules

 

Hi, if you are using version 2.24 there is a program rule action called "Show error preventing completing". This let’s you make a program rule to make the pregnancy age mandatory only for pregnant women (with a condition line "pregnancy" = true && pregnancyAge == ''), instead of setting the field to mandatory in the program stage configuration.

Olav


> 7. okt. 2016 kl. 16.43 skrev Amone Junior. Felimone <amone.felimone@xxxxxxxxxxx>:
> 
> Dear all,
> 
> I have a tracker program and i set a field as mandatory, however this field is not applicable to every case. The field is pregnancy age which is mandatory to every pregnant women but not applicable to non pregnant and to male participants.
> i am able to hide the field through a program rule but it always fails validation for non pregnant. 
> How can i keep the field mandatory only for pregnant women?
> Thanks
> -- 
> Felimone Amone Junior
> Data Manager
> Centro de Investigação em Saúde de Manhiça (CISM)
> Tel./Fax: (+258) 21 81 00 02/181
> CP 1929 Maputo - Moçambique
> Página Web: www.manhica.org <http://www.manhica.org/>
> E-mail: amone.felimone@xxxxxxxxxxx <mailto:email@xxxxxxxxxxx>
> 
> DISCLAIMER:
> Esta mensagem pode conter dados confidenciais e/ou privados. Se recebeu a mensagem por erro, queira informar-nos respondendo a este e-mail e elimina-lo de seguida do seu sistema. Muito obrigado pela sua cooperação.
> CISM - Centro de Investigação em Saúde de Manhiça
> 
> This message may contain confidential and/or privileged information. If you have recived this message in error, please notify us immediatly by respondig to this e-mail and then delete it from your system. Thank for your cooperation.
> By CISM - Centro de Investigação em Saúde de Manhiça
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp


References