The facility administrator or the person responsible for outpatient care who discharges a patient under Section 574.085 or 574.086 shall prepare a discharge certificate and file it with the court that entered the order requiring mental health services.
Tex. Health and Safety Code § 574.087