detects if patient already exists and edits if the user wants to