Re: [Dhis2-users] Option sets in program indicators

2018-04-11 Thread Aaron C White
Natalie,

I don't think your proposed formula would work if the data are stored as
text; however, if you convert your option sets to an INTEGER value type, it
would.  You could update the metadata configuration in place using a PATCH
request to the /api/optionSets/id endpoint to update the value type without
having to change them in the UI.  You'd also need to update the associated
data element or tracked entity attribute value type using the same method.
Then you could remove the quotes around your number codes.

I haven't tried with d2:hasValue, but I imagine this would work as well.

Aaron


--
Aaron C. White
919.522.5585

On Tue, Apr 10, 2018 at 12:15 PM, Natalie Tibbels <ntibb...@jhu.edu> wrote:

> Hi all,
>
> For program indicators, do option set codes count as number values in an
> expression/filter? I want to create a program indicator that captures
> whether ANY response was given to a particular data element in a tracker
> program stage (with response type text using an option set with 11 options,
> codes: 01, 02, 03…11). I want to sum all of the cases where the user
> selected ANY option for that data element.
>
>
>
> Does this make sense?
>
> Program expression: Enrollment count. [or TEI count?]
>
> Program filter: {#uidofdataelement} >='01' and
> #{CDbxAsttXzY.mFhpwpIv7ci}<='11'
>
>
>
> Is there a better way to do this? Am I right that d2:hasValue cannot be
> used if the response type is an option set?
>
>
>
> Thanks,
>
> Natalie
>
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Data Stopped Displaying in Pivot and Visualizer

2018-03-20 Thread Aaron C White
Stanley,

What are the permissions on your programIndicators and aggregate
indicators?  Is it possible that your user does not have access?

Aaron


--
Aaron C. White
919.522.5585

On Tue, Mar 20, 2018 at 7:34 PM, Stanley Kalyati <skaly...@gmail.com> wrote:

> I have cleared my cache completely but nothing.I even re-installed Google
> chrome and also tried installing Firefox hoping it was something with my
> browser and run maintenance and also analytics but to no avail.
>
> I have tried using different computers within our organization but the
> same result,no data is showing.But when I run event reports,I see plenty of
> data there.
>
> Could this be the version I am using maybe? (2.27)
>
> I have never been this confused with DHIS2 since I started using it 7yrs
> ago.
>
> On Mar 20, 2018 08:27, "Knut Staring" <knu...@gmail.com> wrote:
>
>> Have you cleared your cache and tried different browsers?
>>
>> Knut
>>
>> On Tue, Mar 20, 2018, 06:42 Stanley Kalyati <skaly...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> Recently my instance stopped displaying data in Pivot and
>>> Visualizer.However when I run Events reports,data is present.But when I run
>>> program indicators or aggregate indicators,bo data is displayed.
>>>
>>> However from our hosting company,they are able to see data and able to
>>> run pivot and visualizer without any problem.
>>>
>>> Has anyone experienced this before? If so any idea as to why this is so?
>>>
>>> Thanks
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs
>>> Post to : dhis2-d...@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
>
>
___
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


Re: [Dhis2-users] Substract Days in program Rules

2018-03-18 Thread Aaron C White
Djibril,

What if you use a negative value in d2:addDays()?  Something liked
d2:addDays(your_date, -10).

I haven't used that specific function, but I imagine it will accomplish
what you're looking for with a date returned.

Aaron


--
Aaron C. White
919.522.5585

On Sun, Mar 18, 2018 at 3:12 PM, DJIBRIL Hakim <djib.ha...@gmail.com> wrote:

> Hi,
> PLEASE how to do a substract Days from a date in program Rule, The
> resultat must be a date of course , I saw in documentation a D2:addDays()
> function. is there another for substractDays. if not what is the work
> around.
> Best.
>
> ___
> 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


Re: [Dhis2-users] Insight on program indicator and rule

2018-03-16 Thread Aaron C White
Natalie,

In addition to what Markus and Prosper have suggested, do you have access
to the logs of your server?  That can be a very useful source of
information especially when trying to debug program indicators.  I will
usually set up a terminal tailing the log and then try to view my program
indicator in one of the analytics apps.  You'll see a lot of angry error
messages if it isn't properly formulated and can give some better clues as
to why.

One time I had an expression that was considered valid by the edit screen
but was failing when trying to view in analytics.  Turned out it was
because my spacing was off in between multiple d2:condition statements.
The only way I figured it out was by watching the logs and saw a malformed
sql query error.

Good luck!

Aaron


--
Aaron C. White
919.522.5585

On Fri, Mar 16, 2018 at 7:39 AM, Prosper BT <ptb3...@gmail.com> wrote:

> Hi Natalie,
>
> In addition to Markus advice above, also check the you use of brackets,
> they are not balanced
>
> (d2:daysBetween(A{Date of birth},V{enrollment_date}) / 365) in this
> expression, you are dividing before executing and calcultating the entire
> days between, should be
>
> (d2:daysBetween(A{Date of birth},V{enrollment_date})) / 365
>
> But better to use years between as Markus advises
>
> Regards
>
> Prosper Behumbiize, MPH
> DHIS2 Implementation Adviser| HISP Uganda
> pros...@hispuganda.org <ptb3...@gmail.com> | pros...@dhis2.org | Skype:
> prospertb
>
> On Thu, Mar 15, 2018 at 9:19 PM, Markus Bekken <mar...@dhis2.org> wrote:
>
>> Hi there Natalie!
>> Your program indicator looks all good. Can it be that the aggregation
>> type is not "Count"? If your expression is a count, then the aggregation
>> type needs to be "Count" or "Custom" for advanced cases.
>> Tip: There is also a d2:yearsBetween function.
>>
>> For the program rule, I wonder if your A{Agree to be contacted} field
>> might be of datatype "Yes/No"? If so, the correct syntax would be:
>> A{Agree to be contacted} == false
>>
>> What version of DHIS2 are you on?
>>
>> Best regards,
>> Markus
>>
>> 15. mar. 2018 kl. 18:33 skrev Natalie Tibbels <ntibb...@jhu.edu>:
>>
>> Hi all,
>> Wondering if anyone could help with an indicator and a program rule.
>>
>> *What is wrong with this indicator (to calculate age from date of birth):*
>> Want to count total enrollments where age is 35-39
>>
>> Expression:
>> V{enrollment_count}
>>
>> Filter:
>> (d2:daysBetween(A{Date of birth},V{enrollment_date}) / 365) >= 35 and
>> (d2:daysBetween(A{Date of birth},V{enrollment_date}) / 365) <= 39
>>
>> [In the actual expression, the date of birth is the UID for date of birth]
>>
>> It’s producing no data but there should be some – think I’m making a
>> simple mistake.
>>
>>
>> *What is wrong with this program rule:*
>> If the person says "no" for agreement to be contacted, hide the phone
>> number field
>>
>> Name: Hide phone number field
>>
>> Expression: A{Agree to be contacted} == 'No'
>>
>> BUT, when I test it, if I click “Yes, agree to be contacted” the phone
>> number disappears and if I click “No” the phone number remains. So the
>> opposite of what I want….
>>
>> Thanks for any suggestions!
>>
>>
>> ___
>> 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
>>
>>
>
> ___
> 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


Re: [Dhis2-users] DateTime calculation for time in minutes between Tracker Capture stages

2018-02-19 Thread Aaron C White
Hi all,

I have a similar issue to Mike's.  I'm trying to calculate time differences
between data elements with a value type of Time, but the program indicators
do not seem to calculate.  It appears that the time values might be stored
as strings in the system?  Has anyone encountered this issue?

Thanks,
Aaron


--
Aaron C. White
919.522.5585

On Sun, Feb 11, 2018 at 11:46 PM, Mike Johnson <mjohn...@pih.org> wrote:

> Good morning everyone, and greetings from Boston, MA, USA.
>
>
>
> I have a question about the use of the *DateTime value type* in version
> 2.28.
>
>
>
> Is there documentation yet about the recommended way to calculate some of
> the following calculations in the Tracker Capture module?
>
>
>
> ·   Time (in minutes) between two DateTime values? For an event with
> multiple stages, we are capturing in Stage 1, the Date/Time of arrival in
> the Emergency Department. In Stage 2, the Date/Time of an emergency
> intervention procedure.
>
> ·   Median Time (in minutes) between these two stages, calculated for
> each facility and also per country.
>
>
>
> Please share any advice on the best direction for calculating these time
> differences, using *enrollment program indicators if possible. *
>
> For testing purposes, I have created sample data elements in the Demo
> Server, and entered sample data
> <https://play.dhis2.org/2.28/dhis-web-event-capture/index.html#/?ou=DiszpKrYNg8=zwD4fd9Iz4f>
> in the Event Capture module.
>
>
>
> Please note, my test data is in Event capture, but my question relates to
> Tracker capture. Unfortunately I was unable to register a person into my a
> test program with 2 stages in the demo server.
>
>
>
>
>
> Thank you!
>
>
>
> *Mike Johnson, MSc* | MEQ Manager
>
> Monitoring, Evaluation & Quality Improvement | Partners In Health
>
> Email: mjohn...@pih.org
>
> Mobile: +1 857-206-5246 <(857)%20206-5246>
>
> Submit an MEQ data request
> <https://partnersinhealth.sharepoint.com/sites/meq/Lists/MEQ%20Request%20Form/NewForm2.aspx>
>
>
>
> ___
> 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


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

2018-02-13 Thread Aaron C White
Thanks, Lars and Preeti.  I checked the indicator formulation and found a
problem with a d2:condition() statement using a text option set value.  I
converted it to an integer and was able to see the calculated data across
stages.  I think it might be related to the parentheses issue inside the
condition as a few other recent emails have suggested.  How should the
condition be formulated if you also need to check a text option inside that
condition?  Using double quotes on the outside of the formulation does not
seem to work properly.  i.e. d2:condition("my_de == '3'", true, false)

Aaron


--
Aaron C. White
919.522.5585

On Mon, Feb 12, 2018 at 1:34 AM, Lars Helge Øverland <l...@dhis2.org> wrote:

> Hi Aaron,
>
> from your description I think enrollment type program indicators will be
> appropriate. Can you tell us a bit more about your usecase? I am assuming
> you want information from two different stages in the *same* program. Do
> you have multiple enrollments per person (TEI) in your program? If not I
> think enrollment indicators will do the job.
>
> regards,
>
> Lars
>
>
> On 8 February 2018 at 21:49, Aaron C White <aaroncwh...@gmail.com> 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 <(919)%20522-5585>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org
> http://www.dhis2.org <https://www.dhis2.org/>
>
>
___
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


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

2018-02-08 Thread Aaron C White
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] Event Report (Events) - select data items which have no value

2018-02-05 Thread Aaron C White
I just had to tackle something similar recently, so it's fresh on my mind.
The functions are built in to DHIS2 (but I believe are part of the JEXL
library according to the docs).You would need to create the program
indicator first, run analytics, and then request the program indicator
instead of the data element in question.  I don't think you can use it to
hit the analytics endpoint directly.  You can find some examples and more
detail here
<https://docs.dhis2.org/2.28/en/user/html/configure_program_indicator.html#program_indicator_functions_variables_operators>
.

Aaron


--
Aaron C. White
919.522.5585

On Mon, Feb 5, 2018 at 3:48 PM, Martin Van Aken <mar...@joyouscoding.com>
wrote:

> Would not have though of that approach - your examples uses the d2 JS
> library? Are those "operators" usable in a analytics/events/query filter
> string? (tried the "aggregate" null operator, but it did not work)
>
> Thanks !
>
> Martin
>
> On Mon, Feb 5, 2018 at 6:24 PM, Aaron C White <aaroncwh...@gmail.com>
> wrote:
>
>> Martin,
>>
>> What if you made a program indicator with inverse logic?  Something like
>> "!d2:hasValue(#{your_de_uid})", since if the value is numeric
>> "d2:oizp(#{your_de_uid})".  d2:oizp returns 1 if the value is zero or
>> positive and otherwise returns 0.  I bet one of those or a combination
>> would solve that problem.
>>
>> Aaron
>>
>>
>> --
>> Aaron C. White
>> 919.522.5585 <(919)%20522-5585>
>>
>> On Mon, Feb 5, 2018 at 10:53 AM, Martin Van Aken <mar...@joyouscoding.com
>> > wrote:
>>
>>> Hi everyone,
>>> We are interested to get an event report with all events where a
>>> specific data item has no value (ie, not 0, no value at all). We're on
>>> 2.26, an all the conditins available are <, <=, =, > etc.
>>>
>>> Putting "=" then an empty field does not filter anything, and in this
>>> case "0" is taken as a separated value than "no value".
>>>
>>> Is there any way to do this?
>>>
>>> Thanks,
>>>
>>> Martin
>>>
>>> --
>>> *Martin Van Aken - **Freelance Enthusiast Developer*
>>>
>>> Mobile : +32 486 899 652
>>>
>>> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
>>> Call me on Skype : vanakenm
>>> Hang out with me : mar...@joyouscoding.com
>>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
>>> Company website : www.joyouscoding.com
>>>
>>> ___
>>> 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
>>>
>>>
>>
>
>
> --
> *Martin Van Aken - **Freelance Enthusiast Developer*
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
___
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


