[Dhis2-users] Custom forms - disable / enable sections

2018-02-09 Thread Edward Robinson
Is it possible to hide or show certain sections (tabs) of custom forms by 
facility based on some facility property?  We are trying to avoid having 
multiple forms for various services and present them on a single page with 
multiple tabs if possible, but we want to be able to hide tabs that are 
irrelevant for certain facilities.
Thanks in advance for any ideas!
___
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] Preventing Duplicates on automatically generated Unique value TEA in a Distributed Architecture

2018-02-09 Thread Nguza Yikona
Greetings community and developers,

We are planning to implement a distributed database architecture for our
DHIS2 tracker in which local instances will periodically sync to a central
DHIS2 instance.

However, each of the Tracked Entity Instances have an Tracked Entity
Attribute that auto generates unique values and uses this as a front end
Unique Identifier for the TEIs. My major concern is possibility of
generating duplicate values on this Unique value TEA.

How can I prevent this from happening? Any suggestions will be highly
appreciated.

[image: Inline image 1]

Thanks,

Nguza
___
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] Using program rule expressions in Program indicator expressions

2018-02-09 Thread Markus Bekken
Hi again Bernard,
it seems that the problem you experience might be caused by the presence of 
parenthesis in the expression inside your d2:condition. This is a bug, and can 
be followed up here: https://jira.dhis2.org/browse/DHIS2-2813 

If you are able to write your expression without parenthesis, this is a 
workaround that you can use.

The general implementation of new functions in program indicators is followed 
up in jira issues, but there was none covering the mathematical functions you 
need here, so I created one that you can look at: 
https://jira.dhis2.org/browse/DHIS2-2814 

Please complement or comment, and consider voting for it :)

Best regards,
Markus

P.S. won't X*100%100 always be 0? 

> 7. feb. 2018 kl. 09:21 skrev Bernard Sadaka (IM Advisor) :
> 
> Hello Markus,
> Thank you for the list and explanation; is there any expected timeline for 
> that? (JIRA issue, I can track?)
>  
> With regards to the number of decimals, even if set to zero at the program 
> indicator and after running the analytics, the “pivot table” still shows the 
> digits.
>  
> Regarding the expression, yes it is true, I’m rounding the constants, because 
> I am actually creating a budget report and applying a discount rate on the 
> individual cost of a specific PHCC activity and aggregating them using sum 
> (so I am using one constant per cost of a PHCC activity and another for 
> discount rate of all activities). I ended up using exact values in the 
> constant instead of a discounted factor; after all, changing a discount 
> factor is easier than changing 200 values individually when the discount rate 
> changes. The reason for all this, is that with a discounted factor there is a 
> need to round the values and disallow them to be cumulated in the sum of the 
> aggregation in order to keep the report error free.
> Hope the above explains my usecase: aggregating the data elements of a TEI 
> and multiplying them by a cost constant and a discount factor. And yes the 
> round functions in this case would be very beneficial.
>  
> Thank you again for your support.
>  
> All the best,
> Bernard
>  
> 
> Bernard Sadaka
> Information Management Advisor
> Première Urgence - Aide Médicale Internationale
> Nehmeh Building, Sanine Street, Chiyah, 3rd Floor
> Ain el Remmaneh, Beirut, Lebanon
> E-mail: lib@pu-ami.org 
> Cell: +961 71 004 881 (208)
> Skype: imapuami
> Website: https://www.pu-ami.org 
>  
>  
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: Wednesday, February 7, 2018 9:52 AM
> To: Bernard Sadaka (IM Advisor) 
> Cc: dhis2-users@lists.launchpad.net; DHIS 2 developers 
> 
> Subject: Re: [Dhis2-devs] [Dhis2-users] Using program rule expressions in 
> Program indicator expressions
>  
> Hi there Bernard,
> We aim to support more and hopefully all the program rule functions in 
> program indicators.
> Unfortunately we are not there yet, and the list of supported functions in 
> program indicators can be found here:
> 19.4.5. Reference information: Functions, variables and operators to use in 
> program indicator expressions and filters 
> 
>  
> Where did you get the wrong number of decimals? In the Pivot or in the 
> Tracker/Event capture?
>  
> One question on your expression below, it seems you are trying to round off a 
> constant from your defined constant values? Your use case I would have 
> guessed is to round off a data element or tracked entity attribute value?
>  
> Best regards
> Markus
> 
> 
>> 6. feb. 2018 kl. 15:31 skrev Bernard Sadaka (IM Advisor) > >:
>>  
>> I found a similar issue on JIRA (https://jira.dhis2.org/browse/DHIS2-2734 
>> )
>>  
>> But still doesn’t explain why I can’t use different expressions in program 
>> indicators L
>>  
>> All the best,
>> Bernard
>>  
>> 
>> Bernard Sadaka
>> Information Management Advisor
>> Première Urgence - Aide Médicale Internationale
>> Nehmeh Building, Sanine Street, Chiyah, 3rd Floor
>> Ain el Remmaneh, Beirut, Lebanon
>> E-mail: lib@pu-ami.org 
>> Cell: +961 71 004 881 (208)
>> Skype: imapuami
>> Website: https://www.pu-ami.org 
>>  
>>  
>> From: Dhis2-users 
>> [mailto:dhis2-users-bounces+lib.ima=pu-ami@lists.launchpad.net 
>> ] On 
>> Behalf Of Bernard Sadaka (IM Advisor)
>> Sent: Tuesday, February 6, 2018 3:53 PM
>> To: dhis2-users@lists.launchpad.net 
>> ; 'DHIS 2 developers' 
>> >
>> 

Re: [Dhis2-users] how to use condition

2018-02-09 Thread Markus Bekken
Hi there Victor!
Can you please supply the expression that you are using when you get the 
message you mentioned?

Markus

> 8. feb. 2018 kl. 14:21 skrev Victor Tabu :
> 
> Hello Team,
>  
> Could you tell me if I can use logic function like and,or in 
> d2:condition('bool-expr',true-val,false-val) because when I try I get this 
> message
>  
> 
>  
> Thank you for your help
>  
> -
> Victor TABU TSHIBAMBULA
> Adminstrateur Gestionnaire du Système d’Information - Kinshasa
> Tel: + (243) 814784184 , VoIP : 243 0301 1096, E-mail: vt...@unicef.org 
> , skype : vtabu
>  
> Fonds des Nations Unies pour l’Enfance
> 372, avenue Colonel Mondiba, Kinshasa - Ngaliema
> Suivez nous sur Facebook , Twitter 
> , Pona Bana  et 
> http://www.unicef.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 
> 
___
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