← Back to team overview

dhis2-devs team mailing list archive

Re: [Dhis2-users] Program Indicator using data from multiple event stages to find TEA


Hi Aaron,

Could you try by setting the analytics type to 'Events' and then filter all
the events by Program stage id/Program stage name variable? Please let me
know if this serves as a workaround for your blocker.

Preeti A

On Thu, Feb 8, 2018 at 8:19 PM, Aaron C White <aaroncwhite@xxxxxxxxx> wrote:

> Hi all,
> I'm trying to create a program indicator (or just query to the API
> directly) that evaluates conditions on data elements from two different
> event stages and then be used to find a relevant tracked entity attribute.
> From the docs, it seems that a program indicator type of enrollment would
> be most appropriate, but this only works at the aggregate level and not at
> an individual tracked entity instance level.  When I use an event type
> indicator, I don't receive any values back because the indicator definition
> contains data from two stages.
> Am I correct in this assessment?  Any thoughts on how to get around this?
> I've been testing on a v2.28 instance.  A similar reference example from
> the demo server would be the "Weight gain(in g) between birth and last
> postnatal for Child Programme" program indicator.  The one change would be
> that I want to see the weight gain for individual TEIs and view a TEA based
> on the weight gain amount instead of the average over all tracked entity
> instances.
> Thanks in advance,
> Aaron
> --
> Aaron C. White
> 919.522.5585
> _______________________________________________
> 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

Preeti Ajgaonkar