§ 491.230. Power to issue writ of habeas corpus--persons detained in correctional facility shall not attend civil proceeding--exception--conditions
491.230. Power to issue writ of habeas corpus--persons detained in correctional facility shall not attend civil proceeding--exception--conditions
1. Courts of record, and any judge or justice thereof, shall have power, upon the application of any party to a criminal suit or proceeding, pending in any court of record, to issue a writ of habeas corpus for the purpose of bringing before such court any person who may be detained in jail or prison, within the state, for any cause, to be examined as a witness in such suit or proceeding, on behalf of the applicant.
2. No person detained in a correctional facility of the department of corrections shall appear and attend or be caused to appear and attend any civil proceeding, regardless of whether he is a party, except when:
(1) The offender is a respondent in a chapter 211 proceeding to terminate parental rights. In such cases the trial judge may only issue a writ of habeas corpus ad testificandum to an offender after the department of corrections has been notified and allowed fifteen days to file a written objection and be granted an opportunity to appear and make an oral presentation in opposition to the offender's appearance on the basis of security considerations and the best interests of the child or children; or
(2) The offender is a party to the civil proceeding and the court finds that the offender will be substantially and irreparably prejudiced by his failure to attend a trial on the merits in the civil proceeding. In such cases the trial judge may issue a writ of habeas corpus ad testificandum to an offender only after the department of corrections has been notified and allowed fifteen days to file written objections and been granted an opportunity to appear and make an oral presentation in opposition to the offender's appearance on the basis of security considerations.