(a) The following classes of children between six (6) and seventeen (17) years of age, both inclusive, shall be temporarily excused from complying with this part, the local board of education to be sole judge in all such cases involving children who are enrolled in a public school and, as to children enrolled in a nonpublic school, as defined by § 49-6-3001(c)(3), the director of schools of the school to be the sole judge in all such cases:
(1) Children mentally or physically incapacitated to perform school duties, such disability to be attested by a duly licensed physician in all cases;
(2) Children who have completed high school and hold a high school diploma;
(3) Children temporarily excused from attendance in school under rules and regulations promulgated by the state board of education, which rules and regulations shall not be in conflict with § 50-5-103 or any other law governing child labor in this state;
(4) Children six (6) years of age or under whose parent or guardian have filed a notice of intent to conduct a home school as provided by § 49-6-3001 or who are conducting a home school as provided by § 49-6-3050; and
(5) Children who have attained their seventeenth birthday and whose continued compulsory attendance, in the opinion of the board of education in charge of the school to which the children belong and are enrolled, results in detriment to good order and discipline and to the instruction of other students and is not of substantial benefit to the children.
(b) In all cases described in subsection (a), the board shall first obtain the recommendation in writing from the director of schools of the system and the principal of the school to which the child or children belong.
(c) No child who is refused attendance in a school nearer to the child's residence having equivalent grade levels and curriculum shall be required to attend public or nonpublic school as provided in § 49-6-3001.
(d) In addition to the categories of children specified in subsection (a), the local board of education may excuse children from attendance in accordance with guidelines developed by the state board of education for this purpose.