Re: [Dhis2-users] Event Report (Events) - select data items which have no value

2018-02-05 Thread Aaron C White
Martin,

What if you made a program indicator with inverse logic?  Something like
"!d2:hasValue(#{your_de_uid})", since if the value is numeric
"d2:oizp(#{your_de_uid})".  d2:oizp returns 1 if the value is zero or
positive and otherwise returns 0.  I bet one of those or a combination
would solve that problem.

Aaron


--
Aaron C. White
919.522.5585

On Mon, Feb 5, 2018 at 10:53 AM, Martin Van Aken <mar...@joyouscoding.com>
wrote:

> Hi everyone,
> We are interested to get an event report with all events where a specific
> data item has no value (ie, not 0, no value at all). We're on 2.26, an all
> the conditins available are <, <=, =, > etc.
>
> Putting "=" then an empty field does not filter anything, and in this case
> "0" is taken as a separated value than "no value".
>
> Is there any way to do this?
>
> Thanks,
>
> Martin
>
> --
> *Martin Van Aken - **Freelance Enthusiast Developer*
>
> Mobile : +32 486 899 652
>
> Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
> Call me on Skype : vanakenm
> Hang out with me : mar...@joyouscoding.com
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
> Company website : www.joyouscoding.com
>
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Program indicators export to another system

