Relationship of enrollments to other metadata in API

Hi there,

I thought I’d check in here with the DHIS2 devs first before raising this as a bug in JIRA.

It seems like when querying the API for trackedEntityInstances, the ‘enrollments’ field is always empty, even if that TEI might have enrollments.

i.e. When asking for the following TEI, enrollments is []
https://play.dhis2.org/2.29/api/trackedEntityInstances/d6mEi2pSJlZ

But an enrollment for this TEI clearly exists here:
https://play.dhis2.org/2.29/api/enrollments/gopBaFzOdkt

This isn’t a rare case, it happens for all TEIs:
https://play.dhis2.org/2.29/api/trackedEntityInstances?ou=DiszpKrYNg8&paging=false

It seems to be present in all versions as well, hence my reason for asking if this is expected somehow.

Thanks

1 Like

As I didn’t get a response from any dev saying this was a known issue I went ahead and created it as a JIRA issue to investigate further: https://jira.dhis2.org/browse/DHIS2-7111

1 Like