dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #07184
Re: Surveillance rules
Hi Jim,
Of course I was trying to validate in an input form. In my own case I have a set of data elements that after entered current period values for this data elements we have to compare with the respective immediate previous period values as in our scenario will not make sense when user enter greater values for the current period when compared to previous. That’s why I tried to create an example on the demo site as described on my last email, but unfortunately did not work, even when running “validation rule analysis” after assigned to “validation rule group”, called Testing.
Kind regards,
Joao
From: Jim Grace [mailto:jimgrace@xxxxxxxxx]
Sent: 14 May 2015 14:53
To: Joao Mazuze
Cc: dhis1-users
Subject: Re: [Dhis2-users] Surveillance rules
Thank you Joao.
Were you trying to use this validation rule to validate data in an input form? Surveillance-type rules are not designed to work this way. They are used after data entry to look for patterns in the data, when added to a validation rule group and run under "Validation Rule Analysis".
If you were trying to validate data against previous values, I would like to know more about your use case. Can you say more about what the data elements are, and how they should relate to previous periods?
Cheers,
Jim
On Thu, May 14, 2015 at 8:30 AM, Joao Mazuze <Joao_Mazuze@xxxxxxxxxxxx<mailto:Joao_Mazuze@xxxxxxxxxxxx>> wrote:
Thank you Jim,
Here is the problem´s background:
We need to compare current period value from previous one (monthly period) as the current one it is mandatory to be greater than other. In this case on the demo system I made an example for Bumban MCHP org unit, comparing between March 2015 and April 2015 for dataelement “BCG doses given (<1y)”, for any value applied to this dataelement the validation always passes successfully, what is strange, the related surveillance rule is called “testePreviousPeriod”. Our goal is to be able to compare those monthly periodical datavalues.
Kind regards
From: Jim Grace [mailto:jimgrace@xxxxxxxxx<mailto:jimgrace@xxxxxxxxx>]
Sent: 14 May 2015 14:15
To: Joao Mazuze
Cc: dhis1-users
Subject: Re: [Dhis2-users] Surveillance rules
Hi Joao,
A surveillance-type validation rule should work as you say, comparing the current values of the left side with previous values of the right side. I don't know why you aren't seeing this behaviour.
When you create a new surveillance-type validation rule, be sure to give a non-zero "Sequential sample count" to compare with periods immediately preceding the current period, and/or a non-zero "Annual sample count" to compare with the same period in past years. If you choose both, it will compare the current data with a range of sequential periods in this year and in past years.
If this is not the problem, I would need some more information to understand better your situation. If you can reproduce the problem on the demo system https://apps.dhis2.org/demo/, or on another system to which I can be given access, that might help the most.
Cheers,
Jim
On Thu, May 14, 2015 at 4:22 AM, Joao Mazuze <Joao_Mazuze@xxxxxxxxxxxx<mailto:Joao_Mazuze@xxxxxxxxxxxx>> wrote:
Hi guys,
I know that surveillance rules compare data from previous periods with the current one. Now I need to compare data values from the same data elements(left and right side), but the rule ignores the previous value and compares only the current value itself which doesn´t make sense as surveillance rules compare current values with previous ones. How can I solve this?
Kind regards,
João
Kind regards
_____________________________________
João Gabriel Mazuze
National Database Manager
Projecto CHASS-SMT
Abt Associates Inc.
Av. Marginal, 4067
Cidade de Maputo, Moçambique
Fax: (+ 258) 21486767<tel:%28%2B%20258%29%C2%A0%2021486767>
Tel: (+ 258) 21493525<tel:%28%2B%20258%29%C2%A0%2021493525>/6/8
Cell: (+258) 82 4236279<tel:%28%2B258%29%2082%204236279>
www.chasssmt.com<http://www.chasssmt.com/>
[Description: Description: Description: Description: Description: Description: Description: Description: Description: Logotipo CHASS-SMT]
Somos um projecto financiado pelo PEPFAR-II, através da USAID, para reforçar o Sistema de Saúde das Provincias de Sofala, Manica e Tete. Pretendemos melhorar a ligação e integração do HIV com os Cuidados Primários de Saúde e outros a ele relacionados em coordenação com as Direcções Provinciais de Saúde e outros parceiros. Através do projecto CHASS-SMT, o Governo Americano apoia o Governo Moçambicano na melhoria da qualidade dos Serviços de Saúde no país.
________________________________
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
________________________________
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
________________________________
This message may contain privileged and confidential information intended solely for the addressee. Please do not read, disseminate or copy it unless you are the intended recipient. If this message has been received in error, we kindly ask that you notify the sender immediately by return email and delete all copies of the message from your system.
Follow ups
References