2018-02-05 Thread Aaron C White
Elmarie,

The devs might correct me, but I don't think that the code import scheme
would account for different data element ids since the import tool would be
trying to match a code for the programIndicator itself and not the
configured expression or filter.

I ran into this problem last year and did not have the ability to control
the source server, but I had API access to read metadata configuration.  If
you are familiar with a scripting language, you could create a set of
key/value pairs where the key is the existing ID from your source system
and the new ID in the destination system.  Get the programIndicators in
JSON/XML format via the API.  Then for each unique pair, recursively search
through the metadata for the key (source UID) and replace with the value
(destination UID) wherever found using a regex-like function. It can be
slow if you're dealing with a large configuration but ensures that you
don't miss an association somewhere that you forgot to explicitly code.

For just programIndicators, you would want to at least check the expression
and the filter attributes for the IDs in question.  Since it sounds like
you have the same configuration but different ID values, you also would
want to confirm that the programStage IDs are also correctly mapped.  In
the programIndicator construction you would see this as #{programStageId.
dataElementId}.

When I did this, I stored the source server UIDs in the code attribute of
my destination server since we were not using that field as a way to
persist the "map" between the two systems.  As Calle said, this whole
process is certainly an "expert" level approach and can degrade over time
if your source server changes metadata configuration. The proposed
SOURCE/DESTINATION mapping using the existing import tool would be great,
but still would require maintenance if the configuration changes (if you're
trying to maintain a matching configuration).

