Any child affected with diphtheria, measles, scarlet fever or smallpox shall be excluded from the schools until permission of the proper school officer for the child to return is granted; and intercourse between pupils of the schools and the family or house, when there is any case of 1 of these contagious diseases, must be forbidden until the official permission is given to return to the school.