Re: [Dhis2-users] Restricting Org Units In Tracker Org Unit Data Element

2018-11-28 Thread Markus Bekken
Hey Pierre - no not presently. The org unit data element shows all org units 
that the user can see(I.E. the "Search" org units).

Please feel free to add a jira ticket and describe your use case.

Markus

Want to tip you about the great community.dhis2.org 
 website - about to replace the mailing lists :)

> 28. nov. 2018 kl. 08:44 skrev Pierre Dane :
> 
> Hi all,
>  
> Is there a way of filtering the org unit tree for an org unit type data 
> element in a tracker form?
>  
> For example I would like to only show org units in a certain org unit group 
> for a particular tracker event.
>  
> Thanks
>  
> Pierre 
> ___
> 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] Tracker capture: Complete button performance decreased since 2.30

2018-11-27 Thread Markus Bekken
Thanks!
The performance fixes two weeks ago was mainly on the rendering speed and not 
specifically on the rules which was perfomant in our test enviroment. We will 
look into the issue linked by ignacio below.

Markus

> 27. nov. 2018 kl. 10:42 skrev Ignacio Foche  <mailto:nacho.fo...@gmail.com>>:
> 
> Hi Eric & Markus,
> 
> We're also experiencing the same performance issue, plus others related to 
> the program rules. Please see here the Jira issue that we created for this:
> https://jira.dhis2.org/browse/DHIS2-5259 
> <https://jira.dhis2.org/browse/DHIS2-5259> 
> 
> (BTW, we've also tested with yesterday build from Jenkins that improved a bit 
> but still far from what we had in 2.28)
> 
> Thank you in advance for your help.
> 
> Best regards
> 
> Le mar. 27 nov. 2018 à 09:29, Eric Barreda Prades  <mailto:ericbarre...@gmail.com>> a écrit :
> Hi Markus,
>  
> Thanks a lot for your quick response. Our build is quite updated:
>  
> Build revision:
> 47460e8
> Build date:
> 2018-11-19 10:54
>  
> However to be fair I think that the process has speed up a little bit from 
> our last build. Let me update our version to the latest build and see how is 
> it going.
>  
> Yours,
> 
> Eric 
> 
> 
> El lun., 26 nov. 2018 a las 21:40, Markus Bekken ( <mailto:mar...@dhis2.org>>) escribió:
> Hi there Eric!
> Is your 2.30 build more than 14 days old? We did some tracker client 
> performance fixes on nov 14 and nov 16. 
> 
> Markus
> 
> 26. nov. 2018 kl. 18:05 skrev Eric Barreda Prades  <mailto:ericbarre...@gmail.com>>:
> 
>> Dear users,
>> 
>> Since we have upgraded our system to version 2.30 we have observed that 
>> after clicking on the Complete button in an event it takes longer to 
>> actually complete that event that it used to (it might take about 5 to 10 
>> seconds from the moment we click the Complete button and the values actually 
>> turning to grey). I have tested it in DHIS2 2.30 play version but I see no 
>> disruption on performance. I was wondering if someone in here has ever 
>> experienced something similar.
>> 
>> Also simulated through command line (example for play server but also done 
>> in our instance):
>> 
>> curl -X PUT -H "Content-Type: application/json"  
>> https://play.dhis2.org/2.29/api/29/events/tAg4jQEL8Qv 
>> <https://play.dhis2.org/2.29/api/29/events/tAg4jQEL8Qv> 
>> 
>> The payload size in localinstance is quite similar to the one sending in 
>> play server (both attached). However while our TTFB is (for instance) over 
>> 6000ms in our local server, the play server is almost immediate. No 
>> different results observed after emptying our datavalue tables.
>> 
>> Any advice in terms of infrastucture is more than welcome. 
>> 
>> Thanks,
>> 
>> Eric
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
> -- 
> Ignacio Foche Pérez

___
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] Tracker capture: Complete button performance decreased since 2.30

2018-11-26 Thread Markus Bekken
Hi there Eric!
Is your 2.30 build more than 14 days old? We did some tracker client 
performance fixes on nov 14 and nov 16. 

Markus

> 26. nov. 2018 kl. 18:05 skrev Eric Barreda Prades :
> 
> Dear users,
> 
> Since we have upgraded our system to version 2.30 we have observed that after 
> clicking on the Complete button in an event it takes longer to actually 
> complete that event that it used to (it might take about 5 to 10 seconds from 
> the moment we click the Complete button and the values actually turning to 
> grey). I have tested it in DHIS2 2.30 play version but I see no disruption on 
> performance. I was wondering if someone in here has ever experienced 
> something similar.
> 
> Also simulated through command line (example for play server but also done in 
> our instance):
> 
> curl -X PUT -H "Content-Type: application/json"  
> https://play.dhis2.org/2.29/api/29/events/tAg4jQEL8Qv 
> 
> The payload size in localinstance is quite similar to the one sending in play 
> server (both attached). However while our TTFB is (for instance) over 6000ms 
> in our local server, the play server is almost immediate. No different 
> results observed after emptying our datavalue tables.
> 
> Any advice in terms of infrastucture is more than welcome. 
> 
> Thanks,
> 
> Eric
> 
> 
> ___
> 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 set not showing from user end

2018-11-26 Thread Markus Bekken
Hi there Mahbubul,
In 2.29 and later, you have to also share the data set with the user groups 
that should have access to the data set - giving them the "Data: Can capture 
data" access level.

If you haven't already, take a look at this: 
https://docs.dhis2.org/master/en/user/html/data-sharing-and-access-control.html#data-sharing-for-data-sets
 


Markus

> 26. nov. 2018 kl. 08:18 skrev Mahbubul Alam  >:
> 
> Dear All,
> Recently we upgrade our dhis2 with version 2.29..
> All things are working nicely from admin end.But from user end data set is 
> not showing.
> If i assign ALL from user role (for data entry user), then its work.But i 
> don't want to assign ALL authorities to users.
> 
> 
> Need some help.
> Thanks 
> 
> -- 
> 
> Thanks
> Mahbubul Alam | "IT Consultant" (GHSA Project)
> Msc in CSE, Bsc in CSc. Associate Member of BCS.
> 
> Institute of Epidemiology Disease Control & Research (IEDCR)
> www.iedcr.gov.bd 
> Mohakhali Dhaka.
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Relationships - relationship link not showing on TE #2

2018-11-14 Thread Markus Bekken
Hey Terence,
It would be great if you put this into a jira bug. The relationship you send a 
screenshot of below is a TEI-TEI relationship, which should be supported. In 
the preliminary investigation it also seems that nonsupported relationship is 
not always gracefully handled in the tracker.

Thanks for reporting. We will get back to you if we see any possible 
workarounds in the investigation.

Markus

> 14. nov. 2018 kl. 11:36 skrev Terence Scott  <mailto:terence.sc...@rabiesalliance.org>>:
> 
> Dear Markus
> 
> Thanks for the response. I will create any new conversations in the community 
> forum as mentioned. 
> 
> Relating to my current issue, we are creating relationships between two 
> different enrollments in 2 different programs (One program for a suspect 
> animal and the other for an exposed human). I would like to link the "exposed 
> animal" to the "exposed human" (each a relationship type). Therefore, for the 
> "Exposed person" relationship type, I have the "Exposed Animal" linked with 
> the Suspect animal program, followed by the second TE type being the exposed 
> person linked with the Exposed human program. The "From constraint" is "TE 
> instance". 
> 
> I tried to do the same with the "Exposed animal" Relationship type, but this 
> resulted in some other errors which I thought were attributed to redundancy. 
> Therefore, for the moment, I only have the "Exposed person" relationship type 
> set up. 
> 
> Under each of the programs themselves, I have also selected the relevant TE 
> type. Under "Related program" I selected the sister program (i.e. for the 
> Suspect animal program, I selected exposed human and visa versa).
> 
> I hope I managed to explain this clearly. I have attached a screenshot of how 
> I set up the relationship type for your reference. 
> 
> Kind regards,
> Terence
> 
>   
> Terence Scott
> 
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org <mailto:terence.sc...@rabiesalliance.org>
> https://paracon.rabiesalliance.org <https://paracon.rabiesalliance.org/>
> Skype: tpscott1987
> 
> 
> 
> On Wed, Nov 14, 2018 at 10:56 AM Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hey Terence,
> you mention programs are you making relations from one enrollment to another? 
> How is your relationship type set up? The only relationship type that is 
> supported in the tracker clients is tracked entity instance to tracked entity 
> instance. The rich possibilities in the new relationship model is starting to 
> be consumed in the new capture app first, and is per now  not scheduled to be 
> implemented in the current generation of tracker app.
> 
> Markus
> 
> P.S. we are moving these topics to the community.dhis2.org 
> <http://community.dhis2.org/> - a great tool for collaborating, discussing in 
> threads and building a searchable knowledge base at the same time.
> 
>> 13. nov. 2018 kl. 13:42 skrev Terence Scott 
>> mailto:terence.sc...@rabiesalliance.org>>:
>> 
>> Dear Community
>> 
>> I have been working on creating relationships between two programs. I have 
>> managed to create a relationship from 1 program to the other. However, on 
>> the enrollment screen for the 2nd TE (TE#2), no program is selected. I then 
>> select the appropriate program, but the relationship to the original TE 
>> (TE#1) is lost.
>> 
>> I assume that there is something that I am missing here? I have specified 
>> the referred and original programs for the Tracked Entity Type, yet this 
>> does not work. 
>> 
>> I also get the following reference error: 
>> 
>> 
>> 
>> I am running v2.30. 
>> 
>> Any help or guidance would be appreciated. 
>> 
>> Kind regards,
>> Terence
>> 
>>  
>> Terence Scott
>> 
>> Global Alliance for Rabies Control (GARC)
>> Pan-African Rabies Control Network (PARACON) Steering Committee
>> terence.sc...@rabiesalliance.org <mailto:terence.sc...@rabiesalliance.org>
>> https://paracon.rabiesalliance.org <https://paracon.rabiesalliance.org/>
>> Skype: tpscott1987
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] File Uploads Tracked Entity Attributes

2018-11-14 Thread Markus Bekken
Hey there Ranvir!
Are you trying to retrieve the file from the API/directly from the backend? Or 
does the user log in, open the tracker and try downloading the file from within 
the tracker app? 

Markus

P.S. we are moving these topics to the community.dhis2.org 
 - a great tool for collaborating, discussing in 
threads and building a searchable knowledge base at the same time.

> 14. nov. 2018 kl. 08:29 skrev Ranvir Maharaj :
> 
> Hey all,
> 
> DHIS information:
> Version: 2.27
> Build revision: e33b34d
> Build date: 2018-04-17 06:50
> I have added a tracked entity attribute with a value type of FILE. Once I 
> have uploaded the file to "/api/fileResources" I get back the usual response 
> and grab the id of the newly created file and assign it to the tracked entity 
> attribute and it saves correctly. 
> 
> The issue I am struggling with is retrieving the file once it has been 
> uploaded. If anyone could assist that would be great!
> ___
> 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] Relationships - relationship link not showing on TE #2

2018-11-14 Thread Markus Bekken
Hey Terence,
you mention programs are you making relations from one enrollment to another? 
How is your relationship type set up? The only relationship type that is 
supported in the tracker clients is tracked entity instance to tracked entity 
instance. The rich possibilities in the new relationship model is starting to 
be consumed in the new capture app first, and is per now  not scheduled to be 
implemented in the current generation of tracker app.

Markus

P.S. we are moving these topics to the community.dhis2.org 
 - a great tool for collaborating, discussing in 
threads and building a searchable knowledge base at the same time.

> 13. nov. 2018 kl. 13:42 skrev Terence Scott 
> :
> 
> Dear Community
> 
> I have been working on creating relationships between two programs. I have 
> managed to create a relationship from 1 program to the other. However, on the 
> enrollment screen for the 2nd TE (TE#2), no program is selected. I then 
> select the appropriate program, but the relationship to the original TE 
> (TE#1) is lost.
> 
> I assume that there is something that I am missing here? I have specified the 
> referred and original programs for the Tracked Entity Type, yet this does not 
> work. 
> 
> I also get the following reference error: 
> 
> 
> 
> I am running v2.30. 
> 
> Any help or guidance would be appreciated. 
> 
> Kind regards,
> Terence
> 
>  
> Terence Scott
> 
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org 
> https://paracon.rabiesalliance.org 
> Skype: tpscott1987
> 
> ___
> 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


Re: [Dhis2-users] Request

2018-11-02 Thread Markus Bekken
Hi there Pradeep,
can you give some more details on the indicator you want to make, and how you 
want to evaluate the date? Its great if you provide the details in a new post 
in community.dhis2.org 

Markus

> 2. nov. 2018 kl. 14:12 skrev Pradeep Kumar Thakur :
> 
> Hi,
>  
> I want to develop program indicators based on date (calendar) elements of 
> Tracker Capture version 2.9. Please suggest me the steps.
>  
> Regards,
> Pradeep
> ___
> 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] 404 response from the API when using Event Capture

2018-11-02 Thread Markus Bekken
Hey Carlos and Kevin,
The eventCaptureGridColumns call is likely not the problem - this error is just 
a bit of log noise that comes in the console for everyone that has never 
rearranged the columns in the event capture. 

Have you tried clearing the cache with the cache cleaner app? Is there any 
other calls failing during the startup that seems to fail? I tried reproducing 
in 2.29 play but the app seems to be working there.

Markus

P.S. we are welcoming you all to join community.dhis2.org 
 for support and discussions on DHIS2.

> 2. nov. 2018 kl. 13:21 skrev Kevin Bolger  >:
> 
> Hi Carlos,
> 
> Thanks for your response. Any idea what the correct format might be?
> 
> Thanks,
> Kevin
> 
> On Fri, Nov 2, 2018 at 1:59 AM Carlos Nyembwe  > wrote:
> Hi Kevin,
> 
> be sure on your API Url, I think It's not well
> 
> Regards
> 
> On Fri, Nov 2, 2018 at 4:54 AM Kevin Bolger  > wrote:
>     This message is eligible for Automatic 
> Cleanup! (kevin.bol...@gmail.com ) Add cleanup 
> rule 
> 
>  | More info 
> 
>  
> Hi Folks,
> 
> I've deployed 2.29 build e1c949f (full About details below) on an aws ec2 
> instance running Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1070-aws x86_64).
> 
> When trying to use the Event Capture app to record a single event the page 
> load stalls. 
> In response to the api call;
> 8080/api/28/userDataStore/gridColumns/eventCaptureGridColumns
> the debugging console in chrome shows the following error; 
> {"httpStatus":"Not 
> Found","httpStatusCode":404,"status":"ERROR","message":"The key 
> 'eventCaptureGridColumns' was not found in the namespace 'gridColumns'."}
>  
> The catalina.out logs don't show any warning or error when the issue occurs 
> or anything referencing an obviously related issue during the ROOT.war 
> deployment. Any suggestions on how to further troubleshoot would be greatly 
> appreciated.
> 
> Best,
> Kevin
>  
> Current user:
> admin
> Version:
> 2.29
> Build revision:
> e1c949f
> Build date:
> 2018-11-02 02:21
> Jasper reports version:
> 6.3.1
> User agent:
> Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, 
> like Gecko) Chrome/70.0.3538.77 Safari/537.36
> Server date:
> 2018-11-02 03:20
> Last analytics table generation:
> Time since last analytics table generation:
> Last analytics table runtime:
> Environment variable:
> DHIS2_HOME
> External configuration directory:
> /home/dhis/config
> File store provider:
> filesystem
> Node ID:
> Cache provider:
> ehcache
> Database type:
> DhisPostgres
> Database name:
> dhis2
> Database user:
> dhis
> Read replica count:
> 0
> Java opts:
> -Xmx768m -Xms512m -Djdk.tls.ephemeralDHKeySize=2048 
> -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 
> -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
> Java version:
> 1.8.0_181
> Java vendor:
> Oracle Corporation
> OS name:
> Linux
> OS architecture:
> amd64
> OS version:
> 4.4.0-1070-aws
> Server memory:
> Mem Total in JVM: 744 Free in JVM: 451 Max Limit: 744
> CPU cores:
> 2
> ___
> 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 
> 
> 
> 
> -- 
> Carlos Nyembwe
> I'm just a Computer Scientist
> 
> Skype: carloscnk1
> Cell: (+243)813166381
> Find me in: | Google Plus  | Linkedin 
>  | Facebook 
>  | Twitter 
>  |
> ___
> 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 
> 


Re: [Dhis2-users] Help needed: Checking a string with single quote in program rule...

2018-10-31 Thread Markus Bekken
Hey MSP - escaping single quotes is not supported as of now, it would be great 
if you create a feature request for it.

As Terence says, there might be workarounds - one suggested below. If "don't 
know" is one of the options in an option set, I am guessing that there is a 
code for this option value - hopefully the code is without a quotation mark. If 
this is the case, open the program rule variable in maintenance and select "use 
code for option set":

When this is checked, you can possibly rewrite your rule to check for the 
option instead:

#{variable} == 'OPT_DONT_KNOW_CODE'

Markus

> 31. okt. 2018 kl. 07:55 skrev Terence Scott  >:
> 
> Hi MSP
> 
> I am not sure how to rectify the problem directly, but several easy solutions 
> would be to simply reword the response to: 'Unsure', 'unknown', 'not known' 
> or similar. 
> 
> Kind regards,
> Terence
> 
> Terence Scott
> 
> Global Alliance for Rabies Control (GARC)
> Pan-African Rabies Control Network (PARACON) Steering Committee
> terence.sc...@rabiesalliance.org 
> https://paracon.rabiesalliance.org 
> Skype: tpscott1987
> 
> 
> 
> On Tue, Oct 30, 2018 at 10:26 PM M.Selvaraaj Prabu  > wrote:
> Hi all.
> 
> Kindly assist me to resolve this issue. 
> 
> I want to check a single quoted string in a program rule such as "variable == 
> 'Don't know'". I tried using two single quotes (Don''t know) and escaped with 
> a backward slash (Don\'t know) but it doesn't work.
> 
> Any suggestions? Your help is very much appreciated.
> 
> Thanks and regards.
> 
> MSP
> ___
> 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


[Dhis2-users] Capture app - new beta version 0.9.3!

2018-10-22 Thread Markus Bekken
Thank you all for the feedback on the beta testing of the Capture app so far.

Today we released Capture app beta 3(version 0.9.3) on the app store, and you 
can install the app on your 2.30 or 2.31 DHIS2 instance through the App Store 
in the App Management app. 

The new version of the Capture app features custom form support, and a host of 
UI and UX updates.

Please continue sending suggestions and questions, and report any bugs in Jira 
with the "[App] Capture" component.

Best regards - on behalf of the tracker team,
Markus

> 2. okt. 2018 kl. 17:26 skrev Markus Bekken  <mailto:mar...@dhis2.org>>:
> 
> 
> 
> The official Capture app is now ready for beta testing, and can be downloaded 
> from the App Store. The Capture app is currently reimplementing the 
> functionality of Event Capture. Are you running single event programs on a 
> DHIS2 version of 2.30 or newer, then we hope you will download the app and 
> participate in the beta testing. Bugs can be reported in Jira under the 
> component "[App] Capture". Any discussions, questions or suggestions are also 
> welcome. 
> 
> In the short term the Capture app is scheduled to completely replace Event 
> Capture in 2.31. The ultimate plan for Capture is to also support Tracker 
> programs, and then the Aggregate data entry.
> 
> Happy testing - we look forward to your feedback!
> 
> Best regards - on behalf of the tracker team,
> Markus
> 
> 
> 
> Known limitations 
> We are working to implement the following known limitations in the current 
> beta version(0.9.2) of the Capture app:
> - Pickers for coordinates and polygons does not yet support address searching.
> - Custom form not yet supported - any custom forms will be shown as a default 
> form in the current version.
> - Non-gregorian calendars not supported.
> 
> How to install
> If you want to test on play.dhis2.org/2.30 <http://play.dhis2.org/2.30>, you 
> will find the Capture app installed there. 
> If you want to test on your own 2.30 or 2.31 snapshot DHIS2 instance, install 
> the Capture app from App Management:
> 1. Open the App Management app.
> 
> 
> 2. From "App Store", Install the "Capture - Beta 2" app:
> 
> 
> 3. Also, remember to give your user roles for capturing single event data the 
> extra "Capture app" authority. This is done in the "Apps" section of a user 
> role.
> 

___
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] Future Dates Not Allowed in Tracker Sections

2018-10-17 Thread Markus Bekken
Hey there, can you try to reproduce on the play.dhis2.org 
 server?

Which server are you running on?

> 17. okt. 2018 kl. 12:10 skrev Walusiku Muyunda  >:
> 
> Dear All,
> 
> I have an issue in one of our Tracker programs where a date field in a 
> section is not allowing future dates. I have ticked the Date is Future option 
> in Section management but still its only allowing today or older dates..
> 
> Please help.
> 
> Walusiku J. Muyunda
> 
> Cell: +260967006614
> Cell: +260971000614
> Cell: +260953063387
> "We have heaven to win and hell to shun, our lives testify better!" 
> 
> ___
> 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] Tracker Referral Behaviour

2018-10-04 Thread Markus Bekken
Hei there Nick,
thank you for bringing it up. We had it identified an reported in Jira, and we 
are working on a solution for it in the current development Milestone for 
Tracker:
https://jira.dhis2.org/browse/DHIS2-4587

Best regards,
Markus

> 4. okt. 2018 kl. 06:46 skrev Shurajit Dutta :
> 
> Hi 
> 
> Am having a challenge with the referrals in tracker. Let say I have a program 
> in which a user is assigned to only one facility for the purposes of data 
> entry. There may be an occasion where I would like to refer this person to 
> another org unit/facility for additional services within the same program. I 
> do not want that user to have the ability to enter any data within the org 
> unit they are referring to, I just want to them to be able to refer patients 
> to other org units in the system. 
> 
> In the original case, if my user is assigned only one org unit (a facility), 
> and I try to refer them to another org unit, I receive the following message
> 
> 
> 
> The error message would imply that the user needs to have write access to the 
> org unit they are referring to. I tested this further by assigning some 
> additional data entry org units to the user and then I was able to perform 
> the referral with no issues. 
> 
> I would like to get this working without allowing a user to have multiple 
> data entry org units while still allowing them to refer to other org units.
> 
> This was tested using 2.29, build 041bcee on Oct 2, 2018.
> 
> Thanks,
> Nick
> 
> -- 
> Shurajit Dutta (MPH, MHI)
> Health Information Systems Adviser
> ___
> 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


[Dhis2-users] Require validation of event data

2018-10-02 Thread Markus Bekken
Dear community,
We are working on proper back-end validation of required fields for events, as 
part of Jira issue: https://jira.dhis2.org/browse/DHIS2-4433
In this effort we are replacing a flag that is set in the program stage 
metadata called "Complete only if validation passes". We are replacing the flag 
with a three-coice list that you can read about in the Jira if you are 
interested. 

We have a question for the community on one of the designed validation 
strategies:
Does anyone know a use case where we need the validation strategy that is 
called "NONE"? This validation strategy would mean that required fields are 
never validated, not even when the user completes the event. It would seem that 
in these kinds of use cases you would be able to not assign any required fields 
at all, in stead of using the validation strategy of "NONE". The reason "NONE" 
was added to the design in the first place was that it would be the equivalent 
to not checking the flag called "Complete only if validation passes".

