Is there a way to transfer enrollment and events in one step?

Hi DHIS2 Community,

I was wondering if there’s a way to transfer an enrollment and all its events to another org unit in one step.

At the moment, I only see the option to change the enrollment org unit and then update each event separately, which can be a bit time-consuming.

Is there already a feature or workaround for doing this more easily?

Thanks!

Yes. Get everything from the API point

Your_dhis_server/api/trackerEntityInstances/fields=* then post it into new server. If the destination server has the same metadata( OUs, users etc) then shouldn’t be any troubles.

Also if you need to change the destination OU then don’t forget to do ownership transfer.

In your case get separately all TEIs for particular OU and change its OU_iud then post it

Good luck

3 Likes

Thank you for the information.

1 Like