Otherwise, you would need to replace the references via the UI, but that
probably wouldn't be a great plan if you have to update more than one or
two.

Aaron


--
Aaron C. White
919.522.5585

On Thu, Feb 1, 2018 at 11:07 AM, Knut Staring <knu...@gmail.com> wrote:

> Hi Elmarie,
>
> This is an important issue, and I expect others will have a better answer,
> but one approach could perhaps be to replace the UID for the Programme
> Indicators with the desired data element UID. I suppose that would have to
> be done either directly in the database or through the API, but if it were
> to be a recommended way to link databases it should also be possibly to do
> this kind of mapping through the user interface
>
> Knut
>
> On Thu, Feb 1, 2018 at 4:59 PM, Elmarie Claasen <elma...@hisp.org> wrote:
>
>> Hi all,
>>
>> Any response to this question?
>>
>> Regards
>>
>> Elmarie
>>
>> On 30 Jan 2018 12:11, "Elmarie Claasen" <elma...@hisp.org> wrote:
>>
>>> Hi all,
>>>
>>>
>>>
>>> We create Programme Indicators and would like to export those to other
>>> systems with different data element UIDs than the created Programme
>>> Indicator UID.
>>>
>>> If adding a code to the Programme Indicator which is same as the Data
>>> Element code will this allow matching on import?
>>>
>>>
>>>
>>> Regards,
>>>
>>>
>>>
>>> *Elmarie Claasen*
>>>
>>> [image: Hisp logo]
>>>
>>> Project Manager
>>>
>>> Health Information Systems Program
>>>
>>> Tel:  041-367 1027
>>>
>>> Cell: 082 374 2209
>>>
>>> E-mail: elma...@hisp.org
>>>
>>> Skype:  elmarie.claasen52
>>>
>>>
>>>
>>
>> *This message and any attachments are subject to a disclaimer published
>> at http://www.hisp.org/policies.html#comms_disclaimer
>> <http://www.hisp.org/policies.html#comms_disclaimer>.  Please read the
>> disclaimer before opening any attachment or taking any other action in
>> terms of this electronic transmission.  If you cannot access the
>> disclaimer, kindly send an email to disclai...@hisp.org
>> <disclai...@hisp.org> and a copy will be provided to you. By replying to
>> this e-mail or opening any attachment you agree to be bound by the
>> provisions of the disclaimer.*
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-d...@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Knut Staring
>
> Department of Informa

[Dhis2-users] Enrollment Level Program Indicators

2018-01-22 Thread Aaron C White
Greetings all,

I'm currently trying to create a program indicator that uses event data
from multiple stages of a tracker program.  Based on the documentation, it
seems like I need this to be an enrollment analytics type, but I'm having
trouble actually viewing the results.  When I try to view in Event Reports,
the table returns blank, as does the actual json response from the server.

A similar example on the demo server is the [PI] WHO RMNCH ANC Hemoglobin
improvement.  I want to display individual rows per enrollment based on the
indicator value.  Is there a better example to use?  Or is there a separate
endpoint that is not /api/events/programId that I should hit from the API
to get these values?

Thanks in advance,

Aaron

--
___
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