All students in kindergarten through grade twelve (K-12) of the public schools of this state shall be placed in an educational program that includes the minimum core curriculum established under § 6-61-217 unless a medical doctor and the parent or custodian of the student certify that a medical condition exists that impairs the student's cognitive functioning and that the student should not pursue the minimum core curriculum.