To prevent the introduction of contagious disorders, the warden shall cause every person sentenced to the penitentiary to be washed, cleansed and kept entirely apart from the other inmates until it is certified by the physician that the inmate may be permitted to join them in labor without danger to their health.