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

2018-09-21 Thread Seleman Ally

The feature that my friends on thisemail thread try to explain I believe is 
very useful. It obvious that a lot of end-userson different tracker projects 
that I know were benefiting a lot with the namedfeature for generating some 
kind of LineListing report (profile) with selected attributes by all the 
organizationunits which are under their responsibility (User organisation unit).

Thanks Markus for the API, it worksfine for me. Though, in a quick glance it 
couldn't show the attributes with datatype "Date". Probably is because I am 
using data format ISO 8601 03-31-1981 (dd-MM-). However, the shared APIhas 
been useful, at least I managed to cool down the anger of my clients


Regardsto the security concern: I am100% agreed. However, I think we should 
trade-off because now the Tracker has varioususe-cases in every sector, it is 
no longer in health sector alone. Even in a Healthsometimes one would like to 
generate the line listing of the patients / clientsenrolled on their Districts 
(with other attributes, not necessary with names). Ithink we should have the 
option not necessary there, then during thecustomization one can activate it if 
want to use 

If we think for a security reasonsit is not safe having that functionality at 
Tracker Data entry (which I support), then we shouldimplement the same 
functionality on Even Report. But we may need to improve itby giving an option 
of giving line listing based on Attributes only (without interferethe events on 
given period). The big limitation with event report is justgiving the all 
events on the row in a given period of time. If one person has10 transactions 
(events) in given period of time, it will appear 10 times onthe event rows. 
Furthermore the person if is not assigned into any Programstage will not show 
up on events, which are not required if one generate theProfile report. 

I think all these are things whichneed to be considered. May be we should 
request these on JIRA!!



Best regards
Sele


On Wednesday, August 22, 2018, 2:41:29 PM GMT+3, Kamugunga Adolphe 
 wrote:  
 
 Hi Markus,
I think what Stanley is trying to express here, applies to all about good 
features that  our end-users are familiar with, and  which get disappeared from 
version to versions.  In the older versions, an end-user at higher Orgunit 
might list all TEI  recorded simply by selecting specific OU. From this list 
he/she can immediately opt to list all, active enrollment, completed , etc 
depending on what is needed for further analysis without passing through Event 
reports app. 

We have received the same complaints from program using Tracker based  systems. 
Because this way of listing TEI is quick  and i would advocate if you can 
explore the possibility of activating again.
On the other hand, i need to hear from the community regarding  DHIS 2.29  if 
the Event report  app is generating tables with cases based data captured after 
upgrading. My tracker system is misbehaving after upgrading to 2.29, the Event 
reports app is no aggregating cases reported after upgrade while the scheduled  
analytics seems to run correctly . Has it reported or someone has hint?
Regards,

Adolphe Kamugunga
MIS Technical Advisor
Mobile: +250 788 740 578
Email:kaa...@gmail.com
Skype: ka.adolphe
 RWANDA



On Wed, 22 Aug 2018 at 12:29, Markus Bekken  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 :
Hi Markus,
I have tried wgoing directly to the API but i keep getting this errorWhat 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  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
- 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  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? Wil

[Dhis2-devs] Event Reports App authorities

2018-09-21 Thread Alejandro
Hi,

The Event Reports App has two modalities of analysis:

-  Aggregated values

-  Events


[image: image.png]



Is there any way to give different access permissions as a function of
user/user groups/user roles?

Does it make any sense?

Obviously Events is always seen as sensitive when it comes to data
protection. It is the exact information introduced in the system line by
line. However, the feeling is not always the same for Aggregated values,
although I guess you could end up doing combinations that allow you to
extract almost the same information (with more effort). Maybe that’s why
both of them are mixed in the same App.

In any case, this feature would give more granularity to authorities.

Thank you in advance!

Alejandro
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


[Dhis2-devs] Metadata Import not Working for 2.29

2018-09-21 Thread Ifeanyi Okoye
Dear All,
We are DHIS 2.29 Build revision: 1797422
We tried to do some metadata import using CSV for data elements and it would 
not run. There is no error or activity on the console but in the logs this is 
what we see
* ERROR 2018-09-21 08:03:50,012 Unexpected error occurred in scheduled task. 
(TaskUtils.java [taskScheduler-23])java.lang.IllegalArgumentException: No enum 
constant org.hisp.dhis.common.ValueType.Sum at 
java.lang.Enum.valueOf(Enum.java:238) at 
org.hisp.dhis.common.ValueType.valueOf(ValueType.java:46) at 
org.hisp.dhis.dxf2.csv.DefaultCsvImportService.dataElementsFromCsv(DefaultCsvImportService.java:321)
 at 
org.hisp.dhis.dxf2.csv.DefaultCsvImportService.fromCsv(DefaultCsvImportService.java:115)
 at 
org.hisp.dhis.importexport.action.util.ImportMetaDataCsvTask.call(ImportMetaDataCsvTask.java:87)
 at 
org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
 at 
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at 
java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
 at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
at java.lang.Thread.run(Thread.java:745)
Can anybody help out with this?
Thank you.


Warm Regards, 

Ifeanyi

Read DrMaestro's Blog
www.ifeanyiokoye.com
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Metadata Import not Working for 2.29

2018-09-21 Thread Morten Olav Hansen
Hi

There is no ValueType called SUM, maybe you are thinking about
AggregationType column?

-- 
Morten Olav Hansen
Senior Engineer, DHIS 2
Team Integration Lead
University of Oslo
http://www.dhis2.org


On Fri, Sep 21, 2018 at 11:59 PM Ifeanyi Okoye 
wrote:

> Dear All,
>
> We are DHIS 2.29 Build revision: 1797422
>
> We tried to do some metadata import using CSV for data elements and it
> would not run. There is no error or activity on the console but in the logs
> this is what we see
>
> * ERROR 2018-09-21 08:03:50,012 Unexpected error occurred in scheduled
> task. (TaskUtils.java [taskScheduler-23])
> java.lang.IllegalArgumentException: No enum constant
> org.hisp.dhis.common.ValueType.Sum
> at java.lang.Enum.valueOf(Enum.java:238)
> at org.hisp.dhis.common.ValueType.valueOf(ValueType.java:46)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.dataElementsFromCsv(DefaultCsvImportService.java:321)
> at
> org.hisp.dhis.dxf2.csv.DefaultCsvImportService.fromCsv(DefaultCsvImportService.java:115)
> at
> org.hisp.dhis.importexport.action.util.ImportMetaDataCsvTask.call(ImportMetaDataCsvTask.java:87)
> at
> org.hisp.dhis.security.SecurityContextRunnable.run(SecurityContextRunnable.java:57)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> Can anybody help out with this?
>
> Thank you.
>
>
>
> Warm Regards,
>
> Ifeanyi
>
> Read DrMaestro's Blog
> www.ifeanyiokoye.com
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp