(a) Hospitals shall examine every involuntary patient and voluntary patient present in its facility as frequently as practicable, but not less often than every 3 months. If pursuant to such examination a person's treating psychiatrist determines that a person no longer satisfies the criteria for involuntary hospitalization pursuant to the emergency detention, provisional admission or involuntary court commitment sections of this chapter, or as established for voluntary treatment under § 5003(a) of this title, the patient shall be discharged. A person involuntarily hospitalized pursuant to the emergency detention, provisional admission or involuntary court commitment sections of this chapter may be discharged pursuant to this subsection without further order of the court.
(b) The certificate of discharge shall state the basis for the discharge. Prior to discharge, the hospital shall prepare a written continuing care plan developed in consultation with interdisciplinary staff, identified post-discharge community mental health providers and the patient, and, if the patient is a minor, with the patient's parent or legal guardian. At a minimum, community-based services staff shall be consulted prior to the discharge of patients in hospitals. The continuing care plan shall be consistent with the discharge planning requirements set out in § 5161 of this title, the Mental Health Patients' Bill of Rights. The continuing care plan shall include: