elective surgery legal risks