# Contact-summary on village level

**URL:** <https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546>\
**Category:** Development\
**Tags:** ui-ux\
**Created:** [January 8, 2025, 6:48pm UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546 "2025-01-08T18:48:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kev](https://communityhealthtoolkit.b-cdn.net/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kev](https://forum.communityhealthtoolkit.org/u/Kev)\
**Post date:** [January 8, 2025, 6:48pm UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546/1 "2025-01-08T18:48:28Z")

</div>

Hi everyone,

I’m working on customizing fields of the `contact-summary.templated.js` and have encountered a limitation. When working at the village level (`appliesToType: 'village'`), I don’t have access to hierarchical data for levels below the village, and the `reports` variable is empty.

This makes it challenging to display details about patients or other sub-level data at the village level.

Does anyone know of a way to access this data or have suggestions for handling this limitation?

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 8, 2025, 7:34pm UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546/2 "2025-01-08T19:34:45Z")

</div>

Hi @Kev

I’m wondering what hierarchical data you are expecting (below the village) and which reports.  
The contact-summary function receives: the contact you are summarizing, its lineage (parents, and grandparents), reports submitted against this contact and target documents (for certain places and person contacts).

Can you please clarify which data you are expecting?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Kev](https://communityhealthtoolkit.b-cdn.net/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kev](https://forum.communityhealthtoolkit.org/u/Kev)\
**Post date:** [January 9, 2025, 8:43am UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546/3 "2025-01-09T08:43:47Z")

</div>

Hi @diana  
The hierarchy we’re working with is structured as follows:  
**District → Hospital → Village → Household → Patients**

Currently, when switching profiles at the **district** , **hospital** , or **village** levels, the `reports` are empty. However, at the lower levels (household and patient), the `reports` are accessible and display as expected.

I’m looking for a way to access the `reports` of patients from higher-level “Places” like villages. For instance, when viewing a **village profile** , the `tasks` and `reports` sections are empty

 ![grafik](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/c/c6f6af632a0f8c2ea6e7f668f96f37d3b7373cf1.png)

In contrast, when viewing a **household profile** , I can see the `tasks` and `reports` for all the patients within that household.

Is there any way to access patient `reports` at higher levels (e.g., village profiles)? Any guidance would be greatly appreciated!

Thank you!

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 9, 2025, 2:30pm UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546/4 "2025-01-09T14:30:18Z")

</div>

Hi @kev

This is a hardcoded limitation of the CHT. We only query and collect tasks and reports for leaf type places.  
A leaf type place is a place type that doesn’t have any other possible place child. In your hierarchy, Household is a leaf place type, but Village is not, because it has Households (other places) as children.

---

<div class="post-metadata">

**Author:** ![Kev](https://communityhealthtoolkit.b-cdn.net/letter_avatar_proxy/v4/letter/k/e9bcb4/32.png) [@Kev](https://forum.communityhealthtoolkit.org/u/Kev)\
**Post date:** [January 10, 2025, 9:26am UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546/5 "2025-01-10T09:26:20Z")

</div>

Thank you for the clarification. Just to confirm, is it correct that creating something like this is not possible within our hierarchy at the village level?

 ![grafik](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/a/a4c6b6cfcb86b574392c5e1865e9bd057162fcfc.png)

---

<div class="post-metadata">

**Author:** ![diana](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/diana/32/2049_2.png) [@diana](https://forum.communityhealthtoolkit.org/u/diana)\
**Post date:** [January 10, 2025, 11:33am UTC](https://forum.communityhealthtoolkit.org/t/contact-summary-on-village-level/4546/6 "2025-01-10T11:33:56Z")

</div>

Hi @kev

I do not know how you get this data and what it represents exactly.  
I would have a clearer idea and could give you an answer only if you shared your contact summary function.