If we do not have any use cases for the "NONE" validation strategy, we want to 
take it away and effectively remove the old flag of "Complete only if 
validation passes". Assuming you always would want to validate required fields 
on complete as a minimum. 

Looking forward to hearing from you,
The tracker team___
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] Tracker Program Stages order

2018-09-13 Thread Markus Bekken
From you screenshot it appears that your events is not sorted in the 
chronological order that would be expected. I am however not able to reproduce 
the issue in the 2.28 play server. Have you recently changed the date format 
settings for your server? What is your current date format settings?

Markus

> 13. sep. 2018 kl. 15:56 skrev Walusiku Muyunda :
> 
> 
> 
> On Thu, Sep 13, 2018 at 3:42 PM Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> The timeline data entry (should)use the dates of the event for sorting of the 
> individual events. The tabular entry uses the order of the program stages for 
> the tabs on the left side, and internal to each program stage the event date 
> of the individual events is used for sorting. I presume that your events are 
> being generated upon enrollment - can you provide a screenshot of the jumbled 
> events in the timeline entry?
> 
>> 13. sep. 2018 kl. 15:30 skrev Walusiku Muyunda > <mailto:jomuw...@gmail.com>>:
>> 
>> Thanks Markus, here are the details about DHIS2 Install:
>> Version: 2.28, Build revision: 533e983, Build date: 2018-03-06 06:23, 
>> 
>> Yes thats where am order the stages. But when I register a client and open 
>> the person dashboard, the Data Entry Timeline  shows all the stages in a 
>> seemingly jumbled order. I have also specified the Numver of days from 
>> Enrollment for each stage but that too does not seem to be of any effect In 
>> Data Entry timeline. When I remove the Data entry timeline and use the 
>> Tabular Data Entry, they come in the correct order.
>>  
>> Walusiku J. Muyunda
>> 
>> 
>> On Thu, Sep 13, 2018 at 10:07 AM Markus Bekken > <mailto:mar...@dhis2.org>> wrote:
>> Hi there Walusiku, 
>> I presume you have ordered the program stages in the maintenance app, in the 
>> "4. Program stages" step of the Program wizard. Can you provide some details 
>> on where is the ordering appears differently than in the maintenance app? 
>> Can you also submit the deftails of the DHIS2 version you are testing on? 
>> You can get this in the "About DHIS 2" option in the profile menu.
>> 
>> Markus
>> 
>>> 11. sep. 2018 kl. 10:03 skrev Walusiku Muyunda >> <mailto:jomuw...@gmail.com>>:
>>> 
>>> Dear All,
>>> 
>>> I have a program with about 12 scheduled visits(stages). I have ordered 
>>> them in the sequence they should appear but for some reason they seem to 
>>> have their own order as they are appearing not according to the ordering I 
>>> shuffled them to. Is there something I am missing. I used the days from 
>>> start option as well as the stage order to determine how they appear but 
>>> seem not to be working.
>>> 
>>> Thank you.
>>> 
>>> Walusiku J. Muyunda
>>> 
>>> Cell: +260967006614
>>> Cell: +260971000614
>>> Cell: +260953063387
>>> "We have heaven to win and hell to shun, our lives testify better!" 
>>> <http://wildvoices.blogspot.com/>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users 
>>> <https://launchpad.net/~dhis2-users>
>>> Post to : dhis2-users@lists.launchpad.net 
>>> <mailto:dhis2-users@lists.launchpad.net>
>>> Unsubscribe : https://launchpad.net/~dhis2-users 
>>> <https://launchpad.net/~dhis2-users>
>>> More help   : https://help.launchpad.net/ListHelp 
>>> <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] Tracker Program Stages order

2018-09-13 Thread Markus Bekken
The timeline data entry (should)use the dates of the event for sorting of the 
individual events. The tabular entry uses the order of the program stages for 
the tabs on the left side, and internal to each program stage the event date of 
the individual events is used for sorting. I presume that your events are being 
generated upon enrollment - can you provide a screenshot of the jumbled events 
in the timeline entry?

> 13. sep. 2018 kl. 15:30 skrev Walusiku Muyunda :
> 
> Thanks Markus, here are the details about DHIS2 Install:
> Version: 2.28, Build revision: 533e983, Build date: 2018-03-06 06:23, 
> 
> Yes thats where am order the stages. But when I register a client and open 
> the person dashboard, the Data Entry Timeline  shows all the stages in a 
> seemingly jumbled order. I have also specified the Numver of days from 
> Enrollment for each stage but that too does not seem to be of any effect In 
> Data Entry timeline. When I remove the Data entry timeline and use the 
> Tabular Data Entry, they come in the correct order.
>  
> Walusiku J. Muyunda
> 
> 
> On Thu, Sep 13, 2018 at 10:07 AM Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hi there Walusiku, 
> I presume you have ordered the program stages in the maintenance app, in the 
> "4. Program stages" step of the Program wizard. Can you provide some details 
> on where is the ordering appears differently than in the maintenance app? Can 
> you also submit the deftails of the DHIS2 version you are testing on? You can 
> get this in the "About DHIS 2" option in the profile menu.
> 
> Markus
> 
>> 11. sep. 2018 kl. 10:03 skrev Walusiku Muyunda > <mailto:jomuw...@gmail.com>>:
>> 
>> Dear All,
>> 
>> I have a program with about 12 scheduled visits(stages). I have ordered them 
>> in the sequence they should appear but for some reason they seem to have 
>> their own order as they are appearing not according to the ordering I 
>> shuffled them to. Is there something I am missing. I used the days from 
>> start option as well as the stage order to determine how they appear but 
>> seem not to be working.
>> 
>> Thank you.
>> 
>> Walusiku J. Muyunda
>> 
>> Cell: +260967006614
>> Cell: +260971000614
>> Cell: +260953063387
>> "We have heaven to win and hell to shun, our lives testify better!" 
>> <http://wildvoices.blogspot.com/>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] Tracker Program Stages order

2018-09-13 Thread Markus Bekken
Hi there Walusiku, 
I presume you have ordered the program stages in the maintenance app, in the 
"4. Program stages" step of the Program wizard. Can you provide some details on 
where is the ordering appears differently than in the maintenance app? Can you 
also submit the deftails of the DHIS2 version you are testing on? You can get 
this in the "About DHIS 2" option in the profile menu.

Markus

> 11. sep. 2018 kl. 10:03 skrev Walusiku Muyunda  >:
> 
> Dear All,
> 
> I have a program with about 12 scheduled visits(stages). I have ordered them 
> in the sequence they should appear but for some reason they seem to have 
> their own order as they are appearing not according to the ordering I 
> shuffled them to. Is there something I am missing. I used the days from start 
> option as well as the stage order to determine how they appear but seem not 
> to be working.
> 
> Thank you.
> 
> Walusiku J. Muyunda
> 
> Cell: +260967006614
> Cell: +260971000614
> Cell: +260953063387
> "We have heaven to win and hell to shun, our lives testify better!" 
> 
> ___
> 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] Event Sync Error From Dhis2 Mobile App V2.29

2018-08-24 Thread Markus Bekken
Hey Calle, Sourabh, others. Thanks for reporting, we are looking at this on 
priority.

You can follow the progress in Jira here: 
https://jira.dhis2.org/browse/DHIS2-4480 


> 24. aug. 2018 kl. 11:12 skrev Calle Hedberg  >:
> 
> Sourabh,
> 
> This bug affects the browser too, blocking data capture. Viet is 
> investigating the issue, according to Markus. No other info yet.
> 
> Regards
> calle
> 
> On Thu, 23 Aug 2018 at 15:07, Sourabh Bhardwaj  > wrote:
> Hi All,
> 
> We have recently upgrade Dhis2 from version 2.27 to 2.29. While trying to 
> sync enrollment/events from android app , I am able to sync enrollment but 
> following response is coming for event sync: 
> 
> Failed to lazily initialize a collection of 
> role:org.hisp.dhis.dataelement.DataelementCategoryOptionCombo.categoryOptions,
>  could not initialize proxy: no sessions
> 
> However I am able to sync events successfully using the 'superuser' access. 
> Is there any role related to CategoryOptionCombo which I am missing on if 
> so,I am using tracker module only not the aggregated. 
> 
> I have attached the screenshot below with this email:
> 
> Thanks & Regards,
> Sourabh Bhardwaj
> HISP India
> 
> 
> 
> 
>  
> ___
> 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 
> 
> 
> 
> -- 
> *** <>
> Calle Hedberg
> 
> 46D Alma Road, 7700 Rosebank, SOUTH AFRICA
> 
> Tel/fax (home): +27-21-685-6472
> 
> Cell: +27-82-853-5352
> 
> Iridium SatPhone: +8816-315-19119
> 
> Email: calle.hedb...@gmail.com 
> Skype: calle_hedberg
> 
> ***
> 
> 
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-08-22 Thread Markus Bekken
Stanley, try this URL:
https://fhi360mal.baosystems.com/api/trackedEntityInstances/query.csv 
<https://fhi360mal.baosystems.com/api/trackedEntityInstances/query.csv>

> 22. aug. 2018 kl. 12:14 skrev Morten Olav Hansen :
> 
> I mean the name of your actual .war file, not the version of DHIS2... since 
> you are getting a 404, it means you are pointing to an invalid URL, and that 
> error is coming from tomcat and not dhis2.. which means you are probably not 
> pointing to the right path on your tomcat server.
> 
> -- 
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> Team Integration Lead
> University of Oslo
> http://www.dhis2.org
>  <http://www.dhis2.org/>
> 
> On Wed, Aug 22, 2018 at 2:42 PM Stanley Kalyati  <mailto:skaly...@gmail.com>> wrote:
> Dear Morten,
> 
> Yes it is 2.29.
> 
> 
> 
> On Wed, Aug 22, 2018 at 9:29 AM Morten Olav Hansen  <mailto:mor...@dhis2.org>> wrote:
> Hi
> 
> Is your war file named 2.29? if not the start of that path is wrong (we have 
> 2.29 2.28 etc on your play server to be able to have multiple instances..)
> 
> -- 
> Morten Olav Hansen
> Senior Engineer, DHIS 2
> Team Integration Lead
> University of Oslo
> http://www.dhis2.org
>  <http://www.dhis2.org/>
> 
> On Wed, Aug 22, 2018 at 2:13 PM Markus Bekken  <mailto:markus.bek...@gmail.com>> wrote:
> Hey again!
> Can you send me the full link you are trying, and also the link to the login 
> page of your dhis instance?
> 
> Markus
> 
>> 22. aug. 2018 kl. 08:57 skrev Stanley Kalyati > <mailto:skaly...@gmail.com>>:
>> 
>> Hi Markus,
>> 
>> I have tried wgoing directly to the API but i keep getting this error
>> What could be the problem.I am using version 2.29
>> HTTP Status 404 - /2.29/api/29/trackedEntityInstances/query.csv
>> 
>> 
>> On Thu, Jul 5, 2018 at 9:32 AM Markus Bekken > <mailto:mar...@dhis2.org>> wrote:
>> Hey Stanley,
>> thanks for the feedback.
>> 
>> You can go directly to the API and get the CSV:
>> https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd&ouMode=DESCENDANTS&program=WSGAb5XwJ3Y
>>  
>> <https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd&ouMode=DESCENDANTS&program=WSGAb5XwJ3Y>
>> 
>> - ou would be the UID of your top/root organization unit. 
>> - program would be the uid of the program you want to download TEIs for.
>> 
>> You can perhaps create a "external resource" and put this link on a 
>> dashboard for use of your end users.
>> 
>> Let me know if this helps :)
>> 
>> Markus
>> 
>>> 5. jul. 2018 kl. 10:18 skrev Stanley Kalyati >> <mailto:skaly...@gmail.com>>:
>>> 
>>> Hey Markus,
>>> 
>>> This makes alot of sense though.
>>> 
>>> However,my issue is when i want to download the entire list of TEI's into 
>>> an excel or CV for other analysis outside DHIS2,i can not do so.Initially i 
>>> would simply List All and download the list of TEI's.
>>> 
>>> If there is a way i can do that,then thats fine.
>>> 
>>> Thank you
>>> 
>>> Stanley
>>> 
>>> On Thu, Jul 5, 2018 at 9:06 AM Markus Bekken >> <mailto:mar...@dhis2.org>> wrote:
>>> Hey Stanley,
>>> You are right - the "List all" button is no longer there in the reworked UI 
>>> of 2.29. We are actively working on making the Tracker data more secure, 
>>> and the use case for the list all function was perhaps not understood 
>>> properly by us when we designed 2.29. Can you let us know a bit about your 
>>> use case? Will the end user click the button to list all TEIs in the entire 
>>> system and start paging through the list?
>>> 
>>> Best regards,
>>> Markus
>>> 
>>> 
>>>> 4. jul. 2018 kl. 17:25 skrev Stanley Kalyati >>> <mailto:skaly...@gmail.com>>:
>>>> 
>>>> Hi Marta,
>>>> 
>>>> Actually when i select an OU i am able to see the TEI's but to display all 
>>>> TEI's across all OU's like we used to in versions 2.28 below where we 
>>>> could select 'List All' and all TEI's could be displayed,i dont see it in 
>>>> 2.29.
>>>> 
>>>> Any ideas
>>>> 
>>>> On Wed, Jul 4, 2018 at 4:18 PM Marta Vila >>> <mailto:martav...@gmail.com>> wrote:
>>>> Hi Stanley,
>>>> 
>

Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-08-22 Thread Markus Bekken
Hey again!
Can you send me the full link you are trying, and also the link to the login 
page of your dhis instance?

Markus

> 22. aug. 2018 kl. 08:57 skrev Stanley Kalyati  <mailto:skaly...@gmail.com>>:
> 
> Hi Markus,
> 
> I have tried wgoing directly to the API but i keep getting this error
> What could be the problem.I am using version 2.29
> HTTP Status 404 - /2.29/api/29/trackedEntityInstances/query.csv
> 
> 
> On Thu, Jul 5, 2018 at 9:32 AM Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hey Stanley,
> thanks for the feedback.
> 
> You can go directly to the API and get the CSV:
> https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd&ouMode=DESCENDANTS&program=WSGAb5XwJ3Y
>  
> <https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd&ouMode=DESCENDANTS&program=WSGAb5XwJ3Y>
> 
> - ou would be the UID of your top/root organization unit. 
> - program would be the uid of the program you want to download TEIs for.
> 
> You can perhaps create a "external resource" and put this link on a dashboard 
> for use of your end users.
> 
> Let me know if this helps :)
> 
> Markus
> 
>> 5. jul. 2018 kl. 10:18 skrev Stanley Kalyati > <mailto:skaly...@gmail.com>>:
>> 
>> Hey Markus,
>> 
>> This makes alot of sense though.
>> 
>> However,my issue is when i want to download the entire list of TEI's into an 
>> excel or CV for other analysis outside DHIS2,i can not do so.Initially i 
>> would simply List All and download the list of TEI's.
>> 
>> If there is a way i can do that,then thats fine.
>> 
>> Thank you
>> 
>> Stanley
>> 
>> On Thu, Jul 5, 2018 at 9:06 AM Markus Bekken > <mailto:mar...@dhis2.org>> wrote:
>> Hey Stanley,
>> You are right - the "List all" button is no longer there in the reworked UI 
>> of 2.29. We are actively working on making the Tracker data more secure, and 
>> the use case for the list all function was perhaps not understood properly 
>> by us when we designed 2.29. Can you let us know a bit about your use case? 
>> Will the end user click the button to list all TEIs in the entire system and 
>> start paging through the list?
>> 
>> Best regards,
>> Markus
>> 
>> 
>>> 4. jul. 2018 kl. 17:25 skrev Stanley Kalyati >> <mailto:skaly...@gmail.com>>:
>>> 
>>> Hi Marta,
>>> 
>>> Actually when i select an OU i am able to see the TEI's but to display all 
>>> TEI's across all OU's like we used to in versions 2.28 below where we could 
>>> select 'List All' and all TEI's could be displayed,i dont see it in 2.29.
>>> 
>>> Any ideas
>>> 
>>> On Wed, Jul 4, 2018 at 4:18 PM Marta Vila >> <mailto:martav...@gmail.com>> wrote:
>>> Hi Stanley,
>>> 
>>> not seeing yout TEI's could be caused by the "Display front page list" 
>>> parameter not being marked. 
>>> It is in the program details step when you create or edit your program.
>>> 
>>> Cheers,
>>> Marta
>>> 
>>> On 4 July 2018 at 16:11, Stanley Kalyati >> <mailto:skaly...@gmail.com>> wrote:
>>> Anyone to assist here?
>>> 
>>> On Fri, Jun 29, 2018 at 11:56 AM Stanley Kalyati >> <mailto:skaly...@gmail.com>> wrote:
>>> With other versions of DHIS2,i would simply click on List All and all TEI 
>>> regardless of OU registered from,they would all appear and i would download 
>>> and review i may.
>>> 
>>> How can i do this in 2.29?
>>> 
>>> Thanks
>>> 
>>> Stanley
>>> 
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs 
>>> <https://launchpad.net/~dhis2-devs>
>>> Post to : dhis2-d...@lists.launchpad.net 
>>> <mailto:dhis2-d...@lists.launchpad.net>
>>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>>> <https://launchpad.net/~dhis2-devs>
>>> More help   : https://help.launchpad.net/ListHelp 
>>> <https://help.launchpad.net/ListHelp>
>>> 
>>> 
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users 
>>> <https://launchpad.net/~dhis2-users>
>>> Post to : dhis2-users@lists.launchpad.net 
>>> <mailto:dhis2-users@lists.launchpad.net>
>>> Unsubscribe : https://launchpad.net/~dhis2-users 
>>> <https://launchpad.net/~dhis2-users>
>>> More help   : https://help.launchpad.net/ListHelp 
>>> <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] Program rule Assign

2018-07-23 Thread Markus Bekken
Hey Riddy - If I follow you correctly, the (1) in your image is assigned by a 
program rule, and works as expected: "(checkmark)Yes" is the way we display a 
Yes/No data element where"Yes" is selected and the mode is read only.

Markus

> 23. jul. 2018 kl. 10:48 skrev riddy ndoma  <mailto:riddynd...@gmail.com>>:
> 
> Hi, Marius I had done this test before I made this email, the display was not 
> always good so much that I did not know the value that will actually be 
> stored.
> The image shows the difference of (1) and (2) 
> 
> ​
> 
> 2018-07-23 9:21 GMT+02:00 Markus Bekken  <mailto:mar...@dhis2.org>>:
> Hey Riddy - program rules use the values true and false for yes/no data 
> elements. Try assigning  true instead of 1.
> 
> The display format indicates that the field is read only. Any assigned field 
> is shown as a read only field by the data entry widget. 
> 
> Markus
> 
> 23. jul. 2018 kl. 05:21 skrev riddy ndoma  <mailto:riddynd...@gmail.com>>:
> 
>> Hello,
>> I would like to tick Yes / No auautomatically after confirming that 4 
>> previous data elements have values that respect a certain range. 
>> My condition is respected and the program rule works but I have a small 
>> concern for the level of value to put in the expression so that "Yes" is 
>> checked in GUI. I put 1 in the expression to assign, the display does not 
>> check "Yes" but it shows me "No" with a funny format (see picture )
>> 
>> ​
>> Cheers,
>> 
>> -- 
>> Riddy NDOMA 
>> Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
>> Twitter: riddyndoma, LinkedIn: riddy ndoma
>> Blog: http://riddyndoma.blogspot.com/ <http://riddyndoma.blogspot.com/>
>> Vous servir est mon désire (Serving you is my desire)
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> 
> 
> 
> -- 
> Riddy NDOMA 
> Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
> Twitter: riddyndoma, LinkedIn: riddy ndoma
> Blog: http://riddyndoma.blogspot.com/ <http://riddyndoma.blogspot.com/>
> Vous servir est mon désire (Serving you is my desire)

___
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] Program rule Assign

2018-07-23 Thread Markus Bekken
Hey Riddy - program rules use the values true and false for yes/no data 
elements. Try assigning  true instead of 1.

The display format indicates that the field is read only. Any assigned field is 
shown as a read only field by the data entry widget. 

Markus

> 23. jul. 2018 kl. 05:21 skrev riddy ndoma :
> 
> Hello,
> I would like to tick Yes / No auautomatically after confirming that 4 
> previous data elements have values that respect a certain range. 
> My condition is respected and the program rule works but I have a small 
> concern for the level of value to put in the expression so that "Yes" is 
> checked in GUI. I put 1 in the expression to assign, the display does not 
> check "Yes" but it shows me "No" with a funny format (see picture )
> 
> ​
> Cheers,
> 
> -- 
> Riddy NDOMA 
> Skype: riddyndoma, G+: riddyndoma, FB: riddy ndoma
> Twitter: riddyndoma, LinkedIn: riddy ndoma
> Blog: http://riddyndoma.blogspot.com/
> Vous servir est mon désire (Serving you is my desire)
> ___
> 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] Error while adding Relationship in tracker capture v27

2018-07-17 Thread Markus Bekken
Hey Wasib, please report a Jira bug on this.

Markus

> 17. jul. 2018 kl. 12:38 skrev Wasib Tariq  >:
> 
> Hi All,
> 
> I am trying to add a relationship in tracker capture v27 while saving it 
> throws an error. I've attached the screenshot of the error.
> 
> I've also tried it on (https://play.dhis2.org/2.27/ 
> ).
> 
> Version:
> 2.27
> Build revision:
> 6c1c3ab
> 
> Any help will be appreciated.
> 
> -- 
> Best Regards
>  Wasib
> HISP India
>  screenshot.PNG>___
> 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


Re: [Dhis2-users] [Dhis2-devs] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-07-05 Thread Markus Bekken
Hey Stanley,
thanks for the feedback.

You can go directly to the API and get the CSV:
https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd&ouMode=DESCENDANTS&program=WSGAb5XwJ3Y
 
<https://play.dhis2.org/2.28/api/28/trackedEntityInstances/query.csv?ou=ImspTQPwCqd&ouMode=DESCENDANTS&program=WSGAb5XwJ3Y>

- ou would be the UID of your top/root organization unit. 
- program would be the uid of the program you want to download TEIs for.

You can perhaps create a "external resource" and put this link on a dashboard 
for use of your end users.

Let me know if this helps :)

Markus

