When no application is made for a hearing before the court or a jury trial by or on behalf of the alleged narcotic addict, the court shall, if satisfied that the person is a narcotic addict, immediately issue an order certifying the person to the care and custody of the department for the indefinite period as provided in § 21-28.2-8, provided that facilities are available.
R.I. Gen. Laws § 21-28.2-6