Except as provided in section 3309‑A, subsection 4, the court may not order a juvenile to undergo a diagnostic evaluation at a detention facility unless the juvenile meets the requirements of section 3203‑A, subsection 4, paragraphs C and D, the facility is one in which the juvenile may otherwise be detained and the diagnostic evaluation is unable to take place outside the facility on either a residential or nonresidential basis.