> 5. jul. 2018 kl. 10:18 skrev Stanley Kalyati :
> 
> Hey Markus,
> 
> This makes alot of sense though.
> 
> However,my issue is when i want to download the entire list of TEI's into an 
> excel or CV for other analysis outside DHIS2,i can not do so.Initially i 
> would simply List All and download the list of TEI's.
> 
> If there is a way i can do that,then thats fine.
> 
> Thank you
> 
> Stanley
> 
> On Thu, Jul 5, 2018 at 9:06 AM Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hey Stanley,
> You are right - the "List all" button is no longer there in the reworked UI 
> of 2.29. We are actively working on making the Tracker data more secure, and 
> the use case for the list all function was perhaps not understood properly by 
> us when we designed 2.29. Can you let us know a bit about your use case? Will 
> the end user click the button to list all TEIs in the entire system and start 
> paging through the list?
> 
> Best regards,
> Markus
> 
> 
>> 4. jul. 2018 kl. 17:25 skrev Stanley Kalyati > <mailto:skaly...@gmail.com>>:
>> 
>> Hi Marta,
>> 
>> Actually when i select an OU i am able to see the TEI's but to display all 
>> TEI's across all OU's like we used to in versions 2.28 below where we could 
>> select 'List All' and all TEI's could be displayed,i dont see it in 2.29.
>> 
>> Any ideas
>> 
>> On Wed, Jul 4, 2018 at 4:18 PM Marta Vila > <mailto:martav...@gmail.com>> wrote:
>> Hi Stanley,
>> 
>> not seeing yout TEI's could be caused by the "Display front page list" 
>> parameter not being marked. 
>> It is in the program details step when you create or edit your program.
>> 
>> Cheers,
>> Marta
>> 
>> On 4 July 2018 at 16:11, Stanley Kalyati > <mailto:skaly...@gmail.com>> wrote:
>> Anyone to assist here?
>> 
>> On Fri, Jun 29, 2018 at 11:56 AM Stanley Kalyati > <mailto:skaly...@gmail.com>> wrote:
>> With other versions of DHIS2,i would simply click on List All and all TEI 
>> regardless of OU registered from,they would all appear and i would download 
>> and review i may.
>> 
>> How can i do this in 2.29?
>> 
>> Thanks
>> 
>> Stanley
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] HOW TO DOWNLOAD TEI'S FROM 2.29 TRACKER CAPTURE

2018-07-05 Thread Markus Bekken
Hey Stanley,
You are right - the "List all" button is no longer there in the reworked UI of 
2.29. We are actively working on making the Tracker data more secure, and the 
use case for the list all function was perhaps not understood properly by us 
when we designed 2.29. Can you let us know a bit about your use case? Will the 
end user click the button to list all TEIs in the entire system and start 
paging through the list?

Best regards,
Markus


> 4. jul. 2018 kl. 17:25 skrev Stanley Kalyati  >:
> 
> Hi Marta,
> 
> Actually when i select an OU i am able to see the TEI's but to display all 
> TEI's across all OU's like we used to in versions 2.28 below where we could 
> select 'List All' and all TEI's could be displayed,i dont see it in 2.29.
> 
> Any ideas
> 
> On Wed, Jul 4, 2018 at 4:18 PM Marta Vila  > wrote:
> Hi Stanley,
> 
> not seeing yout TEI's could be caused by the "Display front page list" 
> parameter not being marked. 
> It is in the program details step when you create or edit your program.
> 
> Cheers,
> Marta
> 
> On 4 July 2018 at 16:11, Stanley Kalyati  > wrote:
> Anyone to assist here?
> 
> On Fri, Jun 29, 2018 at 11:56 AM Stanley Kalyati  > wrote:
> With other versions of DHIS2,i would simply click on List All and all TEI 
> regardless of OU registered from,they would all appear and i would download 
> and review i may.
> 
> How can i do this in 2.29?
> 
> Thanks
> 
> Stanley
> 
> ___
> 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] Change enrollment date in tracker

2018-04-20 Thread Markus Bekken
Hi Thierry,
this is not currently possible - but we have this jira for allowing it:
https://jira.dhis2.org/browse/DHIS2-1720 


Feel free to vote and add details from your use case to the issue.

Markus


> 19. apr. 2018 kl. 22:45 skrev Thierry Octave :
> 
> Hi all,
>  
> How could I change enrollment date for created tracked entity instances in a 
> tracker program ?
>  
> Best,
>  
> Thierry
> The DAI email disclaimer can be found at 
> http://www.dai.com/disclaimer.  
> ___
> 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] data level sharing and access control in 2.29

2018-04-16 Thread Markus Bekken
Hi there!
To capture data for a given organization unit in the tree a user will need to 
have access to capture data for the organization or a parent, and you would 
also need Can capture data authority for the program, program stage or data 
set. The new data sharing levels work much the same as the old user role based 
program/dataset access, but provides more fine-grained options for giving 
access only to parts of a program. Hope this answers your question - let us 
know how well the new sharing levels fit your use case!

Markus

> 16. apr. 2018 kl. 13:09 skrev arungatom65 :
> 
> Halo Lars and Team
> Thanks alot for this update hopefully it will enhance access and control 
> rights to information sharing. Will it work within the cascade of hierarchy 
> of orgunits or pegged on the level of user roles?
> Thanks
> 
> 
> 
> Sent from my Samsung Galaxy smartphone.
>  Original message 
> From: Lars Helge Øverland mailto:l...@dhis2.org>> 
> Date: 16/04/2018 11:52 (GMT+03:00)
> To: DHIS 2 Users list  >, DHIS 2 Developers list 
> mailto:dhis2-d...@lists.launchpad.net>> 
> Subject: [Dhis2-users] data level sharing and access control in 2.29
> 
> 
> Hi all,
> 
> in 2.29 we introduced a significant change in the access control solution in 
> DHIS 2.
> 
> In essence, two new levels within the sharing solution were introduced: Can 
> capture data and Can view data. These levels applies to capturing data/events 
> and viewing data/events in analytics, and complements the two existing levels 
> so that we now have:
> 
> Metadata
> --
> 1. Can edit and view metadata
> 2. Can view metadata
> 
> Data/events
> --
> 3. Can capture and view data
> 4. Can view data
> 
> 
> This means that you can now control who can capture data for data sets, 
> programs and program stages through the sharing solution. Previous to 2.29 
> this was done through user roles, where data sets and programs were 
> associated with user roles.
> 
> You can also control who can see data in analytics for programs and category 
> options through the new "can view data" sharing level.
> 
> 
> We have updated the sharing user documentation to reflect this:
> 
> https://docs.dhis2.org/master/en/user/html/sharing.html 
> 
> 
> 
> We have also have some excellent new videos which elaborates on this topic - 
> look for "Data level sharing":
> 
> https://www.dhis2.org/spotlight 
> 
> 
> The motivation behind this change in the access control model is:
> 
> - It provides a single place to control access to DHIS 2 objects. The user 
> role associations to data sets and programs have been removed and replaced by 
> the mentioned sharing levels.
> 
> - It opens for more flexibility in access control. Going forward we plan to 
> introduce more fine-grained data level sharing and include support for 
> entities like data elements and tracked entity attributes.
> 
> - It allows better control over who can view data in analytics, in particular 
> for program and tracker data.
> 
> 
> The 2.29 upgrade script will create a user group per user role and share 
> those groups with the appropriate data sets and programs. You can of course 
> opt not to run this part of the script and instead do the upgrade manually.
> 
> https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/upgrade-229.sql
>  
> 
> 
> 
> best regards,
> 
> Lars
> 
> 
> PS. thanks Nick Dutta for excellent videos.
> 
> 
> -- 
> Lars Helge Øverland
> Technical lead, DHIS 2
> University of Oslo
> l...@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 
> 
___
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] Cohort and referrals

2018-04-16 Thread Markus Bekken
Hi there Sakibou!
You are correct. When permanently referring a patient, this will update the 
enrolling orgunit of the current enrollment. Each enrollment can only be 
counted in one orgunit, and your enrollment program indicator would now 
consider this enrollment part of facility B. 
There is however some points to mention:
- All events that occurred in facility A will stay there. So any event program 
indicator would evaluate events as part of their orgiginal org unit.
- All previous enrollments will remain unchanged. Only the active enrollment at 
the time of the referral will be updated.

Markus

> 11. apr. 2018 kl. 13:52 skrev Sakibou Alassani :
> 
> Hi
> Please I would like to understand well how referral is managed in DHIS2 
> database management wise. In case of referral the enrollment organisation 
> unit change in the database right?
>  If yes how is cohort going to be managed in the health facility where the 
> patient has been referred from before the transfer.
> For instance if a patient is enrolled in January 2016 in health Facility A. 
> In the calculation of the cohort this patient should be alright counted.
> If in 2017 the patient is referred to Facility B, when testing the program 
> indicators for 2016.This patient is no more counted for facility A. 
> 
> -- 
> 
> Sakibou 
> 
> ___
> 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] Program indicator expressions

2018-04-13 Thread Markus Bekken
Thanks Channara,
please report this as a bug in Jira.

Markus

> 13. apr. 2018 kl. 06:32 skrev channara rin :
> 
> Hi Markus,
> DHIS V2.28, Database:Postgresql
> 
> I tried like this too but i saw error in browser console and result display 
> "false". like below:
> 
> 
> 
> 
> On Thu, Apr 12, 2018 at 5:34 PM, Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> the below expression should work, yes :)
> 
> 
>> 12. apr. 2018 kl. 11:13 skrev Jane Greig > <mailto:jane.gr...@london.msf.org>>:
>> 
>> So numeric would solve it for us?
>> That is, if the code for the option we want is numeric = 2 in all 3 data 
>> elements, this should work?:
>> d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 2 ',1,0) +
>> d2:condition('#{qaDVwQUHD0j.FFpJ2FZU7rJ} == 2 ',1,0) +
>> d2:condition('#{qaDVwQUHD0j.dLKjtfo7GD3} == 2 ',1,0)
>>  
>>   <>
>> From: Markus Bekken [mailto:mar...@dhis2.org <mailto:mar...@dhis2.org>] 
>> Sent: 12 April 2018 19:09
>> To: Jane Greig mailto:jane.gr...@london.msf.org>>
>> Cc: dhis2-users@lists.launchpad.net <mailto:dhis2-users@lists.launchpad.net>
>> Subject: Re: [Dhis2-users] Program indicator expressions
>>  
>> Ok, I understand - was fearing this could be the reason :) The codes need to 
>> be quoted when they are text-based, so the other short-term workaround I can 
>> think of is to use numeric codes.
>>  
>> Markus
>> 
>> 
>> 12. apr. 2018 kl. 11:06 skrev Jane Greig > <mailto:jane.gr...@london.msf.org>>:
>>  
>> HI Markus
>> Thanks for your response. I thought that might be the problem. Unfortunately 
>> our use case is more complex than my example, so the filter workaround 
>> doesn’t help – we want the indicator to return a combined set of conditions. 
>> For example, 3 data elements all with the same option set for delivery of up 
>> to 3 babies for a pregnancy, to count not the event once, but 0, 1, 2 or 3 
>> live births (option ‘LB’) from the 3 data elements for baby outcome. It 
>> sounds like we will have to make numerous program indicators using filters, 
>> and then aggregate indicators to combine them. We were trying to avoid that!
>> Thanks
>> Jane
>>  
>>  
>> From: Markus Bekken [mailto:mar...@dhis2.org <mailto:mar...@dhis2.org>] 
>> Sent: 12 April 2018 19:02
>> To: Jane Greig mailto:jane.gr...@london.msf.org>>
>> Cc: dhis2-users@lists.launchpad.net <mailto:dhis2-users@lists.launchpad.net>
>> Subject: Re: [Dhis2-users] Program indicator expressions
>>  
>> Hi there Jane!
>> The problem with the below condition is that we are using single quotes 
>> inside a single quoted statement. This is not supported at the moment.
>>  
>> Not really knowing enough about the use case, I venture into suggeting a 
>> possible workaround: If you are able to use the condition below as a filter 
>> statement instead of an expression, you can change the aggregation type to 
>> "Count", and the expression to "V{event_count}". 
>>  
>> Markus
>> 
>> 
>> 
>> 10. apr. 2018 kl. 08:09 skrev Jane Greig > <mailto:jane.gr...@london.msf.org>>:
>>  
>> Hi
>> Can anyone advise on whether program indicator expressions can use data 
>> elements with option sets? They do not appear in the list of data elements 
>> available, but it does not tell me my expression using the UID of one is 
>> invalid. However, it also does not give me a result. Example I am trying to 
>> use is:
>> d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 'LB' ',1,0)
>> to return a value of 1 if that condition is true, otherwise 0. Is that 
>> possible and I am just writing my expression wrongly? Even with a Boolean 
>> data element that does appear in the list of data elements, I could not get 
>> a result using == 1, == TRUE, == Yes.
>> Any guidance is appreciated.
>> Thanks
>> Jane
>>  
>> 
>> Jane Greig, PhD
>> Epidemiologist MSF-OCA 
>> Manson Unit, MSF-UK
>> 
>> 
>> 
>>  
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <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] Program indicator expressions

2018-04-12 Thread Markus Bekken
the below expression should work, yes :)

> 12. apr. 2018 kl. 11:13 skrev Jane Greig :
> 
> So numeric would solve it for us?
> That is, if the code for the option we want is numeric = 2 in all 3 data 
> elements, this should work?:
> d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 2 ',1,0) +
> d2:condition('#{qaDVwQUHD0j.FFpJ2FZU7rJ} == 2 ',1,0) +
> d2:condition('#{qaDVwQUHD0j.dLKjtfo7GD3} == 2 ',1,0)
>  
>   <>
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: 12 April 2018 19:09
> To: Jane Greig 
> Cc: dhis2-users@lists.launchpad.net
> Subject: Re: [Dhis2-users] Program indicator expressions
>  
> Ok, I understand - was fearing this could be the reason :) The codes need to 
> be quoted when they are text-based, so the other short-term workaround I can 
> think of is to use numeric codes.
>  
> Markus
> 
> 
> 12. apr. 2018 kl. 11:06 skrev Jane Greig  <mailto:jane.gr...@london.msf.org>>:
>  
> HI Markus
> Thanks for your response. I thought that might be the problem. Unfortunately 
> our use case is more complex than my example, so the filter workaround 
> doesn’t help – we want the indicator to return a combined set of conditions. 
> For example, 3 data elements all with the same option set for delivery of up 
> to 3 babies for a pregnancy, to count not the event once, but 0, 1, 2 or 3 
> live births (option ‘LB’) from the 3 data elements for baby outcome. It 
> sounds like we will have to make numerous program indicators using filters, 
> and then aggregate indicators to combine them. We were trying to avoid that!
> Thanks
> Jane
>  
>  
> From: Markus Bekken [mailto:mar...@dhis2.org <mailto:mar...@dhis2.org>] 
> Sent: 12 April 2018 19:02
> To: Jane Greig mailto:jane.gr...@london.msf.org>>
> Cc: dhis2-users@lists.launchpad.net <mailto:dhis2-users@lists.launchpad.net>
> Subject: Re: [Dhis2-users] Program indicator expressions
>  
> Hi there Jane!
> The problem with the below condition is that we are using single quotes 
> inside a single quoted statement. This is not supported at the moment.
>  
> Not really knowing enough about the use case, I venture into suggeting a 
> possible workaround: If you are able to use the condition below as a filter 
> statement instead of an expression, you can change the aggregation type to 
> "Count", and the expression to "V{event_count}". 
>  
> Markus
> 
> 
> 
> 10. apr. 2018 kl. 08:09 skrev Jane Greig  <mailto:jane.gr...@london.msf.org>>:
>  
> Hi
> Can anyone advise on whether program indicator expressions can use data 
> elements with option sets? They do not appear in the list of data elements 
> available, but it does not tell me my expression using the UID of one is 
> invalid. However, it also does not give me a result. Example I am trying to 
> use is:
> d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 'LB' ',1,0)
> to return a value of 1 if that condition is true, otherwise 0. Is that 
> possible and I am just writing my expression wrongly? Even with a Boolean 
> data element that does appear in the list of data elements, I could not get a 
> result using == 1, == TRUE, == Yes.
> Any guidance is appreciated.
> Thanks
> Jane
>  
> 
> Jane Greig, PhD
> Epidemiologist MSF-OCA 
> Manson Unit, MSF-UK
> 
> 
> 
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <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] Program indicator expressions

2018-04-12 Thread Markus Bekken
Ok, I understand - was fearing this could be the reason :) The codes need to be 
quoted when they are text-based, so the other short-term workaround I can think 
of is to use numeric codes.

Markus

> 12. apr. 2018 kl. 11:06 skrev Jane Greig :
> 
> HI Markus
> Thanks for your response. I thought that might be the problem. Unfortunately 
> our use case is more complex than my example, so the filter workaround 
> doesn’t help – we want the indicator to return a combined set of conditions. 
> For example, 3 data elements all with the same option set for delivery of up 
> to 3 babies for a pregnancy, to count not the event once, but 0, 1, 2 or 3 
> live births (option ‘LB’) from the 3 data elements for baby outcome. It 
> sounds like we will have to make numerous program indicators using filters, 
> and then aggregate indicators to combine them. We were trying to avoid that!
> Thanks
> Jane
>  
>   <>
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: 12 April 2018 19:02
> To: Jane Greig 
> Cc: dhis2-users@lists.launchpad.net
> Subject: Re: [Dhis2-users] Program indicator expressions
>  
> Hi there Jane!
> The problem with the below condition is that we are using single quotes 
> inside a single quoted statement. This is not supported at the moment.
>  
> Not really knowing enough about the use case, I venture into suggeting a 
> possible workaround: If you are able to use the condition below as a filter 
> statement instead of an expression, you can change the aggregation type to 
> "Count", and the expression to "V{event_count}". 
>  
> Markus
> 
> 
> 10. apr. 2018 kl. 08:09 skrev Jane Greig  <mailto:jane.gr...@london.msf.org>>:
>  
> Hi
> Can anyone advise on whether program indicator expressions can use data 
> elements with option sets? They do not appear in the list of data elements 
> available, but it does not tell me my expression using the UID of one is 
> invalid. However, it also does not give me a result. Example I am trying to 
> use is:
> d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 'LB' ',1,0)
> to return a value of 1 if that condition is true, otherwise 0. Is that 
> possible and I am just writing my expression wrongly? Even with a Boolean 
> data element that does appear in the list of data elements, I could not get a 
> result using == 1, == TRUE, == Yes.
> Any guidance is appreciated.
> Thanks
> Jane
>  
> 
> Jane Greig, PhD
> Epidemiologist MSF-OCA 
> Manson Unit, MSF-UK
> 
> 
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <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] Program indicator expressions

2018-04-12 Thread Markus Bekken
Hi there Jane!
The problem with the below condition is that we are using single quotes inside 
a single quoted statement. This is not supported at the moment.

Not really knowing enough about the use case, I venture into suggeting a 
possible workaround: If you are able to use the condition below as a filter 
statement instead of an expression, you can change the aggregation type to 
"Count", and the expression to "V{event_count}". 

Markus

> 10. apr. 2018 kl. 08:09 skrev Jane Greig :
> 
> Hi
> Can anyone advise on whether program indicator expressions can use data 
> elements with option sets? They do not appear in the list of data elements 
> available, but it does not tell me my expression using the UID of one is 
> invalid. However, it also does not give me a result. Example I am trying to 
> use is:
> d2:condition('#{qaDVwQUHD0j.g4bPEQ4a7WM} == 'LB' ',1,0)
> to return a value of 1 if that condition is true, otherwise 0. Is that 
> possible and I am just writing my expression wrongly? Even with a Boolean 
> data element that does appear in the list of data elements, I could not get a 
> result using == 1, == TRUE, == Yes.
> Any guidance is appreciated.
> Thanks
> Jane
>  
> 
> Jane Greig, PhD
> Epidemiologist MSF-OCA 
> Manson Unit, MSF-UK
> 
>  
> ___
> 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] Using age-type attributes in program indicator calculations

2018-04-03 Thread Markus Bekken
Hey Seleman,
The issue you are referring to here asks for a change in how the Age data type 
functions. I think the behavior you want should already be supported, but with 
the syntax that Nick provided below.

One strength of calculating the age using the d2:yearsBetween() is that you 
would explicitly state the point in time where you want the calculation to be 
based on. If you look at an Age data element in the user interface, the 
calculation is done based on the current date - but this is not always what you 
want when writing program indicators. Nicks example below was calculating based 
on event date for example.

Markus

> 3. apr. 2018 kl. 08:52 skrev Seleman Ally :
> 
> Hi Markus and the team, 
> 
> I think the issue is already created on JIRA since last year. May be we 
> should push for it because this is stopping community from benefiting with 
> this useful feature. The Jira link to the link is
> 
> https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22 
> <https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22>
> 
> Issue Navigator - DHIS 2 JIRA 
> <https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22>
> 
> 
> Issue Navigator - DHIS 2 JIRA
>  <https://jira.dhis2.org/browse/DHIS2-1309?jql=text%20~%20%22Age%22>
> 
> 
> Regards
> 
> Sele
> On Tuesday, April 3, 2018, 9:30:31 AM GMT+3, Markus Bekken  
> wrote:
> 
> 
> Nayeem, thanks for the workaround.
> 
> Nick, the proposed usage should have worked. Age should be treated as a 
> normal date data type in the program indicators. Can you create a bug in jira?
> 
> Markus
> 
>> 3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah > <mailto:n.mift...@gmail.com>>:
>> 
>> Hi Nick
>> I have also notice the same problem. Later created a data element in program 
>> stage and assign age in year as a calculative value from program attribute 
>> 'age'.
>> 
>> It works! 
>> 
>> Regards,
>> Nayeem Al Mifthah
>> Consultant for HSS, HMIS, M&E, GIS and Surveillance
>> 
>> Kindly ignore typos.
>> 
>> On Mon, 2 Apr 2018, 23:07 Shurajit Dutta, > <mailto:shurajitdu...@gmail.com>> wrote:
>> Hi
>> 
>> I am trying to figure out the best method to use age-type attributes in 
>> program indicator calculations. As a simple example, let us say I want a 
>> program indicator which displays the age in years of a person. From what I 
>> can see, the age-type attribute stores its value as a date, according to the 
>> date of birth either selected or estimated based on what is entered in the 
>> years, weeks and months fields respectively during registration. If I want 
>> to use this date in a program indicator however it seems to not work 
>> correctly.
>> 
>> ie d2:yearsBetween(age, event_date) when used as an expressions as an 
>> example would not give me the correct age in years. Is there another way in 
>> which to make these types of program indicators work with the age-type 
>> attribute?
>> 
>> Thanks,
>> Nick
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to: dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help  : https://help.launchpad.net/ListHelp 
> <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] Using age-type attributes in program indicator calculations

2018-04-02 Thread Markus Bekken
Nayeem, thanks for the workaround.

Nick, the proposed usage should have worked. Age should be treated as a normal 
date data type in the program indicators. Can you create a bug in jira?

Markus

> 3. apr. 2018 kl. 03:41 skrev Nayeem Al Mifthah :
> 
> Hi Nick
> I have also notice the same problem. Later created a data element in program 
> stage and assign age in year as a calculative value from program attribute 
> 'age'.
> 
> It works! 
> 
> Regards,
> Nayeem Al Mifthah
> Consultant for HSS, HMIS, M&E, GIS and Surveillance
> 
> Kindly ignore typos.
> 
> On Mon, 2 Apr 2018, 23:07 Shurajit Dutta,  > wrote:
> Hi
> 
> I am trying to figure out the best method to use age-type attributes in 
> program indicator calculations. As a simple example, let us say I want a 
> program indicator which displays the age in years of a person. From what I 
> can see, the age-type attribute stores its value as a date, according to the 
> date of birth either selected or estimated based on what is entered in the 
> years, weeks and months fields respectively during registration. If I want to 
> use this date in a program indicator however it seems to not work correctly.
> 
> ie d2:yearsBetween(age, event_date) when used as an expressions as an example 
> would not give me the correct age in years. Is there another way in which to 
> make these types of program indicators work with the age-type attribute?
> 
> Thanks,
> Nick
> ___
> 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] [Dhis2-devs] how about the performance for dhis2 tracker to manage large number of entity data?

2018-03-19 Thread Markus Bekken
Hi Lin!
There is a few tracker implementations in this size range. These numbers of 
tracked entity instances should not be a problem in itself, but requires a 
well-maintained database and application server.

