Hello Prosper at all,
As discussed earlier, we’re working on rather complete solution to this problem, rather than work arounds, you can get a sneak peak, https://play.dhis2.org/dev/api/apps/function-manager/index.html
The idea is you function will serve as analytics, but gives you room to impose any sort of conditions with javascripts.
The app itself is functional but it’s not yet easy enough for mere-mortals.
But it should work the same manner, like indicators in pivot, that app above, essential, takes period, orgunit and data selections, passess them to a function a function works with the selections, and returns results in same format as analytics would, and the app picks the results again, and draws it.
Plan is to have it as stand-alone solution reusable anywhere, but it will also be standard integral part of scorecard.
Again, it’s still work in progress, we’ll take feedback, once it’s usable enough for rollout.
Cheers.
···
On Wed, May 10, 2017 at 1:26 PM, Prosper BT ptb3000@gmail.com wrote:
Dear Ola,
Thanks for sharing this workaround, the two challenges may be wanting to keep same data with the aggregate data in entry because most of the time its within one form and may be inconveniencing switching between entry screens.
Remember we had suggested to write a script that can update single event data elements to use program indicators that can in turn be used as aggregate indicators for scorecard and BNA indicators.
From the core development team is ther as way we can use aggregate indicators or both data element in aggregate and events so as to use program indicators for this. Its becoming very critical for analysis of logistics, HR, Scorecard and BNA indicators.
The scorecard team is building up something John and Eric can share progress.
Regards
–
Prosper Behumbiize, MPH
DHIS2 Implementation| HISP Uganda
prosper@hispuganda.org | prosper@dhis2.org | Skype: prospertb
On Wed, May 10, 2017 at 1:14 PM, Ola Hodne Titlestad olati@ifi.uio.no wrote:
On 10 May 2017 at 10:01, Sam Kasozi kasozis@gmail.com wrote:
What is the best approach for creating conditional indicators for routine/
aggregate data such as facilities reporting stock outs or facilities
providing a service?
Besides creating new data element [Yes/No or (1/0)] that is assigned in the
custom form whenever the condition is found to be true, is there an
alternative?
regards,
Sam Kasozi
+256 788-993-565
Skype: sam.kasoziug
Hi Sam,
You may consider collecting some of this data with single events
(routine surveys/assessments) and then use program indicators or event
data item aggregation to get the aggregate numbers you are looking
for.
Ola
Ola Hodne Titlestad (Mr)
HISP
Department of Informatics
University of Oslo
Mobile: +47 48069736
Home address: Eftasåsen 68, 0687 Oslo, Norway. Googlemaps link
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
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
John Francis Mukulu,
Lead Developer, HISPTZ,
University of Dar es salaam.
http://hisptanzania.org/