Section 18. And be it further enacted by the authority aforesaid, That whenever by means aforesaid, or by the report of the port physician or any other physician appointed by the board of health, (whom the said board are hereby authorised to send to places or houses suspected to be infected,) it shall come to the knowledge of the said board, that any person within the city of Philadelphia, the district of Southwark, the townships of the Northern Liberties, Moyamensing or Penn, is afflicted with any contagious disease, dangerous to the community, it shall and may be lawful for the said board to take orders for preventing the spreading of the contagion, by forbidding and preventing all communication with the infected house or family, except by means of physicians nurses or messengers, to convey the necessary advice, medicines and provisions to the afflicted, and shall exercise all such other powers as the circumstances of the case shall require, and as shall in their judgement, be most conducive to the public good with the least private injury.