Anyone convicted under subdivision 22-22-1(1) or (5), § 22-22-7, subdivision 22-49-2(2), § 22-22-24.3, or § 26-10-1 shall be required as part of the sentence imposed by the court to pay all or part of the cost of any necessary medical, psychological, or psychiatric treatment, or foster care of the minor resulting from the act or acts for which the defendant is convicted.
SDCL 23A-28-12