This may be obvious, but I can’t find the answer even in the transition kit from Tracker Capture to Capture.
We have TEIs enrolled in multiple programs, and in the former Tracker Capture program, we had a view of all active enrollments in the entreollment widget as below:
In the new capture application, I can’t find a way to display the other enrollments.
I know I can select the other program in the top left scroll down menu, but this is not practical to have a quick overview of the programs where the TEI is enrolled.
I most likely miss something obvious here, but is there a way to quickly add this “enrollment in other programs information”?
I would rather avoir to make a capture plugin to do so.
Thanks in advance, and sorry again if this is a dummy question.
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]
My use case is to provide a view of the enrollments to our end-users so the API way is not really adapted in my case (although very efficient to manipulate data from the backend).
I think the configuration made by your colleague in the other post is exactly what i need.