Updating patient creation code