The Illinois Order of Detention Examination Evaluation (CODE) is an evaluation mandated by the state of Illinois for individuals who have been placed in an involuntary mental health detention. The CODE is conducted to assess whether an individual poses a risk to themselves or others; and to determine whether the individual needs mental health treatment and/or if the individual should be civilly committed. The CODE consists of two parts: a clinical evaluation by a mental health professional and a legal hearing. The clinical evaluation is conducted by a mental health professional such as a psychiatrist, psychologist, clinical social worker, or clinical nurse specialist. This evaluation includes a mental health assessment, review of records, and a psychosocial evaluation. The legal hearing is conducted by a judge or court-appointed attorney who reviews the clinical evaluation and any other relevant records. The decision of the court is then used to determine whether the individual should be released or remain in detention. The two types of Illinois Order of Detention Examination Evaluations are the Civil Commitment Evaluation and the Emergency Detention Evaluation. The Civil Commitment Evaluation is for individuals who have been placed on an involuntary mental health hold for a period of time greater than 48 hours. The Emergency Detention Evaluation is for individuals who have been placed on an involuntary mental health hold for a period of time less than 48 hours.