This script renumbers all patient records in a PhenoTips instance, adding a specified offset, for example for merging two PhenoTips instances.
Open /bin/edit/Sandbox/Renumber in a browser while logged in with an administrative account, paste the following snippet, and press Preview. Don't forget to adjust the $offset
variable with the correct value.