Psychiatry is the medical specialty devoted to the study and treatment of mental disorders. Psychiatric assessment typically starts with a mental status examination and the compilation of a case history. Psychological tests and physical examinations may be conducted, including on occasion the use of neuroimaging or other neurophysiological techniques. Psychiatric treatment applies a variety of modalities, including medication, psychotherapy and a wide range of other techniques such as electro convulsive therapy or transcranial magnetic stimulation. Treatment may be as an inpatient or outpatient, according to severity of function impairment/the disorder in question.