in exchange , the state would authorize her leave of absence for four months ( and the hospital had to agree ) , pay all of her medical expenses , and pay for the last four months of her wages at double the rate .