Section 117A. Whenever the physician of any jail or house of correction certifies that any prisoner held therein requires medical, dental or other similar professional treatment which is not available in such jail or house of correction, the sheriff or, in the case of the house of correction in Suffolk county, the penal institutions commissioner of the city of Boston may temporarily place such prisoner in a hospital or medical facility to receive such treatment.