DHIS2 Tracked entity instances export does not export enrollment data

Hi,

I have created a Tracking Program in DHIS2 to save the openmrs visit data. My tracking entity is Patient & the program defined in “Teleconsultation Program”. I have defined just 1 program stage to store openmrs visit information. After creating a test record in the tracker program I tries to extract the data using Tracked entity instances export. However, it does not extract enrollment & event related ( and associated data elements) data.

Can someone help me understand why enrollment & program stage data is not getting extracted?

Attached is the extracted json file:

{“trackedEntityInstances”:[{“created”:“2022-06-16T14:47:02.705”,“orgUnit”:“EIxZn87WiSn”,“createdAtClient”:“2022-06-16T14:47:02.705”,“trackedEntityInstance”:“TAFgPHPdXQ0”,“lastUpdated”:“2022-06-16T16:12:48.272”,“trackedEntityType”:“pgdGhp51w3F”,“lastUpdatedAtClient”:“2022-06-16T14:47:02.705”,“potentialDuplicate”:false,“inactive”:false,“deleted”:false,“featureType”:“NONE”,“programOwners”:[],“enrollments”:[],“relationships”:[],“attributes”:[{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“Patient Name”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“TEXT”,“attribute”:“gyfVzSa5709”,“value”:“Load-TKZJQG Testing”},{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“Patient Age”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“INTEGER”,“attribute”:“P5NC3pK8izm”,“value”:“32”},{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“Gender”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“TEXT”,“attribute”:“aCXV9PdM08n”,“value”:“M”},{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“Telephone”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“TEXT”,“attribute”:“QAN6eIlMJc3”,“value”:“1234567890”},{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“OpenMRS-ID”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“TEXT”,“attribute”:“JxXKIYjqaBJ”,“value”:“11ULUV”},{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“State”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“TEXT”,“attribute”:“pxdRM04oIxl”,“value”:“Gujarat”},{“lastUpdated”:“2022-06-16T00:00:00.000”,“storedBy”:“admin”,“displayName”:“District”,“created”:“2022-06-16T00:00:00.000”,“valueType”:“TEXT”,“attribute”:“mwmiAm8vzFz”,“value”:“Telemedicine Clinic1”}]}]}

Hi

If you want specific details, I recommend that you use the API. Here’s an example from play https://play.dhis2.org/2.38.0/api/33/trackedEntityInstances?program=IpHINAT79UW&ou=r5WWF9WDzoa&fields=*&pageSize=1

You can read more about this in the docs: Tracker - DHIS2 Documentation

Thanks! Please feel free to post back to the community. :+1: