Any person subject to this code charged with an offense under this code may be ordered into arrest or confinement, as circumstances may require. When any person subject to this code is placed in arrest or confinement prior to trial, immediate steps shall be taken to inform the person of the specific wrong of which the person is accused and to try the person or to dismiss the charges and release the person, in accordance with regulations promulgated by the governor.
K.S.A. 48-2204