We have a DHIS 2 instance where the org unit hierarchy was initially set up incorrectly for a couple districts. The districts were placed under an incorrect parent, and now we want to move them to the correct parent.
What would be the best way to do this, assuming there is associated data? Can we simply change the parent ID for the org unit in the database? Or are there other dependencies that would break because of this?
I was previously unaware that there was the “Hierarchy Operations” option available under the “Organisation Unit” app, so was able to do this easily via the UI.
However for future reference, if doing this via the db, is it as simple as changing the parent ID for the org unit, or are there other dependencies that would break because of this?
Thanks,
Lorill
···
On Mon, May 2, 2016 at 10:57 AM, Lorill Crees lcrees@2paths.com wrote:
Hi,
We have a DHIS 2 instance where the org unit hierarchy was initially set up incorrectly for a couple districts. The districts were placed under an incorrect parent, and now we want to move them to the correct parent.
What would be the best way to do this, assuming there is associated data? Can we simply change the parent ID for the org unit in the database? Or are there other dependencies that would break because of this?
Doing this on a running prod system is not recommended, however if so you need to i) clear the application cache (under data admin) and ii) Update organisation unit paths under maintenance.
regards,
Lars
···
On Thu, May 12, 2016 at 11:14 PM, Lorill Crees lcrees@2paths.com wrote:
Hi,
I was previously unaware that there was the “Hierarchy Operations” option available under the “Organisation Unit” app, so was able to do this easily via the UI.
However for future reference, if doing this via the db, is it as simple as changing the parent ID for the org unit, or are there other dependencies that would break because of this?
On Mon, May 2, 2016 at 10:57 AM, Lorill Crees lcrees@2paths.com wrote:
Hi,
We have a DHIS 2 instance where the org unit hierarchy was initially set up incorrectly for a couple districts. The districts were placed under an incorrect parent, and now we want to move them to the correct parent.
What would be the best way to do this, assuming there is associated data? Can we simply change the parent ID for the org unit in the database? Or are there other dependencies that would break because of this?
On Thu, May 12, 2016 at 2:29 PM, Lars Helge Øverland lars@dhis2.org wrote:
Hi Lorill,
sure - you can use the hierarchy operations.
Changing the parentid will work.
Doing this on a running prod system is not recommended, however if so you need to i) clear the application cache (under data admin) and ii) Update organisation unit paths under maintenance.
regards,
Lars
On Thu, May 12, 2016 at 11:14 PM, Lorill Crees lcrees@2paths.com wrote:
Hi,
I was previously unaware that there was the “Hierarchy Operations” option available under the “Organisation Unit” app, so was able to do this easily via the UI.
However for future reference, if doing this via the db, is it as simple as changing the parent ID for the org unit, or are there other dependencies that would break because of this?
On Mon, May 2, 2016 at 10:57 AM, Lorill Crees lcrees@2paths.com wrote:
Hi,
We have a DHIS 2 instance where the org unit hierarchy was initially set up incorrectly for a couple districts. The districts were placed under an incorrect parent, and now we want to move them to the correct parent.
What would be the best way to do this, assuming there is associated data? Can we simply change the parent ID for the org unit in the database? Or are there other dependencies that would break because of this?