The following five bodies can discharge a patient, depending on which section the patient is detained under. Some of the most common sections are included in the table below. In addition, there are some court-imposed sections from which only the court can discharge.