What is the term for any major mental disorder characterized by derangement of the personality and loss of contact with reality?

a. anxiety attack
b. Alzheimer's disease
c. neurosis
d. psychosis