A new contract to provide an intermediate care and reablement service and help “timely hospital discharges” has been agreed.