Subject to court approval, the defendant may be examined at an approved community health center by a psychiatrist of his own choosing at his own expense or, if indigent, at county expense. Examination of the defendant shall be on the issue of his insanity when the offense occurred. Notice of the independent examination shall be given to the prosecuting attorney at least five days before the examination date. A psychiatrist who examines an indigent defendant may receive a reasonable fee.
SDCL 23A-10-7