(a) If the head of the facility, the jail-based competency restoration program provider, or the outpatient competency restoration program provider believes that the defendant is a person with mental illness and meets the criteria for court-ordered mental health services under Subtitle C, Title 7, Health and Safety Code, the head of the facility or the program provider shall have submitted to the court a certificate of medical examination for mental illness.
(b) If the head of the facility, the jail-based competency restoration program provider, or the outpatient competency restoration program provider believes that the defendant is a person with an intellectual disability, the head of the facility or the program provider shall have submitted to the court an affidavit stating the conclusions reached as a result of the examination.