Capture application - Feature parity Tracker Capture - Show all enrollments for a TEI

Hi @gregory

Your question is similar to: Relationships between two programs with same entity - #5 by Gassim

While you will not need to install a capture plugin in the future; however, at this stage, that’s one of the suggestions. You don’t need to ‘make’ the plugin because it has already been developed so with some configuration, you can get it up and running. See similar topic post linked above.

There’s another way to find all the enrollments and it’s using the API endpoint. For example, yourInstanceURL/api/tracker/trackedEntities/[insertEnrollmentIdHere]?fields=programOwners

The enrollment id can be found when you access the TEI dashboard. https://play.im.dhis2.org/stable-2-41-3/dhis-web-capture/index.html#/enrollment?enrollmentId=KpknKHptul0&orgUnitId=DiszpKrYNg8&programId=IpHINAT79UW&teiId=vOxUH373fy5

You can quickly find it using the console (F12) and then insert the following command:
window.location.href.match(/teiId=([^&]*)/)[1]

Here’s an example: https://play.im.dhis2.org/stable-2-41-3/api/tracker/trackedEntities/coxwIkMqNBB?fields=programOwners