Generally, newer versions of DHIS2 will perform stronger than older versions. 
In 2.30 and upcoming releases we are maintaining tracker performance as a top 
priority.

Best regards,
Markus

> 19. mar. 2018 kl. 01:55 skrev 林晓东 :
> 
> Hi,all,
> 
>Is there some info or infer on performance for DHIS2 managing more than 
> 10,000,000 entity  tracker data?
> 
>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


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

2018-03-15 Thread Markus Bekken
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 :
> 
> 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


Re: [Dhis2-users] [Dhis2-devs] ACCESS TO DATA FROM MULTIPLE STAGES IN EVENT REPORTS

2018-03-10 Thread Markus Bekken
Hi Stanley,
this is currently not possible. It is however something that is being 
requested, and we have created these epics to capture the functional area: 
- https://jira.dhis2.org/browse/DHIS2-3140
- https://jira.dhis2.org/browse/DHIS2-2106

Can you please have a look at the epics and possibly add more about your use 
case in the comments?

Markus

> 10. mar. 2018 kl. 10:10 skrev Stanley Kalyati :
> 
> Has anyone got experience with running an event report that merges data from 
> multiple stages? For example connecting the unique identifier to HIV Test 
> results and then ART Initiation Status? Three different sources of data.
> 
> Your assistance is appreciated always
> 
> Stanley
> 
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] 2.29 upgrade script error

2018-03-09 Thread Markus Bekken
Dear Bernard,
You are absolutely right. The program_userroles table is the correct one, and 
the userroleprogram table is a legacy table not used anymore. We just fixed the 
script, please try again with the latest version.

Best regards,
Markus

> 9. mar. 2018 kl. 14:21 skrev Bernard Sadaka (IM Advisor) :
> 
> Dear Markus,
> After a closer look, I found this table:
> public | program_userroles | table | dhis
> Is it the same?
>  
> 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 <mailto:lib@pu-ami.org>
> Cell: +961 71 004 881 (208)
> Skype: imapuami
> Website: https://www.pu-ami.org <https://www.pu-ami.org/>
>  
>  
> From: Dhis2-users 
> [mailto:dhis2-users-bounces+lib.ima=pu-ami@lists.launchpad.net 
> <mailto:dhis2-users-bounces+lib.ima=pu-ami@lists.launchpad.net>] On 
> Behalf Of Bernard Sadaka (IM Advisor)
> Sent: Friday, March 9, 2018 3:17 PM
> To: 'Markus Bekken' mailto:mar...@dhis2.org>>
> Cc: dhis2-users@lists.launchpad.net <mailto:dhis2-users@lists.launchpad.net>; 
> 'DHIS 2 Developers list'  <mailto:dhis2-d...@lists.launchpad.net>>
> Subject: Re: [Dhis2-users] [Dhis2-devs] 2.29 upgrade script error
>  
> Hello Markus,
> Unfortunately I don’t have that table:
> dhisdb=# \dt userrole*
>  List of relations
> Schema |   Name| Type  | Owner
> +---+---+---
> public | userrole  | table | dhis
> public | userroleauthorities   | table | dhis
> public | userroledataset   | table | dhis
> public | userrolemembers   | table | dhis
> public | userroletranslations  | table | dhis
> public | userroleuseraccesses  | table | dhis
> public | userroleusergroupaccesses | table | dhis
> (7 rows)
> Is there any maintenance scripts I need to run in order to create that table?
>  
> 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 <mailto:lib@pu-ami.org>
> Cell: +961 71 004 881 (208)
> Skype: imapuami
> Website: https://www.pu-ami.org <https://www.pu-ami.org/>
>  
>  
> From: Markus Bekken [mailto:mar...@dhis2.org <mailto:mar...@dhis2.org>] 
> Sent: Friday, March 9, 2018 2:32 PM
> To: Bernard Sadaka (IM Advisor)  <mailto:lib@pu-ami.org>>
> Cc: dhis2-users@lists.launchpad.net <mailto:dhis2-users@lists.launchpad.net>; 
> DHIS 2 Developers list  <mailto:dhis2-d...@lists.launchpad.net>>
> Subject: Re: [Dhis2-devs] 2.29 upgrade script error
>  
> Hi there Bernard,
> that was strange - your 2.28 database should have contained the table 
> userroleprogram.
> Assuming you are running 2.28, can you try running this query on your command 
> line?
> \dt userrole*
> Expecting that one of the lines output is:
> public | userroleprogram   | table | dhis
>  
> 
> Best regards,
> Markus
>  
> 
>> 9. mar. 2018 kl. 10:04 skrev Bernard Sadaka (IM Advisor) > <mailto:lib@pu-ami.org>>:
>>  
>> Dear All,
>> I am trying to migrate from 2.28 (aff610f) to 2.29, by first running the 
>> upgrade script and then updating the .war file.
>> However I am stuck at the upgrade script with this error:
>> 
>> Please advise.
>>  
>> 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 <mailto:lib@pu-ami.org>
>> Cell: +961 71 004 881 (208)
>> Skype: imapuami
>> Website: https://www.pu-ami.org <https://www.pu-ami.org/>
>>  
>>  
>>  
>>  
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon>
>>
>> Virus-free. www.avast.com 
>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] 2.29 upgrade script error

2018-03-09 Thread Markus Bekken
Hi Dan!
You are are absolutely right. The script currently triggers a migration of data 
into the programstageusergroupaccesses before this table is created.

To get around the problem right away you need to run the script except for the 
last line, then start the server, and run the last line of the script to do the 
migration:
select migrateRoleToUserGroup();

Looking at a better fix now - to migrate as part of the server startup.

Markus

P.S. This does not look like the same problem that Bernard had for some reason 
- but expecting that Bernard need to do the same workaround.

> 9. mar. 2018 kl. 13:39 skrev Dan Cocos :
> 
> We’ve run into a similar problem when testing from 2.28 to 2.29
> 
> psql:/tmp/229-upgrade.sql:117: ERROR:  relation 
> "programstageusergroupaccesses" does not exist
> LINE 1: insert into programstageusergroupaccesses ( programid, userg…
> 
> When looked deeper into it, that table did not exist. Is it possible these 
> tables don’t exist or weren’t migrated from a previous upgrade if one isn’t 
> using Tracker? 
> 
> Thanks,
> Dan
> 
> Dan Cocos
> Principal, BAO Systems
> dco...@baosystems.com <mailto:dco...@baosystems.com> | 
> http://www.baosystems.com <http://www.baosystems.com/> |  2900 K Street, 
> Suite 406, Washington D.C. 20007
> 
>> On Mar 9, 2018, at 7:31 AM, Markus Bekken > <mailto:mar...@dhis2.org>> wrote:
>> 
>> Hi there Bernard,
>> that was strange - your 2.28 database should have contained the table 
>> userroleprogram.
>> Assuming you are running 2.28, can you try running this query on your 
>> command line?
>> \dt userrole*
>> Expecting that one of the lines output is:
>> public | userroleprogram   | table | dhis
>> 
>> Best regards,
>> Markus
>> 
>>> 9. mar. 2018 kl. 10:04 skrev Bernard Sadaka (IM Advisor) 
>>> mailto:lib@pu-ami.org>>:
>>> 
>>> Dear All,
>>> I am trying to migrate from 2.28 (aff610f) to 2.29, by first running the 
>>> upgrade script and then updating the .war file.
>>> However I am stuck at the upgrade script with this error:
>>> 
>>> Please advise.
>>>  
>>> 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 <mailto:lib@pu-ami.org>
>>> Cell: +961 71 004 881 (208)
>>> Skype: imapuami
>>> Website: https://www.pu-ami.org <https://www.pu-ami.org/>
>>>  
>>>  
>>> 
>>>  
>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon>
>>> Virus-free. www.avast.com 
>>> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link>
>>>  
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-devs 
>>> <https://launchpad.net/~dhis2-devs>
>>> Post to : dhis2-d...@lists.launchpad.net 
>>> <mailto:dhis2-d...@lists.launchpad.net>
>>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>>> <https://launchpad.net/~dhis2-devs>
>>> More help   : https://help.launchpad.net/ListHelp 
>>> <https://help.launchpad.net/ListHelp>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] 2.29 upgrade script error

2018-03-09 Thread Markus Bekken
Hi there Bernard,
that was strange - your 2.28 database should have contained the table 
userroleprogram.
Assuming you are running 2.28, can you try running this query on your command 
line?
\dt userrole*
Expecting that one of the lines output is:
public | userroleprogram   | table | dhis

Best regards,
Markus

> 9. mar. 2018 kl. 10:04 skrev Bernard Sadaka (IM Advisor) :
> 
> Dear All,
> I am trying to migrate from 2.28 (aff610f) to 2.29, by first running the 
> upgrade script and then updating the .war file.
> However I am stuck at the upgrade script with this error:
> 
> Please advise.
>  
> 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 
>  
>  
> 
>  
> 
>   Virus-free. www.avast.com 
> 
>  
> ___
> 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


Re: [Dhis2-users] Event - report : Range set for program indicator 2.28

2018-03-08 Thread Markus Bekken
Hi Hakim!
Legends is not available in the event reports for program indicators at the 
moment. Please consider creating a Jira issue asking for this functionality.

Best
Markus

> 8. mar. 2018 kl. 08:56 skrev DJIBRIL Hakim :
> 
> Hi all, 
> Please Does Range set is applicable to program indicator when doing event 
> report on version 2.28. Like range set on Age get program indicator base on 
> date of birth ( tracked instance attribute) and current date ?
> 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] [Dhis2-devs] how to refer patient from one site to another in DHIS2 tracker

2018-03-02 Thread Markus Bekken
Hi there Hakim,
There is currently no way of doing analytics on the referral itself. To achieve 
this in the current solution you would have to capture some data relevant to 
the transfer. One strategy can be to have a separate "Transfer" program stage 
that is used for the purpose of moving a patient from one clinic to another. If 
extra data elements or program stages will not work well with your use case, 
please put the details into a Jira issue.

Markus

> 2. mar. 2018 kl. 11:27 skrev DJIBRIL Hakim :
> 
> Hi all, Any updates/helps on this !!!?
> 
> 2018-02-28 16:01 GMT+00:00 DJIBRIL Hakim  >:
> Thank you Lukas for your answer and bernard for your comments, 
> also a question how get list of patients referrals out and referrals in. I 
> want to know Please if there is a way from frontend or api to calculate 
> indicators based on this referral option.
> 
> 2018-02-28 15:43 GMT+00:00 Bernard Sadaka (IM Advisor)  >:
> Hello Lukas, Hakim and All,
> 
> Allow me to jump in here and ask a related question.
> 
> To be honest I opted out of the referral mechanism because of the bellow bug, 
> but if it works it would be an excellent asset.
> 
>  
> 
> After temporarily or permanently referring a patient from one Org Unit to the 
> other, DHIS2 asks to enroll the patient in the new PHCC and when trying to 
> enroll, I get this error:
> 
> TrackedEntityInstance HrmJMxnoYzE already have an active enrollment in 
> program kel6D4tu0vC
> 
> 
> 
> The error above is only received by a user that has access only to the new 
> OrgUnit and doesn’t have access to the old OrgUnit. And therefore the user of 
> the new OrgUnit who doesn’t have access to the old OrgUnit can not see the 
> enrollment of the patient neither can re-enroll because of the above error.
> 
> In case the user has access to both OrgUnits the above error does not happen.
> 
>  
> 
> So my guess is that the problem is with the user rights concerning the 
> referred patient when the user doesn’t have access rights to the old OrgUnit. 
> The error is also persistent for that user even after browser cache cleaning, 
> logout and even with cookies cleaning/incognito browsing.
> 
>  
> 
> I couldn’t see the above reported in JIRA (only the original feature was done 
> in https://jira.dhis2.org/browse/DHIS2-678 
> 
> Maybe this is a new bug? If so I can create a JIRA entry.
> 
>  
> 
> Let me know.
> 
>  
> 
> 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 Lukas Wijgaart-van Dijk
> Sent: Wednesday, February 28, 2018 4:50 PM
> To: DJIBRIL Hakim mailto:djib.ha...@gmail.com>>
> Cc: DHIS 2 Users list  >; DHIS 2 Developers list 
> mailto:dhis2-d...@lists.launchpad.net>>
> Subject: Re: [Dhis2-users] [Dhis2-devs] how to refer patient from one site to 
> another in DHIS2 tracker
> 
>  
> 
> Hi Hakim,
> 
> To refer a patient click the button highlighted in the image. Then in the 
> pop-up select «Program stage», «OrgUnit» and "Report date».
> 
> After that you select if the patient should be referred once (only that 
> event/program stage) or permanently.
> 
> 
> 
>  
> 
> Best regards,
> 
> Lukas Wijgaart van Dijk
> 
>  
> 
> 28. feb. 2018 kl. 15.04 skrev DJIBRIL Hakim  >:
> 
>  
> 
> Hello all,
> 
> I am searching a documentation on how refer patient from one site to another 
> in DHIS2 tracker but not found it.
> 
> Please Can someone explain how doing that?
> 
> ___
> 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 
> 
>  
> 
> 
>  
> 
>   Virus-free. www.avast.com 
> 
>  
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https

Re: [Dhis2-users] [Dhis2-devs] Data Entry Error about Category Combination

2018-02-26 Thread Markus Bekken
Hey there,
did you backup and restore the entire database, or did you do a metadata export 
and import? If you exported and imported, how did you do the export?

Markus

> 26. feb. 2018 kl. 17:04 skrev gerald thomas :
> 
> Dear All,
> i did a backup and i restored the database to another instance but i am 
> receiving an error about Category combination identifier missing when i am 
> trying to do data entry. It is working on the instance that i get the backup 
> from.
> Please find the attached error. 
> 
> -- 
> Regards,
>  
> Gerald
>  14-20-22.png>___
> 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


Re: [Dhis2-users] HOW TO CREATE PROGRAM INDICATOR IN DHIS2 2.27 TO 2.28

2018-02-20 Thread Markus Bekken
Hi there Stanley,
the program indicators is now located in the maintenance app. The program 
indicator section of the maintenance app contains the same fields as the old 
app did, but the fields are spread out on three pages that is navigated like a 
wizard.

Markus

> 20. feb. 2018 kl. 17:31 skrev Stanley Kalyati :
> 
> Dear All,
> 
> Initially i was using dhis2 2.26 build revision  aaae441 and when creating a 
> program indicator,thats the page i would come and i would easily do it.Now in 
> 2.27 version,everything seems different.Anyone with any documentation please 
> share or advise.This is urgent.
> 
> 
> ___
> 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-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 supported is nested d2: function calls. 

Please report if you experience problems with parenthesis outside the known 
issue above.

Markus

> 14. feb. 2018 kl. 08:30 skrev 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 programIndicators (like the 
> "aggregate" indicators does), correct? Any other way we would apply our 
> proper priorities ?
> 
> Thanks,
> 
> Martin
> 
> On Wed, Feb 14, 2018 at 8:18 AM, Lars Helge Øverland  > wrote:
> 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,
> 
> Lars
>  
> 
> On 13 February 2018 at 20:56, Aaron C White  > wrote:
> 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  > 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  > 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-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 
> 
> 
> 
> 
> 
> -- 
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org 
> http://www.dhis2.org 
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs 
> 
> Post to : dhis2-d...@lists.launchpad.net 
> 
> Unsubscribe : https://launchpad.net/~dhis2-devs 
> 
> More help   : https://help.launc

Re: [Dhis2-users] using parenthesis d2:condition

2018-02-12 Thread Markus Bekken
Hi Victor,
the below expression contains parenthesis, and will not work in program 
indicators:
https://jira.dhis2.org/browse/DHIS2-2813

Can I suggest to write the below indicator as:
- aggregate type: COUNT
- expression: V{event_count}
- filter: (#{tbLC6IHktf0.zhiaH2sMDEB}+(#{tbLC6IHktf0.HqvccHzvdUj}+ 
#{tbLC6IHktf0.d88MXV7ikNH}+ #{tbLC6IHktf0.SiBIjK40DGq}))  / 
#{tbLC6IHktf0.spWKINz7xwF} >=80

Best regards,
Markus

> 12. feb. 2018 kl. 08:48 skrev Victor Tabu :
> 
>   <>
>  
> Morning everyone and wish you good week,
>  
> I am trying to check if my indicator reach the threshold by using the formula 
> below
>  
> d2:condition('100(#{tbLC6IHktf0.zhiaH2sMDEB}+(#{tbLC6IHktf0.HqvccHzvdUj}+ 
> #{tbLC6IHktf0.d88MXV7ikNH}+ #{tbLC6IHktf0.SiBIjK40DGq}))  / 
> #{tbLC6IHktf0.spWKINz7xwF} >=80',1,0)
>  
> but I get this error message, is it same one who can tell me what is wrong in 
> the  formula?
>  
> Thank in advance
>  
> 
>  
> -
> 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/ 
>  
>  
> 
>  
> 
>   
> 
>  
> 
>  
> From: Dhis2-users 
> [mailto:dhis2-users-bounces+vtabu=unicef@lists.launchpad.net 
> ] On Behalf 
> Of Lars Helge Øverland
> Sent: Monday, February 12, 2018 6:42 AM
> To: Edward Robinson  >
> Cc: dhis2-users  >
> Subject: Re: [Dhis2-users] Custom forms - disable / enable sections
>  
> Hi Edward,
>  
> this is a popular request; unfortunately we do not have a specific feature 
> for this.
>  
> One option is to come up with a few facility "profiles" and create new data 
> sets for each, while re-using the same data elements within the data sets, 
> then assigning the data sets to the org units accordingly.
>  
> We are getting requests for several variants of this feature: 
>  
> a) assigning data elements to facilities directly
> b) assigning sections to facilities directly
> c) assigning data elements to org unit groups within a group set
> c) assigning sections to org unit groups within a group set
>  
> I assume your request is similar to d)? Would be good if you can explain a 
> bit more about your usecase.
>  
> best regards,
>  
> Lars
>  
>  
>  
>  
> On 10 February 2018 at 00:02, Edward Robinson  > wrote:
> 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 
> 
> 
> 
>  
> -- 
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> l...@dhis2.org 
> http://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 
> 
> ___
> 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

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 
<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 
<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 <mailto:lib@pu-ami.org>
> Cell: +961 71 004 881 (208)
> Skype: imapuami
> Website: https://www.pu-ami.org <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 
> <https://docs.dhis2.org/master/en/user/html/dhis2_user_manual_en_full.html#program_indicator_functions_variables_operators>
>  
> 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) > <mailto:lib@pu-ami.org>>:
>>  
>> I found a similar issue on JIRA (https://jira.dhis2.org/browse/DHIS2-2734 
>> <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 <mailto:lib@pu-ami.org>
>> Cell: +961 71 004 881 (208)
>> Skype: imapuami
>> Website: https://www.pu-ami.org <https://www.pu-ami.org/>
>>  
>>  
>> From: Dhis2-users 
>> [mailto:dhis2-users-bounces+lib.ima=pu-ami@lists.launchpad.net 
>> <

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


Re: [Dhis2-users] Problem with the d2:condition function in program operator

2018-02-07 Thread Markus Bekken
Thanks,
and that would be great Martin :)
https://github.com/dhis2/dhis2-docs

Markus

> 7. feb. 2018 kl. 09:13 skrev Martin Van Aken :
> 
> Just tried, it works! This will help me & more importantly some users a lot!
> Long history of being bitten by operator priorities, so I tend to go the "non 
> ambiguous way". Are the operator priorities documented somewhere (I expect 
> the "standard math ones", but better safe than sorry)
> 
> Thanks for the quick answer - I'll fill the Jira. A very small fix would be 
> to add this to the doc - if the doc is on GitHub I'll gladly submit a PR.
> 
> Martin
> 
> On Wed, Feb 7, 2018 at 9:05 AM, Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hi Martin,
> I think it is the parenthesis within the condition that breaks the 
> evaluation. When I would always argue for adding the parenthesis for the 
> clarity of reading the expression, I think you are in luck here - if you 
> remove all the parenthesis your numerical operators will be applied in the 
> same order even if you remove them.
> 
> Please consider registering an issue on the parenthesis problem if it turns 
> out to be the source of the problem.
> 
> Best regards
> Markus
> 
>> 7. feb. 2018 kl. 08:46 skrev Martin Van Aken > <mailto:mar...@joyouscoding.com>>:
>> 
>> Hello,
>> I'm trying to create a program indicator which would evaluate if a ratio is 
>> equal higher than 80 and return 1 or 0 if not the case.
>> 
>> This is what I have in the expression:
>> 
>> d2:condition('((#{tbLC6IHktf0.CpOPiHrFG8C} * 100) /  
>> #{tbLC6IHktf0.spWKINz7xwF}) >= 80', 100, 0)
>> 
>> The program indicator show the expression as valid, but when I try to use it 
>> in a event report, I get this error:
>> 
>> "Illegal arguments, expected 3 arguments: condition, true-value, 
>> false-value."
>> 
>> I tested the ratio separately and it works. 
>> 
>> Any one have any insight of what could be wrong there? I could not find a 
>> lot of public examples using d2:condition so I may have done a basic mistake 
>> here.
>> 
>> 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 <mailto:mar...@joyouscoding.com>
>> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken 
>> <http://www.linkedin.com/in/martinvanaken>
>> Company website : www.joyouscoding.com 
>> <http://www.joyouscoding.com/>___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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 <mailto:mar...@joyouscoding.com>
> Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken 
> <http://www.linkedin.com/in/martinvanaken>
> Company website : www.joyouscoding.com <http://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] Problem with the d2:condition function in program operator

2018-02-07 Thread Markus Bekken
Hi Martin,
I think it is the parenthesis within the condition that breaks the evaluation. 
When I would always argue for adding the parenthesis for the clarity of reading 
the expression, I think you are in luck here - if you remove all the 
parenthesis your numerical operators will be applied in the same order even if 
you remove them.

Please consider registering an issue on the parenthesis problem if it turns out 
to be the source of the problem.

Best regards
Markus

> 7. feb. 2018 kl. 08:46 skrev Martin Van Aken :
> 
> Hello,
> I'm trying to create a program indicator which would evaluate if a ratio is 
> equal higher than 80 and return 1 or 0 if not the case.
> 
> This is what I have in the expression:
> 
> d2:condition('((#{tbLC6IHktf0.CpOPiHrFG8C} * 100) /  
> #{tbLC6IHktf0.spWKINz7xwF}) >= 80', 100, 0)
> 
> The program indicator show the expression as valid, but when I try to use it 
> in a event report, I get this error:
> 
> "Illegal arguments, expected 3 arguments: condition, true-value, false-value."
> 
> I tested the ratio separately and it works. 
> 
> Any one have any insight of what could be wrong there? I could not find a lot 
> of public examples using d2:condition so I may have done a basic mistake here.
> 
> Thanks !
> 
> Martin
> 
> -- 
> Martin Van Aken - Freelance Enthusiast Developer
> 
> Mobile : +32 486 899 652 <> 
> 
> Follow me on Twitter : @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] Using program rule expressions in Program indicator expressions

2018-02-07 Thread Markus Bekken
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'  >
> Subject: [Dhis2-users] Using program rule expressions in Program indicator 
> expressions
>  
> Can anyone tell me why I can’t use program rule expressions in Program 
> indicator expressions?
> Functions like ceil, floor, round and others are very useful.
>  
> Also I tried to use the “Decimals in data output” in the program indicator 
> details, it didn’t work.
> Also I tried to simulate the round function using conditional modulo 
> subtraction/addition (the pivot table keeps trying to load) :
> C{eB6eQXKY8HA}*C{xGZ2I9aTeXX} -(C{eB6eQXKY8HA}*C{xGZ2I9aTeXX}*100) % 100 + 
> d2:condition('(C{eB6eQXKY8HA}*C{xGZ2I9aTeXX}*100) % 100 >=50',1,0)
>  
> Thank you in advance.
> Please advise.
>  
> 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 
>  
>  
>  
>  
> 
> 
> Virus-free. www.avast.com 
> 
>  
> ___
> 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


Re: [Dhis2-users] Program Rule Expression Executing Before being Called

2018-01-12 Thread Markus Bekken
Hi there Oladiran!
I assume that the score is assigned client side to a "score" field, thus making 
it visible to the person entering the data. It sounds like you have used 
d2:hasValue('#{optionDataElementName}') to ensure that the assignment should 
not happen until the #{optionDataElementName} gets a value? If you have done 
this and it does not work, please register a bug in jira.dhis2.org and provide 
more details on the rules that fail.

Thanks for reporting!

Markus

> 12. jan. 2018 kl. 12.35 skrev Oladiran, Olakunle Francis :
> 
> Dear Experts,
> 
> I trust you are well. I defined a set of program rules for a tracker-based 
> program stage whose data elements have option set coded between 0-3. 
> Conditions were set for these option set to calculate scores using suggested 
> syntax, however, the program stage is registering the scores before the user 
> clicks the options. If the user clicks the correct answer the score remains 
> the same but if wrong answer is chosen, the score reduces(which is accurate). 
> The issue is how to make score register only on-click and not before.
> 
> Also, note that priority were set for the levels of scoring and the function 
> d2:HasValue( '  ') has been used to solve this issue, but its all to no 
> avail. Kindly suggest how best to solve this issue.
> 
> Thank you,
> Oladiran Olakunle
> ___
> 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] using report date in the program rule

2018-01-05 Thread Markus Bekken
Hi Nada,
there is a variable that you can use to get the orgunit code in program rules, 
but not the orgunit name. 

The variable is addressed with V{orgunit_code}. For tracker programs this will 
be the enrolling orgunit, while for single event programs this will be the 
event orgunit.

See table 19.14: 19.5.6. Reference information: Operators and functions to use 
in program rule expression 


Markus

> 2. jan. 2018 kl. 17.46 skrev Pamod Amarakoon :
> 
> Hi Nada,
> 
> Just wondering whether you are using the standard data entry form or a custom 
> form. I'm not really sure whether there is a function to display selected org 
> unit name. This is possible using javascript if you are using a custom form 
> though.
> 
> On Tue, Jan 2, 2018 at 12:04 AM, Nada Ghosn  > wrote:
> Good evening,
> Thank you again for your prompt reply.
> I shall test the new program again.
> 
> I will be thankful if you can assist me in the following query:
> how to create a data element to retain the name of the orgunit.
> 
> Sincerely
> Nada
> 
> 
> On Mon, Jan 1, 2018 at 9:15 PM, Pamod Amarakoon  > wrote:
> Hi Nada,
> 
> It should come automatically if you already have a data element for the age 
> field and if you have applied a rule to assign the value of the expression 
> above to the data element.
> 
> On Mon, Jan 1, 2018 at 11:17 PM, Nada Ghosn  > wrote:
> Good evening,
> Thank you for your prompt reply.
> I did the expression and it works.
> However, i have to click on the field (year) to get the value.
> I will be thankful if you can advise on how to get the value automatically 
> without having to click in the target field (year)
> Sincerely
> NG
> 
> 
> On Mon, Jan 1, 2018 at 8:19 PM, Pamod Amarakoon  > wrote:
> Hi Nada,
> 
> Best wishes for 2018 !
> 
> Regarding your query I assume the problem you are facing with is how to 
> obtain the year from the event date. Considering the date format you can get 
> the string value of the year by obtaining the first 4 digits from the left 
> side of the value for the event date. So I suggest you use the following 
> function.
> 
> d2:left(V{event_date}, 4)
> 
> Hope this helps.
> 
> On Mon, Jan 1, 2018 at 9:35 PM, Nada Ghosn  > wrote:
> Hello,
> Best wishes for 2018.
> 
> I am trying to do the following in an event-capture program:
> - capture the year of the event date (report date) and assign it to a
> program rule variable.
> 
> I will be thankful if you can assist me.
> Sincerely
> NG
> 
> -- 
> Nada Ghosn, MD
> Head, Epidemiology Surveillance Program (Esumoh)
> Ministry of Public Health
> Beirut, Museum square
> Lebanon
> Tel +961.1.614194 
> Fax +961.1.610920 
> Email esumoh...@gmail.com , esu...@moph.gov.lb 
> 
> Website www.moph.gov.lb 
> 
> 
> ___
> 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 
> 
> 
> 
> 
> 
> -- 
> Regards,
> Dr. Pamod Amarakoon
> MBBS (SL)
> MSc (Biomedical Informatics), EMSc (Health Admin), PGCert (MedEd), CEH
> Medical Officer in Health Informatics
> Nutrition Coordination Division
> Ministry of Health, Nutrition and Indigenous Medicine,
> Sri Lanka
> 
> Confidentiality Notice: the information contained in this email and any 
> attachments may be legally privileged and confidential. If you are not an 
> intended recipient, you are hereby notified that any dissemination, 
> distribution, or copying of this e-mail is strictly prohibited. If you have 
> received this e-mail in error, please notify the sender and permanently 
> delete the e-mail and any attachments immediately. You should not retain, 
> copy or use this e-mail or any attachments for any purpose, nor disclose all 
> or any part of the contents to any other person.
> 
> 
> 
> 
> 
> 
> -- 
> Nada Ghosn, MD
> Head, Epidemiology Surveillance Program (Esumoh)
> Ministry of Public Health
> Beirut, Museum square
> Lebanon
> Tel +961.1.614194 
> Fax +961.1.610920 
> Email esumoh...@gmail.com , esu...@moph.gov.lb 
> 
> Website www.moph.gov.lb 
> 
> 
> 
> 
> -- 
> Regards,
> Dr. Pamod Amarakoon
> MBBS (SL)
> MSc (Biomedical Informatics), EMSc (Health Admin), PGCert (MedEd), CEH
> Medical Officer in Health Informatics
> Nutrition Coordination Division
> Ministry of Health, Nutrition and Indigenous Medicine,
> Sri Lanka
> 
> Confidentiality Notice: t

Re: [Dhis2-users] Issue with program indicators

2017-11-30 Thread Markus Bekken
Hi there Thierry,
the indicator as you describe it below would count every enrollment that 
happened within the reporting period. The same indicator works on the WHO RMNCH 
Demo. What is your version? Can you test it with several reporting periods, 
including a period where no enrollments happened?

Markus

> 29. nov. 2017 kl. 21.28 skrev Thierry Octave :
> 
> Hi all,
>  
> I have encounter an issue regarding to the tei_count variable in program 
> indicator. I’m trying to count entity in a Tb program so I return the 
> V{tei_count} variable in a program indicator. So, I defined the program 
> indicator as below:
> Program : Regisre de cas de Tuberculose
> Name : # Patient
> Aggregation type : count
> Analytic type : Enrollment
>  
> Expression : V{tei_count}
>  
> Instead of returning the number of patient, the indicator display “1”. While 
> there is several patients enrolled in the program.
>  
> Thanks in advance for your help.
>  
> Thierry
>  
> The DAI email disclaimer can be found at 
> http://www.dai.com/disclaimer. 
> ___
> 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] how to delete org?

2017-11-27 Thread Markus Bekken
There is some SQL resources to delete orgunits here:
https://github.com/dhis2/dhis2-utils/tree/master/resources/sql

> 27. nov. 2017 kl. 09.01 skrev Nayeem Al Mifthah :
> 
> You may delete from database after deleting constrains.
> 
> Nayeem Al Mifthah
> Consultant for HSS, Health MIS, M&E
> Email: n.mift...@gmail.com  
> Cell:+8801914030574
> Skype: nayeem.a.m
> 
> On Mon, Nov 27, 2017 at 9:27 AM, 林晓东 mailto:lin...@126.com>> 
> wrote:
> Hi,all,
> 
>I have added some orginaztion and some DE、DS, so ,can't delete org, how 
> can I do it, what's steps should I do?
> 
>  Thanks.
> 
> 
> 
> --
> 此致
>  easy
> 
> 莫愁前路无知己,天下谁人不识君。
> 
> 
>  
> 
> ___
> 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] [WISCENTDs] Program indicators

2017-11-14 Thread Markus Bekken
Hi Lise!
1. You are right. It turned out there is a small problem with the expression 
validator, but the program indicator should still work. A fix is checked in for 
the , please let me know if the indicator does not work.
2. If you are on 2.27 or later you can use program rules instead. There is a 
program rule action type that is called "Display text" and another one called 
"Display key value pair" that is used to show a dynamic text in your program. 
The dynamic text can be a program rule variable, and in configuring this 
variable you can choose wether you want it to contain code or name for option 
sets.

Markus

> 14. nov. 2017 kl. 18.24 skrev GROUT, Lise :
> 
> Dear all, 
>  
> Two questions on program indicators (sorry if they have been asked already):
> 1.  How to calculate the Age at clinical examination based on an Age-type 
> attribute? I thought the Age type attribute was stored as a date, but the 
> expression is invalid when using it (despite the same expression was valid 
> with Date of birth). 
> 2.  I have some program indicators that are equal to a data element (in 
> order to make it visible/available across all stages). Would it be possible 
> to display the name of the option set rather than the code?
>  
> Thanks
> Lise.
>  
> Dr. Lise Grout
> Epidemiologist
>  
> World Health Organization
> Department of Neglected Tropical Diseases (HTM/NTD/IDM)
> Innovative and Intensified Disease Management Unit
> 20, Avenue Appia; CH-1211 Geneva 27
> Tel. +41 22 791 2341
> Mobile +41 79 290 68 61
> Skype: tigrouveto
> http://www.who.int/neglected_diseases 
>  
> ___
> 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] [WISCENTDs] User role > Authorities

2017-11-09 Thread Markus Bekken
To add to this, in the tracker space we are currently working on an epic to 
improve the authorization model for programs: DHIS2-2105 


We work to replace the many user authorities that govern the tracker with a 
model where each program is shared with users groups.

Markus

> 8. nov. 2017 kl. 17.38 skrev Knut Staring :
> 
> I unfortunately don't think the documentation around authorities is adequate 
> at the moment.
> 
> It is also interesting that a couple of organisations have seen the need to 
> develop their own user management apps
> 
> There has been some discussion on the need to create some standard metadata 
> packages with typical user roles. There are of course some user roles in the 
> online demo and in the Trainingland databases, but we could package them 
> nicely for easy import to a new  instance.
> 
> Knut
> 
> On Wed, Nov 8, 2017 at 3:31 PM, Edward Robinson  > wrote:
> Given the sheer number of authorities, I think this kind of documentation 
> would be super helpful.  I’d love to know if something like this exists.
> 
> Ed
> 
>  
> 
> From: Dhis2-users [mailto:dhis2-users-bounces+erobinson 
> =projectbalance@lists.launchpad.net
>  ] On Behalf Of GROUT, Lise
> Sent: Wednesday, 08 November 2017 10:39 AM
> To: Dhis2 Users  >
> Cc: RAMON JOSE JIMENEZ POMARETA mailto:rjime...@who.int>>
> Subject: [Dhis2-users] [WISCENTDs] User role > Authorities
> 
>  
> 
> Dear all,
> 
>  
> 
> Is there a place where we could find clear description of each authorities 
> available to create user roles?
> 
>  
> 
> Best
> 
> lise
> 
>  
> 
> Dr. Lise Grout
> 
> Epidemiologist
> 
>  
> 
> World Health Organization
> 
> Department of Neglected Tropical Diseases (HTM/NTD/IDM)
> Innovative and Intensified Disease Management Unit
> 20, Avenue Appia; CH-1211 Geneva 27
> Tel. +41 22 791 2341 
> Mobile +41 79 290 68 61 
> Skype: tigrouveto
> http://www.who.int/neglected_diseases 
>  
> 
> 
> ___
> 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 
> 
> 
> 
> 
> 
> -- 
> Knut Staring
> Dept. of Informatics, University of Oslo
> Norway: +4791880522 
> Skype: knutstar
> http://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

___
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] Generate scores using program rules, tracker capture web app

2017-11-05 Thread Markus Bekken
I suggesr try replacing your second rule expression to simply the word true, 
lowercase and no hyphens.

Markus

> 5. nov. 2017 kl. 04:21 skrev abhishek addepally :
> 
> Thank you for the reply Markus, 
> 
> I have created intermediate rules and assigned the value like the following 
> image.
> 
> 
> For the second part, I have created an expression which is always true (I'm 
> assuming to be) 
> 
> I have tried this and it doesn't show the score. I there any thing that I'm 
> missing. Please let me know, thank you for the help.
> 
> -Siva
> 
>> On Fri, Nov 3, 2017 at 9:49 AM, Markus Bekken  wrote:
>> Hi there Siva,
>> An important principle for the assign rules is that they should produce the 
>> same result every time if the input is unchanged.
>> 
>> Here is a suggested approach to acheive this. It will require that you 
>> create a programRuleVariable for each data element that is going to be 
>> scored, and make rules that calculates intermediary scores - one for each 
>> data element to be scored. Then after the intermediary scores is assigned, 
>> you can sum the whole form.
>> 
>> Rules for storing intermediate scores can be made like this:
>> Expression: #{dataElement1} == 'correctOption'
>> Action: Assign score(a number) to the program rule variable 
>> #{dataElement1Score}
>> (you need to create a separate programRuleVariable that is called 
>> #{dataElement1Score}, and give it the source type "Calculated value".
>> Give all these rules priority 1.
>> 
>> Then you make one rule for calculating and assigning the sum:
>> Expression: true (we want this rule to always run I presume)
>> Action: Assign total score to the score data element. The expression to 
>> assign would be #{dataElement1Score} + #{dataElement2Score} + 
>> #{dataElement3Score} ...and so on, depending on the number of options that 
>> should score.
>> This rule should be given priority 2, as it relies on the rules above to be 
>> run first.
>> 
>> Please reach out if you have any questions or need further assistance on 
>> this.
>> 
>> All the best,
>> Markus
>> 
>> 
>> > 2. nov. 2017 kl. 08.43 skrev abhishek addepally 
>> > :
>> >
>> > Hi,
>> >
>> > I'm trying to generate a score based on the input provided by the user for 
>> > a program stage. I have created a program rule expression where if an 
>> > option is selected and then the rule action to increment the value for the 
>> > score data element using the assign value function. This is done for 
>> > different fields across the program stage. But when any option is selected 
>> > the score variable increases. I'm using 2.27 of DHIS2.
>> >
>> > Please let me know if there is any way this could be done.
>> >
>> >
>> > -Siva
>> > ___
>> > 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] Generate scores using program rules, tracker capture web app

2017-11-03 Thread Markus Bekken
Hi there Siva,
An important principle for the assign rules is that they should produce the 
same result every time if the input is unchanged.

Here is a suggested approach to acheive this. It will require that you create a 
programRuleVariable for each data element that is going to be scored, and make 
rules that calculates intermediary scores - one for each data element to be 
scored. Then after the intermediary scores is assigned, you can sum the whole 
form.

Rules for storing intermediate scores can be made like this:
Expression: #{dataElement1} == 'correctOption'
Action: Assign score(a number) to the program rule variable #{dataElement1Score}
(you need to create a separate programRuleVariable that is called 
#{dataElement1Score}, and give it the source type "Calculated value". 
Give all these rules priority 1.

Then you make one rule for calculating and assigning the sum:
Expression: true (we want this rule to always run I presume)
Action: Assign total score to the score data element. The expression to assign 
would be #{dataElement1Score} + #{dataElement2Score} + #{dataElement3Score} 
...and so on, depending on the number of options that should score.
This rule should be given priority 2, as it relies on the rules above to be run 
first.

Please reach out if you have any questions or need further assistance on this.

All the best,
Markus


> 2. nov. 2017 kl. 08.43 skrev abhishek addepally :
> 
> Hi,
> 
> I'm trying to generate a score based on the input provided by the user for a 
> program stage. I have created a program rule expression where if an option is 
> selected and then the rule action to increment the value for the score data 
> element using the assign value function. This is done for different fields 
> across the program stage. But when any option is selected the score variable 
> increases. I'm using 2.27 of DHIS2. 
> 
> Please let me know if there is any way this could be done.
> 
> 
> -Siva
> ___
> 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] Patterns for unique tracked entity attributes

2017-11-01 Thread Markus Bekken
Hi there Nick!
Currently only integers is supported, and the pattern signifies how many digits 
to use in the pattern. We have this Jira planned for 2.29: 
https://jira.dhis2.org/browse/DHIS2-434

Markus 

> 1. nov. 2017 kl. 12.30 skrev Shurajit Dutta :
> 
> Hi,
> 
> Could someone let me know what types of patterns are supported when a tracked 
> entity attribute is selected to be automatically generated?
> 
> 
> 
> ​Thanks,
> Nick​
> 
> ___
> 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 rule to hide Tracked entity attribute field show a warning in console

2017-10-15 Thread Markus Bekken
Hi there Rady,
Nicely spotted. Which version of DHIS are you running? This message is noise 
from a runtime validation that is a bit too strict, and can be disregarded for 
the purposes of the users. Log noise is still important to clean up, so it 
would be great if you can submit a Jira with the details.

Regards
Markus

> 12. okt. 2017 kl. 07.24 skrev Rady :
> 
> Dear DHIS2 team,
> 
> I have tried using Program rule to hide Tracked entity attribute field, it 
> works properly. But it shows a warning message "ProgramRuleAction C1pSVKWZ40F 
> is of type HIDEFIELD, bot does not have a dataelement defined" in console 
> (see attached files). However, if I tried the same program rule to hide data 
> element field, it does not show such warning message in console. Does anyone 
> have experience with this?
> 
> Regards,
> Rady
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Save TEI Dashboard as Default not working

2017-09-14 Thread Markus Bekken
Hey!
Only users that does not have their own dashboard saved will see the default 
layout. Most changes a user does to her own dashboard will cause such a 
user-specific dashboard to be saved. 

We have created a Jira that will mitigate this problem by allowing the 
administrator to override the user configured dashboards:
DHIS2-687 

Markus

> 14. sep. 2017 kl. 12.31 skrev Immaculate Ayebazibwe :
> 
> Hi All,
> Perhaps am missing something but it seems, the Save Dashboard as default (see 
> image) does not work.
> I have arranged the widgets in a particular way, but still users see 
> something different. Is there a userrole to be assigned or can I stop every 
> one from changing this.
> 
> ​
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Disabling Complete for Some Users

2017-09-14 Thread Markus Bekken
Hi!
The complete enrollment button is disabled if:
- The orgunit is closed
- The current tracked entity instance is inactive
- The current enrollment is active

The only thing that will hide the complete enrollment button is if the current 
enrollment has status cancelled.

Markus

> 14. sep. 2017 kl. 12.25 skrev Immaculate Ayebazibwe :
> 
> Hi All,
> Is there a specific role disabling the complete button (see image) in the 
> enrollment widget for some users?
> ​
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Switch enrolling organisation unit

2017-08-29 Thread Markus Bekken
Hi there Barnabas,
the feature was relatively recently added to 2.27. You possibly need update 
your instance to the latest if your 2.27 war file is more than one month old.

Markus

> 29. aug. 2017 kl. 13.21 skrev Barnabas Akumba :
> 
> Hello Markus,
> 
> I've been trying to use the referral feature on 2.27 but it seems not to be 
> there See attached Screen Shot.
> Is there any setting I need to enable to make it available?
> 
> Your usual prompt response'll be appreciated.
> 
> Regards
> 
> On Mon, Aug 28, 2017 at 1:09 PM, Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hi :)
> Assuming this is on 2.27 - you could open these records in Tracker Capture 
> and use the "Referral" functionality. The button for referral is located 
> below the schedule event button. Select the correct organization unit to move 
> the enrollment to, and select "Move permanently" in the referral dialog.
> 
> Markus
> 
>> 28. aug. 2017 kl. 14.00 skrev Georgi Chakarov > <mailto:geo...@logicaloutcomes.net>>:
>> 
>> Hello!
>>  
>> Is there a quick way to switch enrolling organization units in tracker?
>> We have a handful of enrollments at the wrong level, containing a lot of 
>> data, so I was wondering how to switch to the correct level.
>>  
>> Thanks,
>>  
>> Georgi
>>  
>>   
>> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
>> <mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 x 104 
>>  | LogicalOutcomes c/o Centre for Social Innovation, 
>> 720 Bathurst Street, Toronto Canada M5S 2R4 | You may unsubscribe from 
>> receiving commercial electronic messages from LogicalOutcomes by emailing 
>> i...@logicaloutcomes.net <mailto:i...@logicaloutcomes.net>
>>  
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs 
> <https://launchpad.net/~dhis2-devs>
> Post to : dhis2-d...@lists.launchpad.net 
> <mailto:dhis2-d...@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-devs 
> <https://launchpad.net/~dhis2-devs>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
> 
> 
> 
> 
> -- 
>  
> Barnabas AKUMBA
> 
> Mobile: +2348036195778
> Skype: barnabas.akumba
> 

___
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] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
The tracked entity attributes would also have to be part of the program that 
the relationship links to. If they are part of the program and also has the 
"display in list without program" checked they should be in the relationship 
table. There should not be a limit.

Assuming the attributes in fact was in the program, and the cache was cleared - 
can you privately give me access to your instance for analysis?

Markus

> 28. aug. 2017 kl. 16.11 skrev Immaculate Ayebazibwe :
> 
> Hi Markus,
> Does this have a limit?
> I have checked like three attributes to display without program but I can 
> only see one.
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Mon, Aug 28, 2017 at 12:06 PM, Markus Bekken  <mailto:markus.bek...@gmail.com>> wrote:
> Sorry, I misunderstood your original question.
> 
> To display an attribute in the relationship table, you have to open the 
> tracked entity attribute and select the "display in list without program" 
> option. 
> 
> Markus
> 
>> 27. aug. 2017 kl. 08.48 skrev Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>>:
>> 
>> Hi Everyone,
>> I am working with relationships from program A to B in tracker capture.
>> I want to be able to show some identifiers details from B after I have 
>> created a relationship in A while this is possible in demo, I am not sure 
>> how to accomplish the same on my instance. 
>> Above in my instance
>> 
>> Demo instance
>> ​
>> Would someone please let me help me accomplish the effect of demo instance.
>> I am running 
>> Version:
>> 2.27
>> Build revision:
>> 0303f0d
>> Build date:
>> 2017-08-24 12:02 
>> 
>> 
>> Thank you and Kind Regards
>> Immarcqulate. A (Emma Kassy) 
>> 
>> "You miss 100% of the shots you don't take."
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> 
> 
> ___
> 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


Re: [Dhis2-users] Switch enrolling organisation unit

2017-08-28 Thread Markus Bekken
Thank you for alerting us - we will add the button to the tabular entry. 

In the meantime you can still use the referral function if you temporarily show 
the timeline widget.

Hope this helps.

Markus

