Displaying TEI and Custom Attributes on DHIS2 Map

Hello DHIS2 community,

I have been collecting map coordinates using a custom field for tracked entity instances (TEI). However, I haven’t been able to find a way to display the TEI using these custom field coordinates on the DHIS2 map.

Add new tracked entity layer not found the “No data found”

If its a feature of TEI, is there any easy way to transfer the custom field coordinates data to the TEI Feature co-ordinate field.

Hi @hio.amakomaya

Welcome to the community…

What’s the custom field TEA data type?

Did you try to run the analytics tables export in the Data Administration app first?

Dear @Gassim sir,

We have costume value type = Coordinate
following TEA address is my co-ordinate field

Analytics tables are exported.

In map while we add layer, there is no options

and Person: No data found

How to configuration this attributes on map ??

Hi @hio.amakomaya,

At the moment it is only possible to display data elements from the event (not attributes from the tracked entity) and they have to be marked to be “displayed in reports”.

I hope that’s helpful.
Bruno

2 Likes

Hi @Bruno,
Thank you for the update, and I’m glad to inform you that the solution worked for displaying the data element.

Hi @Gassim , just to confirm, does this mean that there are no current plans to extend the functionality to display tracked entity attributes, or is it something that might be considered in future updates?

1 Like

Hi @hio.amakomaya & @rcpoudel,
There will be more options to display TE attributes soon: Jira (on v40 and up)
It will be controlled by the “Display in list” setting (both for TET attr. and Program TE attr. if a program is selected).
You can watch the JIRA ticket to know when it gets released.
Bruno

1 Like

Thanks for your question @rcpoudel ! Please check @bruno’s response. :slight_smile:

FYI, with maps-app v100.7.3, displaying TE attributes in a TE layer is now possible if they have been marked to be “displayed in list”.

Hopefully it works well, let me know otherwise!
Bruno

2 Likes

Thanks for the update,

On Tracked Entity layer
I tried checking for custom Address location attribute in the Tracked Entity, but I’m not seeing them.

I’m prioritizing the setup for custom Tracked Entity attribute (TEA) locations within the Event layer for now.

I believe a couple of adjustments are further needed to fix
In following event layer screenshot:
Issue : The Coordinate field defaults to “Event Location” when an event is selected under “Address Area” and the layer is updated. However, upon reopening the edit layer, the Coordinate field again defaults to its original setting.


Suggestion:

  1. Event Date Display Format: Since no specific datetime is used in the data, rename this field to Event Date and remove the default “00:00” time.
  2. Event Location: For my case, this should be Address Area. As for Organization or Location Co-ordinate display, consider letting users decide whether to display it or not.

1 Like

@rcpoudel thanks a lot for your rapid feedback!

  1. In TE layer: Could you share a little more details about your configuration of the custom Address location attribute and what you are exactly? I am not 100% I am following properly :sweat_smile:
  2. About the “coordinate field” reset bug, it has been reported here [DHIS2-17710] - Jira, I will bump it a little higher in the priority list.

Also thanks for the recommendations!

  • We are having a look at date-time format presentation, I am adding your comment to our discussion.
  • The location should already have the name from the coordinate field:
    If this is not working for you, please share more details about your configuration.
  • Thanks for the suggestion to let user having the option to display the coordinates or not. I think it makes sense. Let’s see what we can do about this.
1 Like

@Bruno Thanks again for the support!

  1. I checked the Jira bug report and confirmed that it’s the same issue I previously reported as the “Coordinate field bug defaults to its original setting”

  2. The naming looks perfect in the event program, but you’ll notice a difference when reviewing the tracker program in this area.

Please check the tracker program in the demo instance, specifically under the TB program → TB visit and Residence Location

@rcpoudel On: 2. I had a quick look at the “Residence location” program TE attribute and the value seemed empty… One way or another, something unexpected is happening, so thanks a lot for pointing it out! I don’t have more time to troubleshoot now, but I will comeback to it and let you know.