Finished implementing basic patient merge functionality