Based on a patient's symptoms, a diagnostic test is a medical technique that helps diagnose a disease or condition.