Psychosis has many different causes. These include mental illness, such as schizophrenia or bipolar disorder, sleep deprivation, some medical conditions, certain medications, and drugs such as alcohol or cannabis. One type, known as postpartum psychosis, can occur after giving birth. The neurotransmitter dopamine is believed to play a role. Acute psychosis is considered primary if it results from a psychiatric condition and secondary if it is caused by a medical condition. The diagnosis of a mental health condition requires excluding other potential causes. Testing may be done to check for central nervous system diseases, toxins, or other health problems as a cause.