# Move a patient from one facility to another

**URL:** <https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919>\
**Category:** Development\
**Created:** [August 28, 2024, 12:33pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919 "2024-08-28T12:33:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cliff](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/cliff/32/1638_2.png) [@cliff](https://forum.communityhealthtoolkit.org/u/cliff)\
**Post date:** [August 28, 2024, 12:33pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/1 "2024-08-28T12:33:32Z")

</div>

Hello community

How can i move a patient from one facility to another?, if the contact edit form does not have the option Would you like to move them to another place?\* ie

 ![Screenshot 2024-08-28 at 3.31.54 PM](https://communityhealthtoolkit.b-cdn.net/uploads/default/original/2X/6/645c320c8257c0403eabc4cca426dfdb04a4851c.jpeg)

@jkuester

---

<div class="post-metadata">

**Author:** ![jkuester](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/jkuester/32/806_2.png) [@jkuester](https://forum.communityhealthtoolkit.org/u/jkuester)\
**Post date:** [August 28, 2024, 1:25pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/2 "2024-08-28T13:25:10Z")

</div>

Due to the way that contacts/reports contain denormalized data about their parent hierarchy, it is recommended to use the [cht-conf move-contacts](https://docs.communityhealthtoolkit.org/apps/guides/updates/moving-contacts/) action to move contacts around. The downside of this, of course, is that it is an admin-level action and cannot be triggered from within the app itself. There is not really any other option if you are moving a contact in such a way that it will change context from one user to another (e.g. moving a household from one CHW Area to another).

A limited move functionality for moving a `person` contact from one place to another (as long as the user has access to both places) is possible to implement in the person edit form by allowing the user to update the `parent` value (as seen in your screenshot).

---

<div class="post-metadata">

**Author:** ![cliff](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/cliff/32/1638_2.png) [@cliff](https://forum.communityhealthtoolkit.org/u/cliff)\
**Post date:** [August 28, 2024, 6:17pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/3 "2024-08-28T18:17:57Z")

</div>

thanks @jkuester  
Once the contact has been cwitch to a new facility with [cht-conf move-contacts](https://docs.communityhealthtoolkit.org/apps/guides/updates/moving-contacts/) action,

1. are they given a new parent hierarchy ?
2. in this [example](https://docs.communityhealthtoolkit.org/apps/guides/updates/moving-contacts/#examples) is the `parent_id` the new `facility_id` ?
3. Are users supposed to clear the cache in the old facility

---

<div class="post-metadata">

**Author:** ![mrjones](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/mrjones/32/681_2.png) [@mrjones](https://forum.communityhealthtoolkit.org/u/mrjones)\
**Post date:** [August 28, 2024, 6:56pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/4 "2024-08-28T18:56:48Z")

</div>

@cliff - another option is to run the [CHT User Management Tool](https://github.com/medic/cht-user-management/). This currently gives you a web GUI to prepare to move a contact and recently [added a web worker](https://github.com/medic/cht-user-management/issues/12) running `cht-conf` will complete the move for you automatically.

---

<div class="post-metadata">

**Author:** ![cliff](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/cliff/32/1638_2.png) [@cliff](https://forum.communityhealthtoolkit.org/u/cliff)\
**Post date:** [August 28, 2024, 7:52pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/5 "2024-08-28T19:52:08Z")

</div>

> [@mrjones](#):
>
> another option is to run the [CHT User Management Tool](https://github.com/medic/cht-user-management/). This currently gives you a web GUI to prepare to move a contact and recently [added a web worker](https://github.com/medic/cht-user-management/issues/12) running `cht-conf` will complete the move for you automatically.

thanks @mrjones is this for 3.x to ?

---

<div class="post-metadata">

**Author:** ![mrjones](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/mrjones/32/681_2.png) [@mrjones](https://forum.communityhealthtoolkit.org/u/mrjones)\
**Post date:** [August 28, 2024, 7:56pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/6 "2024-08-28T19:56:01Z")

</div>

> [@cliff](#):
>
> is this for 3.x to ?

CHT User Management Tool is for CHT Core `4.x` only and does not support `3.x`.

---

<div class="post-metadata">

**Author:** ![cliff](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/cliff/32/1638_2.png) [@cliff](https://forum.communityhealthtoolkit.org/u/cliff)\
**Post date:** [August 29, 2024, 7:29am UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/7 "2024-08-29T07:29:15Z")

</div>

> [@mrjones](#):
>
> CHT User Management Tool is for CHT Core `4.x` only and does not support `3.x`.

aaah i see , am using` 3.x` , going to upgrade

Thanks @mrjones

---

<div class="post-metadata">

**Author:** ![mrjones](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/mrjones/32/681_2.png) [@mrjones](https://forum.communityhealthtoolkit.org/u/mrjones)\
**Post date:** [August 29, 2024, 1:37pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/8 "2024-08-29T13:37:55Z")

</div>

We love it when we inspire a deployment to upgrade to get a new feature!

That said, please be sure to prototype using the User Management Tool on a dev instance. It is a very new product that, as far as we know, has not been deployed outside of the 4 Medic hosted instances it’s currently used in.

While we’d absolutely love it if you used it and welcome an external use case, it will likely not be ready to go in something like a quick 5 minutes - a bit more work will be involved! Please keep us posted if you have any questions on this - a new user of a tool always has great eyes for seeing where our docs are lacking or where some code could be improved.

---

<div class="post-metadata">

**Author:** ![cliff](https://communityhealthtoolkit.b-cdn.net/user_avatar/forum.communityhealthtoolkit.org/cliff/32/1638_2.png) [@cliff](https://forum.communityhealthtoolkit.org/u/cliff)\
**Post date:** [August 29, 2024, 5:32pm UTC](https://forum.communityhealthtoolkit.org/t/move-a-patient-from-one-facility-to-another/3919/9 "2024-08-29T17:32:38Z")

</div>

thanks @mrjones for this feedback , this is a tool we definitely will embrace once we upgrade
