The medical evaluation of a patient before surgery to identify potential risks and optimize their health status.