> 28. aug. 2017 kl. 15.45 skrev Georgi Chakarov :
> 
> Hi,
>  
> It’s available only in Timeline data entry and we are using Tabular data 
> entry (for a good reason).
> Can the Referral button be added to the Tabular data entry as well?
>  
> Georgi
>  
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: Monday, August 28, 2017 3:10 PM
> To: Georgi Chakarov 
> Cc: DHIS Users ; DHIS 2 Developers list 
> 
> Subject: Re: [Dhis2-users] Switch enrolling organisation unit
>  
> Hi :)
> Assuming this is on 2.27 - you could open these records in Tracker Capture 
> and use the "Referral" functionality. The button for referral is located 
> below the schedule event button. Select the correct organization unit to move 
> the enrollment to, and select "Move permanently" in the referral dialog.
>  
> Markus
>  
> 28. aug. 2017 kl. 14.00 skrev Georgi Chakarov  <mailto:geo...@logicaloutcomes.net>>:
>  
> Hello!
>  
> Is there a quick way to switch enrolling organization units in tracker?
> We have a handful of enrollments at the wrong level, containing a lot of 
> data, so I was wondering how to switch to the correct level.
>  
> Thanks,
>  
> Georgi
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
> <mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> <mailto:i...@logicaloutcomes.net>
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <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] Switch enrolling organisation unit

2017-08-28 Thread Markus Bekken
Hi :)
Assuming this is on 2.27 - you could open these records in Tracker Capture and 
use the "Referral" functionality. The button for referral is located below the 
schedule event button. Select the correct organization unit to move the 
enrollment to, and select "Move permanently" in the referral dialog.

Markus

> 28. aug. 2017 kl. 14.00 skrev Georgi Chakarov :
> 
> Hello!
>  
> Is there a quick way to switch enrolling organization units in tracker?
> We have a handful of enrollments at the wrong level, containing a lot of 
> data, so I was wondering how to switch to the correct level.
>  
> Thanks,
>  
> Georgi
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
>  | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> 
>  
> ___
> 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] HELP with program indicator/report

2017-08-28 Thread Markus Bekken
Hey again Georgi,
this seems like a bug with the d2:hasValue function. Using enrollment 
analytics, the intended outcome for 
d2:hasValue(#{programStageWithNoEvents.dataelement}) is false. Just making sure 
your program indcator was an enrollment program indicator - could you register 
this as a bug?

Markus

> 28. aug. 2017 kl. 12.01 skrev Georgi Chakarov :
> 
> Hi Markus,
>  
> Thanks a lot for putting thoughts into this! I also did.
>  
> I do have a pivotal data element, but regardless of the expression it 
> wouldn’t work. This is because DHIS2 cannot evaluate a data element from an 
> event that hasn’t been created. 
> Let’s assume that my entity is at second stage. This means that I have 
> created events for the first and the second stage (the third stage will have 
> event only when the entity passes at the third stage). 
> In this case the filter would be:
> d2:hasValue(#{stage1.dataelement}) && d2:hasValue(#{stage2.dataelement}) && 
> !d2:hasValue(#{stage3.dataelement}) && !d2:hasValue(#{stage4.dataelement})
>  
> I have tested this, but DHIS2 fails to produce a result because stage 3 and 4 
> do not have events yet, thus the indicator cannot assess whether the pivotal 
> data element in these stages has value or not.
> Is this making sense?
>  
> So, I decided to play with tracked entity attribute values in the profile of 
> my entity.
> Markus, can I assign values to a tracked entity (with an option set), based 
> on a data element value in a current stage?
>  
> Regards,
>  
> Georgi
>  
>  
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: Monday, August 28, 2017 11:30 AM
> To: Georgi Chakarov 
> Cc: DHIS Users ; DHIS 2 Developers list 
> 
> Subject: Re: [Dhis2-users] HELP with program indicator/report
>  
> Hi there Georgi,
> We do not have a function that does exactly what you asked for, but hopefully 
> we can find a way if we examine the data elements in your stages. Do the 
> stages have a data element that is mandatory, or at least so pivotal that you 
> can sue that data element to determine wether the event should be counted? If 
> so I'd recommend looking at a program indicator with the analytics type 
> enrollment. With this strategy you can make four program indicators that 
> fullfills the explicit requirement for 1, 2, 3 and 4 stages:
> Just first stage:
> d2:hasValue(#{stage1.dataelement}) && !d2:hasValue(#{stage2.dataelement}) && 
> !d2:hasValue(#{stage3.dataelement}) && !d2:hasValue(#{stage4.dataelement})
> Just first and second stage:
> d2:hasValue(#{stage1.dataelement}) && d2:hasValue(#{stage2.dataelement}) && 
> !d2:hasValue(#{stage3.dataelement}) && !d2:hasValue(#{stage4.dataelement})
> ..and so on.
>  
> With the above strategy you would find every tracked entity that has followed 
> the expected sequence of events. If you have any requirements for how to 
> count the possible cases that deviates the normal(just stage 1 and 3 for 
> example), the expressions might look different.
>  
> If there is no data element that you can use to proxy the presence of events, 
> you will need a new function for checking events regardless of data. In that 
> case, please report this as a Jira issue.
>  
> Markus
>  
> 25. aug. 2017 kl. 12.11 skrev Georgi Chakarov  <mailto:geo...@logicaloutcomes.net>>:
>  
> Hello all,
>  
> I have a tracker program with 4 consecutive non-repeatable stages. Each new 
> stage is created after completion of the previous stage.
> I am trying to create a report/program indicator that counts the tracked 
> entities at their latest stage. In other words, I want to know how many 
> tracked entities I have at each stage without double counting.
>  
> For example, I have 10 tracked entities each of them starting at stage I. 2 
> tracked entities progressed at stage II , 2 progressed at stage III and two 
> progressed at stage IV.
> My report should show (program indicator should calculate) that 4 tracked 
> entities are still at stage I, 2 are in stage II, 2 are in stage III and 2 
> are in stage IV.
>  
> Do you have any idea how to build this one?
>  
> Georgi
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
> <mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> <mailto:i...@logicaloutcomes.net>
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpa

Re: [Dhis2-users] Assign value to a tracked entity attribute with an option set

2017-08-28 Thread Markus Bekken
Ok, that makes it a bit more tricky. You probably want to assign and save 
tracked entity instance attributes while filling in data in an event. The 
problem with this is that the assignments to tracked entity attributes will be 
triggered when you are in the registration form, or if you open the edit 
profile widget - but generally not when you enter data in program stages.

There has been a few requests to allow assigning TEI attributes from everywhere 
in the program, and we can conceivably support this properly. Please consider 
creating a Jira issue describing your use case.

Is it a possible workaround to make program indicators that would query both 
the data element and the tracked entity attribute?

Markus

> 28. aug. 2017 kl. 13.26 skrev Georgi Chakarov :
> 
> Hi Markus,
>  
> I do mean a “Yes only” data element, not attribute. Basically, at data entry 
> if the data element is ticked off I want a program rule to automatically 
> assign value to a tracked entity attribute (which is an option set). Do you 
> think this is possible and what would be the correct expression for assigning 
> the value?
>  
> On another note, “Yes only” data elements work with both “1” and “true” in 
> expressions.
>  
> Thanks for your input!
>  
> Georgi
>  
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: Monday, August 28, 2017 11:05 AM
> To: Georgi Chakarov 
> Cc: DHIS Users ; DHIS 2 Developers list 
> 
> Subject: Re: [Dhis2-users] Assign value to a tracked entity attribute with an 
> option set
>  
> Hi there Gorgi!
>  
> You mention a "Yes only" data element, but did you mean a "Yes only" tracked 
> entity attribute? Meaning, is the checkbox and the dropdown both located 
> inside same registration/profile form?
>  
> If they are, you can make a rule in the way you describe below. The correct 
> expression would be:
> A{recLawStage} == true
> (Assuming you make a program rule variable called recLawStage for the "Yes 
> only" question)
>  
> Best regards, 
> Markus
>  
> 25. aug. 2017 kl. 14.03 skrev Georgi Chakarov  <mailto:geo...@logicaloutcomes.net>>:
>  
> Hello,
>  
> Using program rules, can I assign value to a tracked entity attribute with an 
> option set?
> In other words, I want the answer option selected for my tracked entity 
> attribute to be dependent on a data element in the current stage.
>  
> I have a YES_Only data element called “Recommendation progressed at law 
> stage?”. If this data element is ticked off I want my tracked entity 
> attribute to be assigned with ‘Law’ answer option.
> This is the rule I have built, that does not seem to be working.
>  
> 1)  Expression - “Recommendation progressed at law stage?” == 1
>  
>  
> 
>  
>  
> 2)  Assign value – Stage == ‘Law’
>  
>   
> 
>  
>  
> Can anyone tell me what is the correct expression to compose, (if values can 
> be assigned to data elements with option sets at all)?
>  
> Thanks a lot,
>  
> Georgi
>  
> 
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
> <mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> <mailto:i...@logicaloutcomes.net>
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <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] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
Sorry, I misunderstood your original question.

To display an attribute in the relationship table, you have to open the tracked 
entity attribute and select the "display in list without program" option. 

Markus

> 27. aug. 2017 kl. 08.48 skrev Immaculate Ayebazibwe :
> 
> Hi Everyone,
> I am working with relationships from program A to B in tracker capture.
> I want to be able to show some identifiers details from B after I have 
> created a relationship in A while this is possible in demo, I am not sure how 
> to accomplish the same on my instance. 
> Above in my instance
> 
> Demo instance
> ​
> Would someone please let me help me accomplish the effect of demo instance.
> I am running 
> Version:
> 2.27
> Build revision:
> 0303f0d
> Build date:
> 2017-08-24 12:02 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> ___
> 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


Re: [Dhis2-users] HELP with program indicator/report

2017-08-28 Thread Markus Bekken
Hi there Georgi,
We do not have a function that does exactly what you asked for, but hopefully 
we can find a way if we examine the data elements in your stages. Do the stages 
have a data element that is mandatory, or at least so pivotal that you can sue 
that data element to determine wether the event should be counted? If so I'd 
recommend looking at a program indicator with the analytics type enrollment. 
With this strategy you can make four program indicators that fullfills the 
explicit requirement for 1, 2, 3 and 4 stages:
Just first stage:
d2:hasValue(#{stage1.dataelement}) && !d2:hasValue(#{stage2.dataelement}) && 
!d2:hasValue(#{stage3.dataelement}) && !d2:hasValue(#{stage4.dataelement})
Just first and second stage:
d2:hasValue(#{stage1.dataelement}) && d2:hasValue(#{stage2.dataelement}) && 
!d2:hasValue(#{stage3.dataelement}) && !d2:hasValue(#{stage4.dataelement})
..and so on.

With the above strategy you would find every tracked entity that has followed 
the expected sequence of events. If you have any requirements for how to count 
the possible cases that deviates the normal(just stage 1 and 3 for example), 
the expressions might look different.

If there is no data element that you can use to proxy the presence of events, 
you will need a new function for checking events regardless of data. In that 
case, please report this as a Jira issue.

Markus

> 25. aug. 2017 kl. 12.11 skrev Georgi Chakarov :
> 
> Hello all,
>  
> I have a tracker program with 4 consecutive non-repeatable stages. Each new 
> stage is created after completion of the previous stage.
> I am trying to create a report/program indicator that counts the tracked 
> entities at their latest stage. In other words, I want to know how many 
> tracked entities I have at each stage without double counting.
>  
> For example, I have 10 tracked entities each of them starting at stage I. 2 
> tracked entities progressed at stage II , 2 progressed at stage III and two 
> progressed at stage IV.
> My report should show (program indicator should calculate) that 4 tracked 
> entities are still at stage I, 2 are in stage II, 2 are in stage III and 2 
> are in stage IV.
>  
> Do you have any idea how to build this one?
>  
> Georgi
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
>  | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> 
>  
> ___
> 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] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
Thank you,

In the relationships widget you should see one table for each program that is 
represented within the relationships that belongs to your local tracked entity 
attribute. Could you provide some more details on your local setup of 
relationships and programs?

> 28. aug. 2017 kl. 09.49 skrev Immaculate Ayebazibwe :
> 
> ​Hey Markus,
> Thx for the quick response
> Yes it has 
> Version:
> 2.27
> Build revision:
> 0303f0d
> Build date:
> 2017-08-24 12:02 ​
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Mon, Aug 28, 2017 at 10:44 AM, Markus Bekken  <mailto:markus.bek...@gmail.com>> wrote:
> Hi Emma,
> splitting the relationship into tables(one for each program) is a pretty new 
> improvement. Have your local instance(assuming it is 2.27) been updated 
> recently?
> 
> Best regards,
> Markus
> 
>> 27. aug. 2017 kl. 08.48 skrev Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>>:
>> 
>> Hi Everyone,
>> I am working with relationships from program A to B in tracker capture.
>> I want to be able to show some identifiers details from B after I have 
>> created a relationship in A while this is possible in demo, I am not sure 
>> how to accomplish the same on my instance. 
>> Above in my instance
>> 
>> Demo instance
>> ​
>> Would someone please let me help me accomplish the effect of demo instance.
>> I am running 
>> Version:
>> 2.27
>> Build revision:
>> 0303f0d
>> Build date:
>> 2017-08-24 12:02 
>> 
>> 
>> Thank you and Kind Regards
>> Immarcqulate. A (Emma Kassy) 
>> 
>> "You miss 100% of the shots you don't take."
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] Assign value to a tracked entity attribute with an option set

2017-08-28 Thread Markus Bekken
Hi there Gorgi!

You mention a "Yes only" data element, but did you mean a "Yes only" tracked 
entity attribute? Meaning, is the checkbox and the dropdown both located inside 
same registration/profile form?

If they are, you can make a rule in the way you describe below. The correct 
expression would be:
A{recLawStage} == true
(Assuming you make a program rule variable called recLawStage for the "Yes 
only" question)

Best regards, 
Markus

> 25. aug. 2017 kl. 14.03 skrev Georgi Chakarov :
> 
> Hello,
>  
> Using program rules, can I assign value to a tracked entity attribute with an 
> option set?
> In other words, I want the answer option selected for my tracked entity 
> attribute to be dependent on a data element in the current stage.
>  
> I have a YES_Only data element called “Recommendation progressed at law 
> stage?”. If this data element is ticked off I want my tracked entity 
> attribute to be assigned with ‘Law’ answer option.
> This is the rule I have built, that does not seem to be working.
>  
> 1)  Expression - “Recommendation progressed at law stage?” == 1
>  
>  
> 
>  
>  
> 2)  Assign value – Stage == ‘Law’
>  
>   
> 
>  
>  
> Can anyone tell me what is the correct expression to compose, (if values can 
> be assigned to data elements with option sets at all)?
>  
> Thanks a lot,
>  
> Georgi
>  
> 
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
>  | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> 
>  
> ___
> 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] Downloading Event Reports and Picot Tables

2017-08-28 Thread Markus Bekken
Hey there,
seems like a feature you can request in Jira!

Markus

> 27. aug. 2017 kl. 09.20 skrev Immaculate Ayebazibwe :
> 
> Hi All,
> When I download event reports or program indicators in pivot tables under 
> Table Layout as Csv or Microsoft excel they have, the orgUnits and data 
> elements/Indicators UIDs generated. For some users this is hard to comprehend.
> Is this a bug or is there a way to turn it off that I must have missed.
> see images
> 
> 
> ​
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Showing Identifiers in Relationship box

2017-08-28 Thread Markus Bekken
Hi Emma,
splitting the relationship into tables(one for each program) is a pretty new 
improvement. Have your local instance(assuming it is 2.27) been updated 
recently?

Best regards,
Markus

> 27. aug. 2017 kl. 08.48 skrev Immaculate Ayebazibwe :
> 
> Hi Everyone,
> I am working with relationships from program A to B in tracker capture.
> I want to be able to show some identifiers details from B after I have 
> created a relationship in A while this is possible in demo, I am not sure how 
> to accomplish the same on my instance. 
> Above in my instance
> 
> Demo instance
> ​
> Would someone please let me help me accomplish the effect of demo instance.
> I am running 
> Version:
> 2.27
> Build revision:
> 0303f0d
> Build date:
> 2017-08-24 12:02 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Issues with Tracked Entity Attributes and Program Rules when using Relationships

2017-08-22 Thread Markus Bekken
Hi Emma,
thank you for following up. Both these seem to be bugs, please register them in 
Jira and we will do a full investigation and fix.

Best regards
Markus

> 22. aug. 2017 kl. 17.05 skrev Immaculate Ayebazibwe :
> 
> Hi Markus,
> Any ideas?
> Should I create a Jira issue for this?
> 
> On Aug 19, 2017 9:01 AM, "Immaculate Ayebazibwe"  > wrote:
> Hi All,
> I have 2 programs one parent (A) another child (B),
> 
> I have set some attributes to inherit however
> When I create a relationship between A and B, and go to register client in B, 
> the Date of Enrollment allows future dates but this is not the case when I 
> directly register a client in B. Could this be a bug? (I have tested this on 
> demo)
> 
> Also Program rules are not working in B when accessing B from Relationship 
> link in A but they work with direct registration. Is this also another bug?
> Should I create a Jira issue?
> ​I am running 
> Version:
> 2.27
> Build revision:
> 688e9c9
> Build date:
> 2017-08-15 12:02​
> 
> ​Highly appreciate your help​
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> ___
> 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


Re: [Dhis2-users] Unable to Register TEI from the Relationship link

2017-08-11 Thread Markus Bekken
Hi Emma!

That can definitively make sense in some use cases. If anyone else has a use 
case where this either does or does not make sense, please chime in.

Markus

> 11. aug. 2017 kl. 11.09 skrev Immaculate Ayebazibwe :
> 
> Hi Markus,
> Thank you, 
> I have seen the fix for the double save buttons on the demo platform.
> I have another concern, when I click the add Child and then be able to 
> register, the link does not automatically load the Child's TEI dashboard but 
> rather stays on the mother's TEI dashboard. Wouldnt it be a good idea to 
> automatically open the child's TEI dashboard after registering the 
> relationship to the child.
> 
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Mon, Jul 24, 2017 at 1:08 PM, Immaculate Ayebazibwe  <mailto:ekass...@gmail.com>> wrote:
> Hi Markus,
> They have been added
> https://jira.dhis2.org/browse/DHIS2-1948 
> <https://jira.dhis2.org/browse/DHIS2-1948>
> https://jira.dhis2.org/browse/DHIS2-1949 
> <https://jira.dhis2.org/browse/DHIS2-1949>
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Mon, Jul 24, 2017 at 12:18 PM, Markus Bekken  <mailto:markus.bek...@gmail.com>> wrote:
> Hi there Emma, 
> I have not been able to yet, other than confirming the concerns you have - 
> and also observing that the page for registering related TEIs does not 
> trigger program rules in the registration form like it should. Could you 
> perhaps register the additional issues you found as bugs in Jira?
> 
> Markus
> 
> 
>> 24. jul. 2017 kl. 11.12 skrev Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>>:
>> 
>> Hi Markus,
>> I hope you are great!
>> Have you had a chance to look at this?
>> 
>> 
>> 
>> Thank you and Kind Regards
>> Immarcqulate. A (Emma Kassy) 
>> 
>> "You miss 100% of the shots you don't take."
>> 
>> On Thu, Jul 20, 2017 at 5:15 PM, Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>> wrote:
>> Hi Markus,
>> Thanks, the issue for saving TEI is working.
>> I have a few concerns, 
>> 1. There are two sets of save and cancel buttons. These might be confusing 
>> to end users even though one set is disabled.
>> 2. The Incident date is set to LMP date for all the programs I have tested 
>> even when I unchecked the show incident date it still shows when registering 
>> a TEI as LMP date.
>> Please note I am testing on Demo instance. See image attached.
>> 
>> 
>> 
>> Thank you and Kind Regards
>> Immarcqulate. A (Emma Kassy) 
>> 
>> "You miss 100% of the shots you don't take."
>> 
>> On Thu, Jul 20, 2017 at 10:43 AM, Markus Bekken > <mailto:markus.bek...@gmail.com>> wrote:
>> Hi Prosper and Emma,
>> Thanks for registering a bug. It was an easy fix, so a new build is on the 
>> way. 
>> 
>> Markus
>> 
>>> 19. jul. 2017 kl. 12.13 skrev Prosper BT >> <mailto:ptb3...@gmail.com>>:
>>> 
>>> Hi Emma,
>>> 
>>> The jira issue is available review, comment and vote
>>> 
>>> DHIS2-1791 <https://jira.dhis2.org/browse/DHIS2-1791>
>>> 
>>> Regards
>>> 
>>> Prosper Behumbiize, MPH
>>> DHIS2 Implementation| HISP Uganda
>>> pros...@hispuganda.org <mailto:ptb3...@gmail.com> | pros...@dhis2.org 
>>> <mailto:pros...@dhis2.org> | Skype: prospertb
>>> 
>>> On Wed, Jul 19, 2017 at 12:43 PM, Immaculate Ayebazibwe >> <mailto:ekass...@gmail.com>> wrote:
>>> Hi Dev Team, Markus, Abyot,
>>> Any Ideas?
>>> Should I create a JIRA issue?
>>> I will appreciate a response.
>>> 
>>> 
>>> 
>>> Thank you and Kind Regards
>>> Immarcqulate. A (Emma Kassy) 
>>> 
>>> "You miss 100% of the shots you don't take."
>>> 
>>> On Mon, Jul 17, 2017 at 5:26 PM, Immaculate Ayebazibwe >> <mailto:ekass...@gmail.com>> wrote:
>>> Hi All,
>>> I am trying to add a relation between a parent TEI and child TEI but when I 
>>> click the the relationship link and click add to register child TEI, 
>>> nothing happens or new TEI is not registered.
>>> Tested this on Demo using MNCH/PNC Adult woman program and Child Program.
>>> 
>>> Also take a look at image attached
>>&g

Re: [Dhis2-users] d2: daysbetween AND d2:yearsbetween not working properly in 2.27 build revision b6e8cde

2017-08-10 Thread Markus Bekken
Hi Georgi!
The age should also have worked fine - the age is in reality just a date being 
displayed in another way. Can you report the bug in Jira please?

One thing to consider if you want to combine this rule with the AGE data type: 
The number of years displayed in the AGE data element is calculated based on 
todays date. The calculation that you are doing the rule is calculating the age 
of the person at the time of enrollment. That means that if you register a 
person 17 years old today, with today as the enrollment date, the AGE 
dataelement would display 17 as the age and your rule would also consider the 
person to be 17. Then if you come back in 1 year, the AGE data element would 
show 18 as the age - but the underlying birthdate and enrollment date would be 
unchanged and therefore the rule would still calculate the age to 17.

Markus

> 9. aug. 2017 kl. 14.24 skrev Georgi Chakarov :
> 
> Hi Markus,
>  
> I was able to test this expression d2:yearsBetween(A{Date of Birth}, V{ 
> enrollment _date})  <18
> The problem was that my Date of Birth attribute was of value type AGE. Once I 
> changed it to DATE the program rule started working.
>  
> Is there anything specific that needs to be taken into consideration when 
> working with Age value type?
>  
> Regards,
>  
> Georgi
>  
> From: Markus Bekken [mailto:mar...@dhis2.org] 
> Sent: Wednesday, August 9, 2017 11:01 AM
> To: Georgi Chakarov 
> Cc: DHIS Users ; DHIS 2 Developers list 
> 
> Subject: Re: [Dhis2-users] FW: d2: daysbetween AND d2:yearsbetween not 
> working properly in 2.27 build revision b6e8cde
>  
> Hi there Georgi!
> The expression
> d2:yearsBetween(A{Date of Birth}, V{ enrollment _date})  <18
> should be the correct one. I would change the V{ enrollment _date} to 
> V{enrollment _date}
>  
> Note that before the birth date is not entered, the expression will evaluate 
> to 0 - which will be less than 18.
>  
> Let me know how it goes.
>  
> Markus
>  
> 9. aug. 2017 kl. 00.41 skrev Georgi Chakarov  <mailto:geo...@logicaloutcomes.net>>:
>  
> Hello all! Any thoughts on my email below from last week?
>  
> Thanks,
>  
> Georgi
>  
> From: Georgi Chakarov 
> Sent: Friday, August 4, 2017 1:01 PM
> To: DHIS Users  <mailto:dhis2-users@lists.launchpad.net>>; DHIS 2 Developers list 
> mailto:dhis2-d...@lists.launchpad.net>>
> Cc: Sara Gaudon mailto:s...@logicaloutcomes.net>>; 
> Kristiyan Panayotov  <mailto:kristi...@logicaloutcomes.net>>
> Subject: d2: daysbetween AND d2:yearsbetween not working properly in 2.27 
> build revision b6e8cde
>  
> Hello all!
>  
> I am trying to create a program rule based on Date of birth and Enrollment 
> date. Basically, I want to hide one set of data elements if the client is 
> below 18 years old and another set of data elements if the client is above 18 
> years of age.
>  
> This is what I tried:
> 1)  (d2:daysBetween(A{Date of Birth}, V{enrollment_date})/365)  <18   
>   THIS DOES NOT WORK
> 2)  (d2:yearsBetween(A{Date of Birth}, V{ enrollment _date})/365)  <18
>   This actually works(hides the data element I want), but I don’t think 
> it is the correct expression.
> 3)  d2:yearsBetween(A{Date of Birth}, V{ enrollment _date})  <18  
> I think that this is the correct expression, but it is executing 
> the rule (does not hide the data element).
>  
> Do you think that there might be a bug in how these expressions work? If not, 
> can someone guide me to the correct expression?
>  
> Thanks in advance,
>  
> Georgi
>  
>  
>  
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
> <mailto:geo...@logicaloutcomes.net> | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> <mailto:i...@logicaloutcomes.net>
>  
> ___
> Mailing list: https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> Post to : dhis2-users@lists.launchpad.net 
> <mailto:dhis2-users@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-users 
> <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp 
> <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] got error in tracker capture

2017-08-09 Thread Markus Bekken
Can you try and change this attribute so it is unique across the entire system?

The program scope uniqueness does not work, and has been removed as an option 
in later versions of dhis2.

Markus

> 9. aug. 2017 kl. 10.30 skrev channara rin :
> 
> Yes,
> i have one attribute field use "unique" is ID attribute.
> 
> thanks,
> channara
> 
> On Wed, Aug 9, 2017 at 3:29 PM, Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hi Channara!
> Are you using the "unique in program" scope for any of your tracked entity 
> attributes?
> 
> Best regards,
> Markus
> 
> > 9. aug. 2017 kl. 10.27 skrev channara rin  > <mailto:rin.chann...@gmail.com>>:
> >
> > Hi All,
> > when i open existing tracker and i update new value of attribute or change 
> > value of attribute, i got this error. what is the problem?
> > ***DHIS2 V2.26
> > 
> >
> > thanks
> > channara
> > ___
> > Mailing list: https://launchpad.net/~dhis2-users 
> > <https://launchpad.net/~dhis2-users>
> > Post to : dhis2-users@lists.launchpad.net 
> > <mailto:dhis2-users@lists.launchpad.net>
> > Unsubscribe : https://launchpad.net/~dhis2-users 
> > <https://launchpad.net/~dhis2-users>
> > More help   : https://help.launchpad.net/ListHelp 
> > <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] got error in tracker capture

