Section 102A. In any town of not exceeding three thousand inhabitants which votes under section twenty-one to have its selectmen act as a board of health and which accepts this section by vote in town meeting, the selectmen may appoint the school physician to be inspector of health, with the duties set forth in section one hundred and two. Such appointment shall not bar the school physician from the general practice of his profession.