← Back to team overview

dhis2-users team mailing list archive

Re: Tracker DE data export

 

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 <georgi@xxxxxxxxxxxxxxxxxxx>:
> 
> 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.net@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users-bounces+georgi=logicaloutcomes.net@xxxxxxxxxxxxxxxxxxx>]On Behalf Of Thai Nguyen Duy
> Sent: Thursday, June 15, 2017 11:16 AM
> To: Trần Quý Phi <phi@xxxxxxxxxxxxx <mailto:phi@xxxxxxxxxxxxx>>
> Cc: dhis2-users@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
> 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 <phi@xxxxxxxxxxxxx <mailto:phi@xxxxxxxxxxxxx>> 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 <https://launchpad.net/~dhis2-users>
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>
> 
> 
>  
> -- 
> Thai Nguyen Duy - Hisp Vietnam
> Phone: (+084) 909-633-400
> <image001.jpg>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx <mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~dhis2-users <https://launchpad.net/~dhis2-users>
> More help   : https://help.launchpad.net/ListHelp <https://help.launchpad.net/ListHelp>


References