2017-08-09 Thread Markus Bekken
Hi Channara!
Are you using the "unique in program" scope for any of your tracked entity 
attributes?

Best regards,
Markus

> 9. aug. 2017 kl. 10.27 skrev channara rin :
> 
> Hi All,
> when i open existing tracker and i update new value of attribute or change 
> value of attribute, i got this error. what is the problem?
> ***DHIS2 V2.26
> 
> 
> thanks
> channara
> ___
> 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] FW: d2: daysbetween AND d2:yearsbetween not working properly in 2.27 build revision b6e8cde

2017-08-09 Thread Markus Bekken
Hi there Georgi!
The expression
d2:yearsBetween(A{Date of Birth}, V{ enrollment _date})  <18
should be the correct one. I would change the V{ enrollment _date} to 
V{enrollment _date}

Note that before the birth date is not entered, the expression will evaluate to 
0 - which will be less than 18.

Let me know how it goes.

Markus

> 9. aug. 2017 kl. 00.41 skrev Georgi Chakarov :
> 
> Hello all! Any thoughts on my email below from last week?
>  
> Thanks,
>  
> Georgi
>  
> From: Georgi Chakarov 
> Sent: Friday, August 4, 2017 1:01 PM
> To: DHIS Users ; DHIS 2 Developers list 
> 
> Cc: Sara Gaudon ; Kristiyan Panayotov 
> 
> Subject: d2: daysbetween AND d2:yearsbetween not working properly in 2.27 
> build revision b6e8cde
>  
> Hello all!
>  
> I am trying to create a program rule based on Date of birth and Enrollment 
> date. Basically, I want to hide one set of data elements if the client is 
> below 18 years old and another set of data elements if the client is above 18 
> years of age.
>  
> This is what I tried:
> 1)  (d2:daysBetween(A{Date of Birth}, V{enrollment_date})/365)  <18   
>   THIS DOES NOT WORK
> 2)  (d2:yearsBetween(A{Date of Birth}, V{ enrollment _date})/365)  <18
>   This actually works(hides the data element I want), but I don’t think 
> it is the correct expression.
> 3)  d2:yearsBetween(A{Date of Birth}, V{ enrollment _date})  <18  
> I think that this is the correct expression, but it is executing 
> the rule (does not hide the data element).
>  
> Do you think that there might be a bug in how these expressions work? If not, 
> can someone guide me to the correct expression?
>  
> Thanks in advance,
>  
> Georgi
>  
>  
>  
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
>  | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> 
>  
> ___
> 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] Help with a program rule

2017-08-08 Thread Markus Bekken
Hi there Georgi!
Thanks for the feedback.

It seems you got it almost right except for one little detail on the usage of 
the substring function. 

To get the fifth character you would have to change your expression to:
 d2:substring(A{Client ID}, 5, 6) == '2'

There was an error in the doc, so a small update is on the way here:
19.5.6. Reference information: Operators and functions to use in program rule 
expression 


Hope this helps!

Best regards
Markus

> 4. aug. 2017 kl. 17.58 skrev Georgi Chakarov :
> 
> Hi all (again)! J
>  
> I have a challenging task for whoever is interested. I find it quite 
> difficult working with the functions in program rules expression, especially 
> learning from the user manual.
>  
> I am trying to execute the following rule:
> If the fifth character of Client ID (text attribute) is equal to ‘2’, the Sex 
> (Option set attribute) should be equal to ‘Female’. This is an example of 
> client ID: 2.
>  
> This is what I think:
> 1)  I need to extract the fifth character and evaluate whether it equals 
> ‘2’. I am using d2:substring(text, start-char-num, end-char-num)
> This is my expression d2:substring(A{Client ID}, 5, 5) == '2'
>  
> 2)  I need to push ‘Female’ option to the Sex attribute. I am not sure 
> how to do that from the program rule actions. I tried:
> a)   Assign value to Sex attribute – expression is ‘Female’
> b)  Assign value to Sex attribute – expression is A{Sex} == 'Female'
>  
> None of the combinations 1) + 2a) OR 1) + 2b) worked, regretfully.
>  
> Does any of you know or can figure out how this might work?
>  
> Regards,
>  
> Georgi 
>  
>  
>   
> Georgi Chakarov, CIA | geo...@logicaloutcomes.net 
>  | +1-647-478-5634 x 104 | LogicalOutcomes 
> c/o Centre for Social Innovation, 720 Bathurst Street, Toronto Canada M5S 2R4 
> | You may unsubscribe from receiving commercial electronic messages from 
> LogicalOutcomes by emailing i...@logicaloutcomes.net 
> 
>  
> ___
> 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] how to design model or form to collect master-detail information?

2017-07-25 Thread Markus Bekken
Hi there Lin,

One way of modeling the data you describe below can be:
- In the programs app, make one program(with registration) and tracked entity 
attributes Name and Age.
- In this program, add one repeatable program stage with data elements Name, 
Dose, Frequency.

In the tracker data entry user interface you might want to try and add the 
"Tabular data entry" widget in the "show hide widgets" menu at the top right of 
the screen. This is an alternate way of entering data that might suit your 
usecase better.

Best regards,
Markus

> 21. jul. 2017 kl. 04.39 skrev 林晓东 :
> 
> 
> 
>  
> hi,all
> 
> Is DHIS2 program Track can collection data as fallowing: 
> 
> ==(master )=  
> name:
> age:___
> access date:
>  ---dynamic list (detail) ---
> drug1: name,dose,frequency
> drug2: name,dose,frequency
> drug3: name,dose,frequency
> 
> ---
> 
> 
> 
> --
> 此致
> 
>easy
> 
> 莫愁前路无知己,天下谁人不识君。
> 
> 
>  
> 
> 
>  
> ___
> 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] program indicators - function

2017-07-25 Thread Markus Bekken
Dear Lise, 
unfortunately I can not think of any elegant way of achieving this within the 
current functionality of the program indicators.

We could make a d2:max() function that would take in a list of data elements 
and return the highest value represented within the list of arguments. Can you 
please add a jira issue describing your usecase?

Best regards
Markus

> 24. jul. 2017 kl. 08.43 skrev GROUT, Lise :
> 
> Dear DHIS2 team, 
>  
> I need some help for a program indicator. 
> 
> I have several 6 data elements which are integer. I would like to have a 
> program indicator which is the maximum value among those 6 DE. Any idea?
>  
> Lise.
>  
> Dr. Lise Grout
> Epidemiologist
>  
> World Health Organization
> Department of Neglected Tropical Diseases (HTM/NTD/IDM)
> Innovative and Intensified Disease Management Unit
> 20, Avenue Appia; CH-1211 Geneva 27
> Tel. +41 22 791 2341
> Mobile +41 79 290 68 61
> Skype: tigrouveto
> http://www.who.int/neglected_diseases 
___
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] Unable to Register TEI from the Relationship link

2017-07-24 Thread Markus Bekken
Hi there Emma, 
I have not been able to yet, other than confirming the concerns you have - and 
also observing that the page for registering related TEIs does not trigger 
program rules in the registration form like it should. Could you perhaps 
register the additional issues you found as bugs in Jira?

Markus

> 24. jul. 2017 kl. 11.12 skrev Immaculate Ayebazibwe :
> 
> Hi Markus,
> I hope you are great!
> Have you had a chance to look at this?
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Thu, Jul 20, 2017 at 5:15 PM, Immaculate Ayebazibwe  <mailto:ekass...@gmail.com>> wrote:
> Hi Markus,
> Thanks, the issue for saving TEI is working.
> I have a few concerns, 
> 1. There are two sets of save and cancel buttons. These might be confusing to 
> end users even though one set is disabled.
> 2. The Incident date is set to LMP date for all the programs I have tested 
> even when I unchecked the show incident date it still shows when registering 
> a TEI as LMP date.
> Please note I am testing on Demo instance. See image attached.
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Thu, Jul 20, 2017 at 10:43 AM, Markus Bekken  <mailto:markus.bek...@gmail.com>> wrote:
> Hi Prosper and Emma,
> Thanks for registering a bug. It was an easy fix, so a new build is on the 
> way. 
> 
> Markus
> 
>> 19. jul. 2017 kl. 12.13 skrev Prosper BT > <mailto:ptb3...@gmail.com>>:
>> 
>> Hi Emma,
>> 
>> The jira issue is available review, comment and vote
>> 
>> DHIS2-1791 <https://jira.dhis2.org/browse/DHIS2-1791>
>> 
>> Regards
>> 
>> Prosper Behumbiize, MPH
>> DHIS2 Implementation| HISP Uganda
>> pros...@hispuganda.org <mailto:ptb3...@gmail.com> | pros...@dhis2.org 
>> <mailto:pros...@dhis2.org> | Skype: prospertb
>> 
>> On Wed, Jul 19, 2017 at 12:43 PM, Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>> wrote:
>> Hi Dev Team, Markus, Abyot,
>> Any Ideas?
>> Should I create a JIRA issue?
>> I will appreciate a response.
>> 
>> 
>> 
>> Thank you and Kind Regards
>> Immarcqulate. A (Emma Kassy) 
>> 
>> "You miss 100% of the shots you don't take."
>> 
>> On Mon, Jul 17, 2017 at 5:26 PM, Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>> wrote:
>> Hi All,
>> I am trying to add a relation between a parent TEI and child TEI but when I 
>> click the the relationship link and click add to register child TEI, nothing 
>> happens or new TEI is not registered.
>> Tested this on Demo using MNCH/PNC Adult woman program and Child Program.
>> 
>> Also take a look at image attached
>> Console is showing the following error attached:
>> 
>> 
>> 
>> 
>> Thank you and Kind Regards
>> Immarcqulate. A (Emma Kassy) 
>> 
>> "You miss 100% of the shots you don't take."
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
>> 
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] Program rules - Hide program stages

2017-07-24 Thread Markus Bekken
Dear Lise,
thanks for the feedback :)

I think we might get this to work the way you want by an update of the rules. 
All the rules are executed on every stage. However, when the rules are using 
program rule variables that has source type "Data element in current event", 
then these variables will look different based on which event you have 
currently selected. I suspect this is the key to achieving the behavior you 
want here. If you make sure that the rule for hiding/unhiding the program stage 
is based on variables that uses source type "Data element in the newest event 
in program", it might behave the way you want. This makes the rule behave the 
same way across all the program stages.

Are you on 2.27, you have full access to view and change the program rule 
variables in the maintenance app. In 2.26 and earlier you can unfortunately not 
see and change this in the UI. You can either make a new source field, or 
change the existing ones in the database or through the API. Let me know if I 
can assist you further in this.

Markus

> 24. jul. 2017 kl. 08.43 skrev GROUT, Lise :
> 
> Dear DHIS2 team, 
>  
> We use the program rule “hide program stages” for one of our tracker. 
> Depending on the clinical suspicion in stage 1, several disease-specific 
> stages are “unhidden” (stage 2, stage 3, stage4). We are very happy this has 
> been implemented in 2.26. 
>  
> Would it be possible to improve it a little bit? 
> Currently, if I have just completed the stage 2 and I want to “add” stage 3 
> to continue entering data, stage 3 et stage 4 do not show up, unless I click 
> back on the stage 1 (where we have the program rule). Would it be difficult 
> to allow for adding stage 3 and stage 4 from whichever stage as soon as the 
> program rule in stage 1 is verified?
>  
> Not sure if I make sense…
>  
> Best
> Lise.
>  
>  
> Dr. Lise Grout
> Epidemiologist
>  
> World Health Organization
> Department of Neglected Tropical Diseases (HTM/NTD/IDM)
> Innovative and Intensified Disease Management Unit
> 20, Avenue Appia; CH-1211 Geneva 27
> Tel. +41 22 791 2341
> Mobile +41 79 290 68 61
> Skype: tigrouveto
> http://www.who.int/neglected_diseases 
___
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] Unable to Register TEI from the Relationship link

2017-07-20 Thread Markus Bekken
Hi Prosper and Emma,
Thanks for registering a bug. It was an easy fix, so a new build is on the way. 

Markus

> 19. jul. 2017 kl. 12.13 skrev Prosper BT :
> 
> Hi Emma,
> 
> The jira issue is available review, comment and vote
> 
> DHIS2-1791 
> 
> Regards
> 
> Prosper Behumbiize, MPH
> DHIS2 Implementation| HISP Uganda
> pros...@hispuganda.org  | pros...@dhis2.org 
>  | Skype: prospertb
> 
> On Wed, Jul 19, 2017 at 12:43 PM, Immaculate Ayebazibwe  > wrote:
> Hi Dev Team, Markus, Abyot,
> Any Ideas?
> Should I create a JIRA issue?
> I will appreciate a response.
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Mon, Jul 17, 2017 at 5:26 PM, Immaculate Ayebazibwe  > wrote:
> Hi All,
> I am trying to add a relation between a parent TEI and child TEI but when I 
> click the the relationship link and click add to register child TEI, nothing 
> happens or new TEI is not registered.
> Tested this on Demo using MNCH/PNC Adult woman program and Child Program.
> 
> Also take a look at image attached
> Console is showing the following error attached:
> 
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> 
> ___
> 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] Finding the days between 2 events (different program stages) in the same program

2017-07-13 Thread Markus Bekken
Hi Nick!
This is unfortunately not possible at the moment, but there is a Jira issue you 
can vote for here: 
https://jira.dhis2.org/browse/DHIS2-1397?jql=text%20~%20%22event%20dates%22

Best regards,
Markus

> 12. jul. 2017 kl. 11.24 skrev Shurajit Dutta :
> 
> Hi there,
> 
> Am wondering if it is possible to use d2:daysBetween (or weeks, years, etc) 
> to find the difference between two event dates in the same program (but 
> belonging to different program stages). I know you can use the program stage 
> name/id in the filter, but in this case can I need to specify the event dates 
> so it knows which dates to find the difference between. Can I prefix these 
> dates somehow?
> 
> In this use case I have a malaria program where cases are identified (stage 
> 1). In stage 2 an investigation is performed, ideally this should be done 
> within 2 days of case identification. Essentially am looking for a count of 
> these events that meet this criteria.
> 
> Thanks,
> Nick
> ___
> 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] Bulk removing DEs and Orgunits

2017-07-11 Thread Markus Bekken
Hi there,

Here is a sql function for deleting the whole or parts of your orgunit tree:

https://github.com/dhis2/dhis2-utils/blob/master/resources/sql/delete_orgunittree_with_data.sql

If you create this function, you can invoke it with 
select delete_orgunittree_with_data('');

Best regards,
Markus

> 11. jul. 2017 kl. 15.41 skrev Jesus Solano-Roman :
> 
> Hello all.
> 
> I'm trying to bulk remove all existing Orgunits from my database and I found 
> this CLI API https://github.com/baosystems/dish2 
>  that allows to exactly do that. 
> However, it hasn't worked for me, perhaps due to my current system 
> infrastructure. Is there another way to bulk remove metadata from the DHIS2 
> database?
> 
> I should note that I'm trying to accomplish this using the Docker version of 
> the DHIS2 distribution (I realize it's not official, but it's extremely 
> convenient). https://github.com/pgracio/dhis2-docker 
> 
> 
> 
> Thank you.
> 
> 
> Antonio.
> ___
> 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] Help needed: Show/hide previous DE entry based on a selection

2017-07-10 Thread Markus Bekken
Dear Jean, 
which version og DHIS are you using?

On 2.27 you can do this with program rules. 
- The easiest way would be to make a rule that triggers a "Display text" or 
"Display key/value pair" to the user in case the user answers Yes on the 
designated data field. These texts can be shown in the "Feedback" or "Program 
indicators" widgets, but not in the data entry form itself. 
- It would also be possible to make a rule that assigns the value from visit 1 
into a data element of visit 2. What makes this option less desirable compared 
to the "Display key/value" or "Display text" option above is that the 
assign-strategy will create a duplication of the data from visit 1 into another 
data element in visit 2.

Based on how your data is modelled it might be possible to achieve on older 
versions of dhis2 using program indicators.

Markus

> 27. jun. 2017 kl. 05.52 skrev Mugisha, Jean F. :
> 
> Dear all,
>  
> We have the following use case and your advice would be greatly appreciated.
>  
> Our use-case needs to show/hide a previous DE entry based on a current Yes/No 
> selection. Below are the few requirements that are needed:
>  
> 1st visit: User enters data.
> 2nd visit: User enters data.
> IF user selects Yes on a data element THEN a text box (message) should show 
> up with the previous (in this case 1st visit) data element information (as a 
> FYI message to the user).  
> IF user selects No on a data element THEN the FYI message is hidden.
>  
> We have created tracker program to get the data, but unfortunately, we have 
> been unable to implement 2.a. in DHIS2. I am sure that we are missing 
> something but I can’t seem to figure it out.
>  
> Any help would be greatly appreciated.
>  
> Regards,
> Jean
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] UNABLE TO DOWNLOAD DATA FROM TRACKER CAPTURE STAGE

2017-06-20 Thread Markus Bekken
Hey again Stanley,
what is the specific error in the downloaded data from your screenshot below? 
Unless told otherwise I would say that the data in your screenshot looks 
correct :)

Markus

> 20. jun. 2017 kl. 16.53 skrev Stanley Kalyati :
> 
> Hi Ocaya,
> 
> I am using google chrome as my browser.
> 
> When i download the stage this is what i get.
> 
> Regards and thank you
> 
> Stanley
> 
> On Tue, Jun 20, 2017 at 3:54 PM, Ocaya Stephen  <mailto:stepho...@gmail.com>> wrote:
> Stanley,
> 
> Just to understand, what browser are you using ?? 
> 
> My friends also had the same issues with download blank excel file while 
> another person is able to load the full data.
> 
> Regards
> 
> On Tue, Jun 20, 2017 at 8:40 AM, Stanley Kalyati  <mailto:skaly...@gmail.com>> wrote:
> Thanks Markus for returning my mail.I am.using version 2.26 and my program 
> has 4 stages.
> 
> I have not reproduced the problem on play
> 
> Thanks
> 
> Stanley
> 
> On Jun 20, 2017 8:35 AM, "Markus Bekken"  <mailto:mar...@dhis2.org>> wrote:
> Hi there Stanley,
> Sorry for the delayed response. 
> I was not able to reproduce the problem on the play dev instance. Which 
> version are you on? Did you try and reproduce the problem in play?
> 
> Best regards,
> Markus
> 
>> 20. jun. 2017 kl. 06.51 skrev Stanley Kalyati > <mailto:skaly...@gmail.com>>:
>> 
>> Any help on this one? No one has come forth to assist.
>> 
>> Thanks
>> Stanley
>> 
>> On Jun 15, 2017 4:17 PM, "Stanley Kalyati" > <mailto:skaly...@gmail.com>> wrote:
>> Hi All,
>> 
>> I am trying to download raw data from Tracker Capture where i have 3 stages 
>> and whenever i select the stage and try to download using CSV,i get blank 
>> CSV file without actual data entered.
>> 
>> Attached herewith the sample of the processes that i took.
>> 
>> How do i extract data from the stages? Urgent please  
>> 
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <https://help.launchpad.net/ListHelp>
> 
> 
> ___
> Mailing list: https://launchpad.net/~dhis2-devs 
> <https://launchpad.net/~dhis2-devs>
> Post to : dhis2-d...@lists.launchpad.net 
> <mailto:dhis2-d...@lists.launchpad.net>
> Unsubscribe : https://launchpad.net/~dhis2-devs 
> <https://launchpad.net/~dhis2-devs>
> More help   : https://help.launchpad.net/ListHelp 
> <https://help.launchpad.net/ListHelp>
> 
> 
> 
> 
> -- 
> 
> You can do anything, but not everything.
> 
> 

___
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] Tracker DE data export

2017-06-19 Thread Markus Bekken
Hi there Georgi,
In later versions of DHIS2 there is a selection for "ID Scheme" in the event 
export user interface. If you select "Code", the (possibly) readable codes of 
your orgUnits and data elements will be used instead of the UIDs. 

If you are on earlier versions, or if you want to do something more 
sophisticated, you can make your own web API query. The DHIS2 documentation 
provides details on what options you have for the ID scheme, but you will have 
to write the query yourself: 
https://docs.dhis2.org/master/en/developer/html/dhis2_developer_manual_full.html#webapi_identifier_schemes

A tip for not having to construct the whole query from scratch; you can look at 
the web api calls that the event export app does, and modify this one. If you 
use chrome, open developer tools and click the network tab before going back to 
the page and clicking the "Export" button.

Hope this helps!

Best regards,
Markus

> 16. jun. 2017 kl. 11.41 skrev Georgi Chakarov :
> 
> Hi Thai,
>  
> Thanks for this response! I am also interested in this topic so I would like 
> to ask a question. When using the Import-Export app to export event/tracker 
> data I get the data but instead of seeing data element and org unit names I 
> see the UIDs. Is there a way to export data and get the names of the org 
> units and data elements (programs and stages as well)? Practically, the data 
> is not very useful export in the described format, unless manually one 
> matches the UIDs and the names.
>  
> Regards,
> Georgi
>  
> From: Dhis2-users 
> [mailto:dhis2-users-bounces+georgi=logicaloutcomes@lists.launchpad.net 
> ]On
>  Behalf Of Thai Nguyen Duy
> Sent: Thursday, June 15, 2017 11:16 AM
> To: Trần Quý Phi mailto:p...@cdytqn.edu.vn>>
> Cc: dhis2-users@lists.launchpad.net 
> Subject: Re: [Dhis2-users] Tracker DE data export
>  
> Hi Dr.Phi,
>  
> As I understand, you want to export data of Tracker Program.
> So you should go to Event Export in Import-Export Module, then select program 
> that you want to export its data.
>  
> Regards,
> Thai
>  
>  
> On Thu, Jun 15, 2017 at 2:18 PM, Trần Quý Phi  > wrote:
> Hi all,
> 
> In Export/Import module, we could export data set(s) only. But with Tracker 
> DEs, we could not create a data set.
> 
> Is there a solution for data in Tracker DEs?
> 
> We use version 2.26.
> 
> -- 
> Bs. Trần Quý Phi
> Trường Cao đẳng Y tế Quảng Nam
> 03 Nguyễn Du
> 0914 152 742
> 
> ___
> 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 
> 
> 
> 
>  
> -- 
> Thai Nguyen Duy - Hisp Vietnam
> Phone: (+084) 909-633-400
> 
> ___
> 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] UNABLE TO DOWNLOAD DATA FROM TRACKER CAPTURE STAGE

2017-06-19 Thread Markus Bekken
Hi there Stanley,
Sorry for the delayed response. 
I was not able to reproduce the problem on the play dev instance. Which version 
are you on? Did you try and reproduce the problem in play?

Best regards,
Markus

> 20. jun. 2017 kl. 06.51 skrev Stanley Kalyati :
> 
> Any help on this one? No one has come forth to assist.
> 
> Thanks
> Stanley
> 
> On Jun 15, 2017 4:17 PM, "Stanley Kalyati"  > wrote:
> Hi All,
> 
> I am trying to download raw data from Tracker Capture where i have 3 stages 
> and whenever i select the stage and try to download using CSV,i get blank CSV 
> file without actual data entered.
> 
> Attached herewith the sample of the processes that i took.
> 
> How do i extract data from the stages? Urgent please  
> 
> ___
> 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


Re: [Dhis2-users] [Dhis2-devs] Skip-logic on Events with Option Codes - can't seem to get it to work...

2017-06-13 Thread Markus Bekken
Thanks, just a quick question to rule out possible logical problems: Do the two 
other mentioned rule hide the same field? If one rule wants to hide a field, 
and another one does not - the one rule who wants to hide will take precedence 
and the field will be hidden. 

Markus

> 13. jun. 2017 kl. 09.56 skrev David Hagan :
> 
> Here are the specifics of the skip logic to see if anyone can spot if I've 
> made a mistake.
> 
> The CE-Discharge variable represents a discharge method data element that is 
> an option-set with 4 values.
> 
> Absconded, MODDIS_ABSC
> Transferred, MODDIS_TRANS
> Died, MODDIS_DIED
> Discharged, MODDIS_DISCH
> 
> simple rule is #{CE-Discharge} != 'MODDIS_TRANS' then hide some extra 
> transfer detailed they want to capture.
> 
> there is another similar rule but for the MODDIS_DIED option.
> 
> Let me know if I am missing something.
> 
> 
> 
> On 13 June 2017 at 10:09, David Hagan  <mailto:david.ha...@sagehagan.com>> wrote:
> Thanks Markus,
> 
> Yes, we made sure we set that ... here's the return from the API call... will 
> do some further testing to see if we can figure this out.
> 
> 
> DATAELEMENT_CURRENT_EVENT
> true
> 
> 
> By the way, we had a go with 2.27 last night so we could get access to the 
> new Rules interface ... got to say we love it :-). Had to roll back though 
> because the org tree wasn't displaying in the data entry or event capture 
> screens but would display once we did a 'search' for the root node. Haven't 
> had time to document this or fully test things as we are on a deadline.
> 
> Cheers
> 
> David
> 
> 
> On 13 June 2017 at 09:41, Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hi David!
> There is a flag when you create the source field that lets you control wether 
> the value or code should be used in the comparisons. Unfortunately the source 
> fields is not editable once created until version 2.27 onwards. You can check 
> the settings of your source field in the API:
> 
> https://play.dhis2.org/release1/api/programRuleVariables?paging=none&fields=name,programRuleVariableSourceType,useCodeForOptionSet&filter=name:eq:
>  
> <https://play.dhis2.org/release1/api/programRuleVariables?paging=none&fields=name,programRuleVariableSourceType,useCodeForOptionSet&filter=name:eq:>(sourceFieldName)
> 
> Also - what is the source type of the source field that behaves 
> inconsistently?
> 
> Markus
> 
>> 13. jun. 2017 kl. 08.32 skrev David Hagan > <mailto:david.ha...@sagehagan.com>>:
>> 
>> Hi,
>> 
>> Version: 2.26
>> Build revision: a9c5994
>> Build date: 2017-06-11 06:43
>> 
>> Has anyone else had problems with inconsistency in the execution of 
>> skip-logic rules for Events? Sometimes the rules seems to work on the 
>> 'value' ... sometimes they don't seem to work. But what I really need (since 
>> we are doing this in two languages) is the rule to fire off the Code for an 
>> Option Set (simple drop-down data-element with 4 values).
>> 
>> Any known issues with this?
>> 
>> Cheers
>> 
>> David
>> ___
>> Mailing list: https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> Post to : dhis2-users@lists.launchpad.net 
>> <mailto:dhis2-users@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-users 
>> <https://launchpad.net/~dhis2-users>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] Skip-logic on Events with Option Codes - can't seem to get it to work...

2017-06-12 Thread Markus Bekken
Hi David!
There is a flag when you create the source field that lets you control wether 
the value or code should be used in the comparisons. Unfortunately the source 
fields is not editable once created until version 2.27 onwards. You can check 
the settings of your source field in the API:

https://play.dhis2.org/release1/api/programRuleVariables?paging=none&fields=name,programRuleVariableSourceType,useCodeForOptionSet&filter=name:eq:(sourceFieldName)

Also - what is the source type of the source field that behaves inconsistently?

Markus

> 13. jun. 2017 kl. 08.32 skrev David Hagan :
> 
> Hi,
> 
> Version: 2.26
> Build revision: a9c5994
> Build date: 2017-06-11 06:43
> 
> Has anyone else had problems with inconsistency in the execution of 
> skip-logic rules for Events? Sometimes the rules seems to work on the 'value' 
> ... sometimes they don't seem to work. But what I really need (since we are 
> doing this in two languages) is the rule to fire off the Code for an Option 
> Set (simple drop-down data-element with 4 values).
> 
> Any known issues with this?
> 
> Cheers
> 
> David
> ___
> 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] Program Indicator with Period as Condition

2017-06-07 Thread Markus Bekken
Hey Stanley,
currently thats not possible to do exactly as defined below. When using the 
enrollment analytics type, the repeated events is "flattened", so you can only 
query the newest data value for each data element within each program stage. 
You would have to model your data for the purpose if you want to do something 
like this. For example by splitting into more program stages or by having 
certain data elements that gets filled in at patient status changes.

We are looking at ways to avoid this flattening and letting you query in the 
way you want here, but it is not tagged to a release yet.

Markus

> 6. jun. 2017 kl. 20.54 skrev Stanley Kalyati :
> 
> Hi Markus and All
> 
> thank you for your help with regards to program indicators evaluation between 
> period.i.e
> 
> Finding all patients that is negative and with more than 120 days since the 
> last service can be done in 2.26 and later with the following program 
> indicator:
> Analytic type: Enrollment
> Aggreagation operator: Count
> Expression: V{tei_count}
> Filter: #{DATA ELEMENT FOR DIAGNOSIS} == 'Negative' and 
> d2:daysBetween(V{event_date}, V{current_date}) > 120
> 
> However,how can i evaluate or add a condition of all those tested "negative" 
> 120 days ago but have tested "positive'' within 120 days after the first HIV 
> test?
> 
> Will it look like this?
> 
> Analytic type: Enrollment
> Aggreagation operator: Count
> Expression: V{tei_count}
> Filter: (#{DATA ELEMENT FOR DIAGNOSIS} == 'Negative' and 
> d2:daysBetween(V{event_date}, V{current_date}) > 120) and (#{DATA ELEMENT FOR 
> DIAGNOSIS} == 'Positive' and d2:daysBetween(V{event_date}, 
> V{current_date})<120)
> 
> Kindly assist
> 
> Stanley
> 
> 
> 
> On Fri, Jun 2, 2017 at 8:14 AM, Immaculate Ayebazibwe  <mailto:ekass...@gmail.com>> wrote:
> Thank you Markus,
> Will get back to you.
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Thu, Jun 1, 2017 at 1:04 PM, Markus Bekken  <mailto:mar...@dhis2.org>> wrote:
> Hi there Stanley and Emma,
> sorry for the delay.
> 
> For Emmas Question - To count wether someone has received services or not - 
> but avoid counting them twice - you can make the following indicator:
> Analytic type: Event
> Aggregation operator: Count
> Expression: V{tei_count}
> Filter: V{program_stage_uid} == 'THE UID OF YOUR SERVICE PROGRAM STAGE'
> (if you are using 2.25 or older, the last filter is not possible - you would 
> have to make a filter checking one of the mandatory data elements in your 
> program stage(s) used for giving services)
> 
> For the original two issues from Stanley:
> The interval between two events of the same stage is not currently possible 
> to calculate with the current program indicator functionality. We hope to 
> make full support for this in a coming release. To work around this in the 
> current solution, you would have to register the interval since the last 
> event as a data element in the repeating program stage. This data element 
> could be something that the data entry user calculates and enters, or it 
> could be auto assigned by a program rule. The vulnerability with using a 
> helper data element would be the fact that the interval is a part of the 
> data, and if you already have data entered these older events would not have 
> the correct value in this data element. If you change your mind or there is 
> an error in the data, it would be manual work to go through and rectify them.
> 
> Finding all patients that is negative and with more than 120 days since the 
> last service can be done in 2.26 and later with the following program 
> indicator:
> Analytic type: Enrollment
> Aggreagation operator: Count
> Expression: V{tei_count}
> Filter: #{DATA ELEMENT FOR DIAGNOSIS} == 'Negative' and 
> d2:daysBetween(V{event_date}, V{current_date}) > 120
> 
> Hope this helps.
> 
> Best regards
> Markus
> 
> 
>> 1. jun. 2017 kl. 09.43 skrev Stanley Kalyati > <mailto:skaly...@gmail.com>>:
>> 
>> Any update on this?
>> 
>> Eagerly waiting for ideas.
>> 
>> Stanley
>> 
>> On Wed, May 31, 2017 at 2:08 PM, Stanley Kalyati > <mailto:skaly...@gmail.com>> wrote:
>> This another good observation.Let me also benefit from this.
>> 
>> Stanley
>> 
>> On Wed, May 31, 2017 at 1:26 PM, Immaculate Ayebazibwe > <mailto:ekass...@gmail.com>> wrote:
>> Hi Markus,
>> 
>> Stanley, I hope I am not hijacking the conversation.
>> 
>>

Re: [Dhis2-users] [Dhis2-devs] Potential Bug? (skip-logic rules fire on drop-down select but not on radio-button)

2017-06-02 Thread Markus Bekken
Hey David,

a build is triggering now for 2.26 where this should be fixed.

Markus

> 1. jun. 2017 kl. 14.04 skrev Markus Bekken :
> 
> Hi there David!
> I might also be a bit sleep deprived, but have independently confirmed what 
> you describe below.
> 
> Will fix and get back to you!
> 
> Markus
> 
>> 1. jun. 2017 kl. 12.28 skrev David Hagan > <mailto:david.ha...@sagehagan.com>>:
>> 
>> Hey there community ... 
>> 
>> Someone slap me if I've got this wrong ... 
>> 
>> ... been up nearly 24 hours with crazy travel today  and it doesn't help 
>> that some studious drummers associated with Ramadan rituals are gleefully 
>> banging their drums outside my hotel bedroom window for half an hour at 2AM 
>> every morning since last Saturday 😵
>> 
>> Anyway ... got a simple event capture form with some skip logic to un-hide 
>> some extra fields when certain options are selected. As drop-down lists, the 
>> rules fire, but as radio buttons (the setting you can select for the overall 
>> program), the same rule doesn't fire.
>> 
>> Anyone else experience this or can someone validate or not? 
>> 
>> Version details are: 
>> 
>> Version:
>> 2.26
>> Build revision:
>> 09e4ed6
>> Build date:
>> 2017-05-22 13:50
>> 
>> Cheers
>> 
>> David Hagam
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> Post to : dhis2-d...@lists.launchpad.net 
>> <mailto:dhis2-d...@lists.launchpad.net>
>> Unsubscribe : https://launchpad.net/~dhis2-devs 
>> <https://launchpad.net/~dhis2-devs>
>> More help   : https://help.launchpad.net/ListHelp 
>> <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] Potential Bug? (skip-logic rules fire on drop-down select but not on radio-button)

2017-06-01 Thread Markus Bekken
Hi there David!
I might also be a bit sleep deprived, but have independently confirmed what you 
describe below.

Will fix and get back to you!

Markus

> 1. jun. 2017 kl. 12.28 skrev David Hagan :
> 
> Hey there community ... 
> 
> Someone slap me if I've got this wrong ... 
> 
> ... been up nearly 24 hours with crazy travel today  and it doesn't help that 
> some studious drummers associated with Ramadan rituals are gleefully banging 
> their drums outside my hotel bedroom window for half an hour at 2AM every 
> morning since last Saturday 😵
> 
> Anyway ... got a simple event capture form with some skip logic to un-hide 
> some extra fields when certain options are selected. As drop-down lists, the 
> rules fire, but as radio buttons (the setting you can select for the overall 
> program), the same rule doesn't fire.
> 
> Anyone else experience this or can someone validate or not? 
> 
> Version details are: 
> 
> Version:
> 2.26
> Build revision:
> 09e4ed6
> Build date:
> 2017-05-22 13:50
> 
> Cheers
> 
> David Hagam
> ___
> 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


Re: [Dhis2-users] Program Indicator with Period as Condition

2017-06-01 Thread Markus Bekken
Hi there Stanley and Emma,
sorry for the delay.

For Emmas Question - To count wether someone has received services or not - but 
avoid counting them twice - you can make the following indicator:
Analytic type: Event
Aggregation operator: Count
Expression: V{tei_count}
Filter: V{program_stage_uid} == 'THE UID OF YOUR SERVICE PROGRAM STAGE'
(if you are using 2.25 or older, the last filter is not possible - you would 
have to make a filter checking one of the mandatory data elements in your 
program stage(s) used for giving services)

For the original two issues from Stanley:
The interval between two events of the same stage is not currently possible to 
calculate with the current program indicator functionality. We hope to make 
full support for this in a coming release. To work around this in the current 
solution, you would have to register the interval since the last event as a 
data element in the repeating program stage. This data element could be 
something that the data entry user calculates and enters, or it could be auto 
assigned by a program rule. The vulnerability with using a helper data element 
would be the fact that the interval is a part of the data, and if you already 
have data entered these older events would not have the correct value in this 
data element. If you change your mind or there is an error in the data, it 
would be manual work to go through and rectify them.

Finding all patients that is negative and with more than 120 days since the 
last service can be done in 2.26 and later with the following program indicator:
Analytic type: Enrollment
Aggreagation operator: Count
Expression: V{tei_count}
Filter: #{DATA ELEMENT FOR DIAGNOSIS} == 'Negative' and 
d2:daysBetween(V{event_date}, V{current_date}) > 120

Hope this helps.

Best regards
Markus


> 1. jun. 2017 kl. 09.43 skrev Stanley Kalyati :
> 
> Any update on this?
> 
> Eagerly waiting for ideas.
> 
> Stanley
> 
> On Wed, May 31, 2017 at 2:08 PM, Stanley Kalyati  <mailto:skaly...@gmail.com>> wrote:
> This another good observation.Let me also benefit from this.
> 
> Stanley
> 
> On Wed, May 31, 2017 at 1:26 PM, Immaculate Ayebazibwe  <mailto:ekass...@gmail.com>> wrote:
> Hi Markus,
> 
> Stanley, I hope I am not hijacking the conversation.
> 
> Is it possible to just count that some one received the HTC services in a 
> given period and not how many times they received this service.
> Like Stanley said, this is a service offered on a daily/weekly basis and in 
> order to avoid double counting I would just want to check if service is 
> provided in a given period despite the number of times.
> How do I accomplish this?
> 
> 
> 
> Thank you and Kind Regards
> Immarcqulate. A (Emma Kassy) 
> 
> "You miss 100% of the shots you don't take."
> 
> On Wed, May 31, 2017 at 12:54 PM, Stanley Kalyati  <mailto:skaly...@gmail.com>> wrote:
> Markus,
> 
> You have just hit the nail on the head.All those conditions are what am 
> looking for.
> 
> Please guide.
> 
> Thanks
> 
> Stanley
> 
> On May 31, 2017 9:50 AM, "Markus Bekken"  <mailto:mar...@dhis2.org>> wrote:
> Hey again,
> Do you want to evaluate the interval _between_ the visits in the HTC stage 
> for negative patients, and classify them depending on wether it was more or 
> less than 120 days since the last visit?
> 
> Or did you mean that you want to count patients currently negative, and where 
> the last HTC visit happened more than 120 days ago? (Patients that should 
> have come in for a repeat test)
> 
> Best 
> Markus
> 
> 
>> 31. mai 2017 kl. 06.54 skrev Stanley Kalyati > <mailto:skaly...@gmail.com>>:
>> 
>> Markus,
>> 
>> Thanks for coming through.
>> 
>> I have a program with 3 stages.HTC,ART,Viral Load.
>> 
>> HTC is set for daily since clients come for testing each day.And we also do 
>> analysis with regards to those that came to access HTC services per week.Now 
>> those that turn negative are supposed to return for a retest every 3 
>> months.So I want the system to able to identify if one was already tested 
>> like 120days ago or more than 120 days.And we call these repeat tests.
>> 
>> I hope this makes sense.
>> 
>> Secondly, if one tested negative,the two stages must be closed.Only those 
>> positive the other stages must be enabled.
>> 
>> 
>> I hope this makes sense.
>> 
>> Stanley
>> On May 30, 2017 10:46 PM, "Markus Bekken" > <mailto:mar...@dhis2.org>> wrote:
>> Hi Stanley,
>> 
>> It would be great if you can give some more specifics on your use case. 
>> Which program stages do you have, and what dates/inte

Re: [Dhis2-users] Programme Rules

2017-05-31 Thread Markus Bekken
Hi there Samuel!

Let me try and help on the points you mention. 

Auto assigning the data entry date is a bit hard to do before 2.27. I assume 
you are working on 2.26 or older?

For the other points:
1. I assume you are entering the age as a number? If so I would start by 
assigning the age data element a value type "Positive integer" - that would 
validate that numbers below 1 is not allowed. Then make one program rule to 
show an error if the age entered seems too high. To create this program rule, 
use expression #{age} > 120 - and add one action of type "Show error". Type in 
an error message to the right of the action type, and select where the error 
should be displayed. In this case you can select the age data element. #{age} 
is a source field, that needs to be created by clicking add in the source field 
section of the program rule user interface. In this source field you select 
source field type "Data element in current event", and the age data element to 
be the source of #{age}. Reach out if you get stuck here.
Do you have three data elements for hours, months and weeks, you can do the 
same approach for these as for age. Let me know if my assumptions where correct 
or not :)

2. Is the date of admission and date of discharge data elements or tracked 
entity attributes? If so, you can create a program rule, and add two source 
fields. One for date of admission and one for date of discharge. Let us say you 
name them #{admission} and #{discharge}. Then you add the expression 
d2:daysBetween(#{admission},#{discharge}) < 0 - if the number of days between 
the admission and discharge is positive, it means that the discharge date comes 
after the admsision date. If the days between admission and discharge is 
negative, it means the opposite, that the discharge comes before the admission. 
If the number is negative, the action that should be triggered should be of 
type "show error" - just like the rules in 1.

3. We can create a rule that hides the date of admission if the place of death 
is outside the hospital - if you think that will work?
Assuming the place of death is an option set, you could create an expression 
#{placeOfDeath} == 'Outside hospital' and an action of type "hide field", and 
select the Date of admission as the data element to hide.

Hope this helps you along, dont hesitate to ask if you need something more - 
and please correct me if I made any wrong assumptions above.

Best regards
Markus

> 31. mai 2017 kl. 11.46 skrev Samuel Cheburet :
> 
> Dear ll,
> 
> Hope fine, Look for assistance on programme rules and section hiding.
> 
> How to make the data entry be auto fill date of data entry once click 
> register event

> 
> How to set age limit for years from 1 to 120 and should not have negative 
> value if violate should bring errors,  if hours should not be more than 23, 
> Months should not exit 59 months, weeks should not exit 52.
> Date of admission should be earlier than date of Discharge.
> If place of death is outside hospital then date of admission blocked and date 
> of death or Discharge active.
> 
> 
> 
> I interested on Verbal Autopsy 2016 algorithm on DHIS use.
> 
> Regards
> 
> 
> 
> 
> 
> 
> 
> 
> Samuel K. Cheburet  (MSc HIM, Bsc.  HRIM,Dip. HRIT)
> Division of Monitoring and Evaluation,Health Research development and 
> Informatic's
> CRVS Unit
> Afya House, Room LG 37
> PO. Box 30016, 00100.
> Ministry of Health Headquarters, Nairobi, Kenya. 
> mobile + 254-721624338
> Email: samuelchebu...@gmail.com 
> Office personal mail: samuel.chebu...@health.go.ke 
> 
> Office email: crvsu...@health.go.ke 
> Skype: samuelcheburet 
> ___
> 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


  1   2   >