The study of the effects of drugs on the nervous system, including both therapeutic and adverse effects.