Every guard, matron, nurse or other employe who comes in contact with inmates of any jail or workhouse, who is incapacitated as a result of violence by an inmate while in the performance of his duties, shall be paid by the county by which they are employed their full rate of salary as fixed by the salary board until the disability arising therefrom has ceased, but the period of such salary payments by the county shall not exceed the period during which such employe is entitled to compensation for the injury, received under the provisions of the Workmen's Compensation Act. All medical and hospital bills incurred in connection with any such injuries shall be paid by such county. All benefits under the Workmen's Compensation Law which shall be received or collected by any such employe during the period he has received salary for temporary disability shall be paid over to the county and into the treasury thereof. If any such payment or payments shall not be so made by such employe, the amount so directed to be paid the county shall be deducted from any salary which shall then or thereafter become due and owing to such employe.
16 P.S. § 4531