(CNN) A Kentucky judge rejected the claims made by a teenager who sued his local health department for temporarily barring students at his school who aren't immune against chickenpox from attending classes and participating in extracurricular activities.

Last month, the local health department implemented the policy after an outbreak of chickenpox affected 32 people, which is 13% of the student body, at Our Lady of the Sacred Heart/Assumption Academy in Walton, Kentucky.

The student, Jerome Kunkel refuses the chickenpox vaccine, citing his Christian faith.

In response to the outbreak, the Northern Kentucky Health Department announced that all students at the school who don't have "proof of vaccination or proof of immunity against chickenpox will not be allowed to attend school until 21 days after the onset of rash for the last ill student or staff member." The school's sports and extracurricular activities were canceled to avoid spreading the illness to other schools and places.

Kunkel, a senior at the school, filed a lawsuit over the health department's decision, especially because it affects his basketball season.