Eco-friendly hospital closed for six months due to failure of underfloor heating that ‘made the floor too hot to walk on’