Need an alert.

Hi all,

I’m looking forward to do some kind of alert when an indicator or some aggregate data, reach a value.

I try to explain what i need to do:

When the mortality of a kind of mosquito reach 80% i want to put an alert (perhaps to some user group). I can keep this data, in an indicator or in an aggregate data. But I don’t know if this is possible.

Thank you!

Hello Lorena,

at the moment this is not possible out-of-the-box with DHIS, sorry. We are thinking of implementing such a feature but we have not decided on when yet.

With some technical skills you could set up something ad-hoc. First you need to define what those 80 % represents. Is it an indicator for the last month? If you so you could create a report table which will give you the data as JSON, then parse that in a script where you keep some logic, then you could call the message resource in the Web API in order to notify the right users. This script could be driven by a cron job. But again, all this would require some hacking skills and knowledge of the DHIS API. Docs here: http://dhis2.org/doc/snapshot/en/user/html/ch23.html

regards,

Lars

···

On Fri, Dec 7, 2012 at 1:55 PM, Lorena Guirado Boluda lorenaguiradoboluda@gmail.com wrote:

Hi all,

I’m looking forward to do some kind of alert when an indicator or some aggregate data, reach a value.

I try to explain what i need to do:

When the mortality of a kind of mosquito reach 80% i want to put an alert (perhaps to some user group). I can keep this data, in an indicator or in an aggregate data. But I don’t know if this is possible.

Thank you!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Hi Lorena,

it is a long time since this question was made, but I have something that could be helpful.

I followed the steps suggested by Lars and I wrote a script that makes the job. It reads a report table through the webAPI, extracts the value we want to check and, if it is greater than a threshold, sends a message.

To make things easier, I defined a reportTable with a single indicator, a single orgunit and a single period, and this script works fine with that. If other thing is needed, some changes must be done in the line where the value is extracted. This script could be a template.

The problem that I have found here is to define a report table which contains the value that I am looking for. To avoid having to redefine the report table each time, the periods must be relative. But the shortest relative period is monthly, and that is too long for an alert. The next release will include weekly relative periods, so that will be helpful here.

regards,

Víctor

alerta.sh (2.23 KB)

···

On 7 December 2012 18:44, Lars Helge Øverland larshelge@gmail.com wrote:

Hello Lorena,

at the moment this is not possible out-of-the-box with DHIS, sorry. We are thinking of implementing such a feature but we have not decided on when yet.

With some technical skills you could set up something ad-hoc. First you need to define what those 80 % represents. Is it an indicator for the last month? If you so you could create a report table which will give you the data as JSON, then parse that in a script where you keep some logic, then you could call the message resource in the Web API in order to notify the right users. This script could be driven by a cron job. But again, all this would require some hacking skills and knowledge of the DHIS API. Docs here: http://dhis2.org/doc/snapshot/en/user/html/ch23.html

regards,

Lars

On Fri, Dec 7, 2012 at 1:55 PM, Lorena Guirado Boluda lorenaguiradoboluda@gmail.com wrote:

Hi all,

I’m looking forward to do some kind of alert when an indicator or some aggregate data, reach a value.

I try to explain what i need to do:

When the mortality of a kind of mosquito reach 80% i want to put an alert (perhaps to some user group). I can keep this data, in an indicator or in an aggregate data. But I don’t know if this is possible.

Thank you!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Hi Victor,

nice to see that you have come such a long way through scripts and the web api. In the next release we will have a more flexible way of getting weeks and other options for aggregated data, like you say.

cheers

Lars

···

On 7 December 2012 18:44, Lars Helge Øverland larshelge@gmail.com wrote:

Hello Lorena,

at the moment this is not possible out-of-the-box with DHIS, sorry. We are thinking of implementing such a feature but we have not decided on when yet.

With some technical skills you could set up something ad-hoc. First you need to define what those 80 % represents. Is it an indicator for the last month? If you so you could create a report table which will give you the data as JSON, then parse that in a script where you keep some logic, then you could call the message resource in the Web API in order to notify the right users. This script could be driven by a cron job. But again, all this would require some hacking skills and knowledge of the DHIS API. Docs here: http://dhis2.org/doc/snapshot/en/user/html/ch23.html

regards,

Lars

On Fri, Dec 7, 2012 at 1:55 PM, Lorena Guirado Boluda lorenaguiradoboluda@gmail.com wrote:

Hi all,

I’m looking forward to do some kind of alert when an indicator or some aggregate data, reach a value.

I try to explain what i need to do:

When the mortality of a kind of mosquito reach 80% i want to put an alert (perhaps to some user group). I can keep this data, in an indicator or in an aggregate data. But I don’t know if this is possible.

Thank you!


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp