correct patient merge data scripts