(a) A child alleged to have engaged in delinquent conduct or conduct indicating a need for supervision under Title 3, Family Code, is not considered under this subtitle to be a person charged with a criminal offense.
(b) The provisions in this subtitle relating to the discharge, furlough, or transfer of a patient do not apply to a person charged with a criminal offense who is admitted to a mental health facility under Subchapter D or E, Chapter 46B, Code of Criminal Procedure.