# How to create a hierarchy of contact from parent to child?

**URL:** <https://forum.communityhealthtoolkit.org/t/how-to-create-a-hierarchy-of-contact-from-parent-to-child/2844>\
**Category:** Development\
**Tags:** tasks\
**Created:** [June 19, 2023, 10:21am UTC](https://forum.communityhealthtoolkit.org/t/how-to-create-a-hierarchy-of-contact-from-parent-to-child/2844 "2023-06-19T10:21:18Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![michael](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/michael/32/319_2.png) [@michael](https://forum.communityhealthtoolkit.org/u/michael)\
**Post date:** [September 29, 2023, 1:08am UTC](https://forum.communityhealthtoolkit.org/t/how-to-create-a-hierarchy-of-contact-from-parent-to-child/2844/14 "2023-09-29T01:08:58Z")

</div>

Thanks @Ben_Kiarie … so your `moh` contact type doesn’t have a parent specified and itself is not a parent to any other contact types so I think it’s kind of in a parallel universe 🪐 _(see diagram below)_.

Even if you were to just update `district_hospital` to have `moh` as a `parent`, existing data documents [would need to be updated](https://docs.communityhealthtoolkit.org/apps/reference/app-settings/hierarchy/#migration) because all contacts and reports have the ID’s of ancestors in their hierarchy.

Here’s what your hierarchy currently represents but I’m not really sure if the [CHT supports multiple distinct hierarchies](https://forum.communityhealthtoolkit.org/t/does-the-cht-support-multiple-hierarchies-on-same-instance/3082). _(I imagine this is why you aren’t seeing the “Uganda MOH” record you created)_

 ![Untitled drawing](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/9/918270c2471da773ab19f2ae4929a23317757634.png)

---

_[View the full topic](https://forum.communityhealthtoolkit.org/t/how-to-create-a-hierarchy-of-contact-from-parent-to-child/2844)._
