Obtaining a diagnosis involves determining the disease or condition causing the symptoms you are experiencing. A diagnosis can be made from something you tell your doctor, or a physical examination, but may also require a procedure like a test or biopsy.
There are some drugs that are specifically used for diagnosis, for example, drops that dilate your pupil to let your eye doctor examine the inside of your eye, or injectable medications to diagnose heart conditions.