A medical system automatically identifies a user based on matching a partial facial image of the user with a database of authorized users. The medical system automatically configures based on the user identification and received patient data. The medical system further automatically identifies a patient based on matching a facial image of the patient with an image of the patient to confirm the correct patient is in the operating room. The medical system still further provides for gaze detection and gesture control by a user such that the user in the sterile environment can directly control devices outside the sterile environment.