In medicine, the process of figuring out which disease or medical condition that a patient has, often by ruling out alternatives by examining symptoms closely, such as data from a medical laboratory.