R.I. Gen. Laws § 40.1-5.3-6. Examination of persons awaiting trial or convicted and imprisoned for crime.