23A-10-4.(Rule 12.2(c)) Order to defendant to submit to psychiatric examination--Court appointment of experts--Statements by accused privileged.
In an appropriate case a court shall, upon motion of a prosecuting attorney, order the defendant to submit to a psychiatric examination by a psychiatrist designated for this purpose by the prosecuting attorney in an order of the court. The court may also appoint medical experts and require that the defendant submit himself for examination by such court-appointed medical experts. No statement made by an accused in the course of any examination provided for by this section, whether the examination was with or without the consent of the accused, shall be admitted in evidence against him on the issue of guilt in any criminal proceeding except for the purpose of impeaching the defendant.
Source: SL 1953, ch 201, §1; SDC Supp 1960, §34.20A01; SDCL, §23-37-2; SL 1978, ch 178, §126; SL 1979, ch 159, §9.