Contact sub contact list

Is there any way to get the list of sub-contacts for the current contact in tasks, contact summary, and targets?

For example, can we retrieve the list of CHW areas under a supervisor’s area or the list of patients within a family?

Thank you!

Currently no.

However, we are close! :sweat_smile: I think the hard part is actually already done, in that the cht-datasource API is technically already accessible from tasks/targets/contact-summary. Unfortunately, it is currently impossible to use most of the features since the tasks/targets/contact-summary code cannot make async calls.

I have already logged #9623 for adding async support to contact-summary code (and we can do the same for tasks/targets). If someone is interested in implementing #9623, I would be happy to support!

2 Likes