If a defendant contests a plan proposed by the department under § 52-5-501, § 52-5-502, or § 52-5-503, then the court must hold a hearing within seven (7) days of receipt of the request to determine whether the plan is programmatically appropriate and legally permissible. The court shall either approve the plan or approve the plan as modified by the department to correct deficiencies found by the court.
T.C.A. § 52-5-505