an impaired functional outcome. WHO for ICD argues that not all people with schizophrenia have functional deficits and so these are not specific for the diagnosis. Comorbidities Many people with schizophrenia may have one or more other mental disorders, such as panic disorder, obsessive–compulsive disorder, or substance use disorder. These are separate disorders that require treatment. When comorbid with schizophrenia, substance use disorder and antisocial personality disorder both increase the risk for violence. Comorbid substance use disorder also increases risk for suicide. Sleep disorders often co-occur with schizophrenia, and may be an early sign of relapse. Sleep disorders are linked with positive symptoms such as disorganized thinking and can adversely affect cortical plasticity and cognition. The consolidation of memories is disrupted in sleep disorders. They are associated with severity of illness, a poor prognosis, and poor quality of life. Sleep onset and maintenance insomnia is a common symptom, regardless of whether treatment has been received or not. Genetic variations have been found associated with these conditions involving the circadian rhythm, dopamine and histamine metabolism, and signal transduction. Differential diagnosis To make a diagnosis of schizophrenia other possible causes of psychosis need to be excluded. Psychotic symptoms lasting less than a month may be diagnosed as brief psychotic disorder, or as schizophreniform disorder. Psychosis is noted in Other specified schizophrenia spectrum and other psychotic disorders as a DSM-5 category. Schizoaffective disorder is diagnosed if symptoms of mood disorder are substantially present alongside psychotic symptoms. Psychosis that results from a general medical condition or substance is termed secondary psychosis. Psychotic symptoms may be present in several other conditions, including bipolar disorder, borderline personality disorder, substance intoxication, substance-induced psychosis, and a number of drug withdrawal syndromes. Non-bizarre delusions are also present in delusional disorder, and social withdrawal in social anxiety disorder, avoidant personality disorder and schizotypal personality disorder. Schizotypal personality disorder has symptoms that are similar but less severe than those of schizophrenia. Schizophrenia occurs along with obsessive–compulsive disorder (OCD) considerably more often than could be explained by chance, although it can be difficult to distinguish obsessions that occur in OCD from the delusions of schizophrenia. There can be considerable overlap with the symptoms of post-traumatic stress disorder. A more general medical and neurological examination may be needed to rule out medical illnesses which may rarely produce psychotic schizophrenia-like symptoms, such as metabolic disturbance, systemic infection, syphilis, HIV-associated neurocognitive disorder, epilepsy, limbic encephalitis,