Section 117. Whenever the physician of any state correctional facility certifies that any prisoner held therein requires medical, dental or other similar professional treatment which cannot safely or properly be given in such state correctional facility or the hospital at the Massachusetts Correctional Institution, Norfolk, the commissioner may temporarily place such person in an appropriate hospital or medical facility to receive such treatment.