The branch of medicine dealing with the study and treatment of the nervous system, including the brain and spinal cord.