(a)being a medical practitioner or a person openly and constantly practising the medical profession, and in the course of such practice becoming cognizant of the existence of any infectious disease in any dwelling other than a public hospital ; or, in default of such medical practitioner or person practising the medical profession;