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

2018-02-14 Thread Martin Van Aken
Ok, thanks for the clarification. I'll check our concrete situation and see what are our options there. Martin On Wed, Feb 14, 2018 at 10:39 AM, Markus Bekken wrote: > Hi Martin, > to my knowledge the parenthesis work in general, with the exception of > passing parenthesis

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

2018-02-14 Thread Markus Bekken
Hi Martin, to my knowledge the parenthesis work in general, with the exception of passing parenthesis into the d2:condition() function: DHIS2-2813 You would be able to write parenthesis in program indicators expressions and filters. What is not

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

2018-02-13 Thread Martin Van Aken
Hi everyone. Thanks Lars for the answer - we face problems with priorities (hence needing parenthesis) there too. Glad to know this will be solved, but what would be the possible workarounds in the meantime? I wanted to decompose in different indicators, but programIndicators can't use other

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

2018-02-13 Thread Lars Helge Ă˜verland
HI Aaron, that sounds good, glad to hear you got cross-stage calculations to work. Unfortunately program indicator expressions do not support nested parentheses/functions - we plan to develop a new version of our program indicator parser which will be more flexible in this regard. regards,

Re: [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

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

2018-02-11 Thread Lars Helge Ă˜verland
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

[Dhis2-devs] 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