(a)(1) Not later than 12 hours after the sheriff or municipal jailer having custody of a defendant receives credible information that may establish reasonable cause to believe that the defendant has a mental illness or is a person with an intellectual disability, the sheriff or municipal jailer shall provide written or electronic notice to the magistrate. The notice must include any information related to the sheriff's or municipal jailer's determination, such as information regarding the defendant's behavior immediately before, during, and after the defendant's arrest and, if applicable, the results of any previous assessment of the defendant. On a determination that there is reasonable cause to believe that the defendant has a mental illness or is a person with an intellectual disability, the magistrate, except as provided by Subdivision (2), shall order the service provider that contracts with the jail to provide mental health or intellectual and developmental disability services, the local mental health authority, the local intellectual and developmental disability authority, or another qualified mental health or intellectual and developmental disability expert to:
(A)interview the defendant if the defendant has not previously been interviewed by a qualified mental health or intellectual and developmental disability expert on or after the date the defendant was arrested for the offense for which the defendant is in custody and otherwise collect information regarding whether the defendant has a mental illness as defined by Section 571.003, Health and Safety Code, or is a person with an intellectual disability as defined by Section 591.003, Health and Safety Code, including, if applicable, information obtained from any previous assessment of the defendant and information regarding any previously recommended treatment or service; and
(B)provide to the magistrate a written report of an interview described by Paragraph (A) and the other information collected under that paragraph on the form approved by the Texas Correctional Office on Offenders with Medical or Mental Impairments under Section 614.0032(c), Health and Safety Code.
(2)The magistrate is not required to order the interview and collection of other information under Subdivision (1) if the defendant:
(A)is no longer in custody;
(B)in the year preceding the defendant's applicable date of arrest has been determined to have a mental illness or to be a person with an intellectual disability by the service provider that contracts with the jail to provide mental health or intellectual and developmental disability services, the local mental health authority, the local intellectual and developmental disability authority, or another mental health or intellectual and developmental disability expert described by Subdivision (1); or
…