For the sole purposes of consideration of the sentence of a defendant for subsequent offenses or the determination of whether the defendant is an habitual offender under chapter 22-7, the fact of suspension of imposition of sentence under § 23A-27-13, whether or not discharge and dismissal have occurred, shall be considered a prior conviction.
SDCL 23A-27-15