  in medicine, a diagnostic test is any kind of medical test performed to aid in the diagnosis or detection of disease. for example, such a test may be used to confirm that a person is free from disease, or to fully diagnose a disease, including to sub-classify it regarding severity and susceptibility to treatment. companion diagnostics have also been developed to preselect patients for specific treatments based on their own biology, where such targeted therapy may hold promise in personalized treatment of diseases such as cancer. a drug test can be a specific medical test to ascertain the presence of a certain drug in the body (for example, in drug addicts). ==overview==  most diagnostic tests are conducted on the living; however, some of these tests can also be carried out on a dead person as part of an autopsy. some of the diagnostic tests are parts of a simple physical examination which require only simple tools in the hands of a skilled practitioner, and can be performed in an office environment. some other tests require elaborate equipment used by medical technologists or the use of a sterile operating theatre environment. some tests require samples of tissue or body fluids to be sent off to a pathology lab for further analysis. some simple chemical tests, such as urine ph, can be measured directly in the doctor's office. the validity of diagnostic test results produced in each laboratory is entirely dependent on the measures employed before, during, and after each assay. consistency in the production of good results requires an overall program that includes quality assurance, quality control, and quality assessment. medical tests can be classified into three categories: * invasive * minimally invasive * non-invasive ==psychological effects==  medical tests can have value when results are abnormal by explaining to a patient the cause of their symptoms.{{better source|dat
Biostatistics Medical_diagnosis Medical_statistics Medical_tests