A doctor (usually a psychiatrist) considers symptoms (usually mood, sleep, attention, energy) and uses them to make a diagnosis. He then prescibes medication meant to replace the deficient neuro-transmitter and then assesses the patient over time to see if it works.