If the defendant is released under § 33-6-705 or this part before the § 33-6-422 hearing, the chief officer shall notify the court that ordered the defendant's emergency diagnosis, evaluation and treatment. If the defendant is transferred to another facility before the § 33-6-422 hearing, the court shall transfer the hearing to the general sessions court of the county to which the defendant is transferred, and the hearing shall be held within five (5) days of the defendant's original detention under this part.
T.C.A. § 33-6-417