487.053. Timing of order
487.053 (1) The court may make an order under section 487.051 authorizing the taking of samples of bodily substances when it imposes a sentence on a person, finds the person not criminally responsible on account of mental disorder or directs that they be discharged under section 730.
(2) If the court does not consider the matter at that time, it
(a) shall, within 90 days after the day on which it imposes the sentence, makes the finding or directs that the person be discharged, set a date for a hearing to do so;
(b) retains jurisdiction over the matter; and
(c) may require the person to appear by closed-circuit television or any other means that allows the court and the person to engage in simultaneous visual and oral communication, as long as the person is given the opportunity to communicate privately with counsel if they are represented by counsel.