A massive bequest has funded the redevelopment of a hospital unit.