My wife is about to get her second knee replaced----both hips and her other knee have already gone to wherever worn out parts go

She went to a rehab center for a period after each----but no more Medicare now considers a knee replacement as outpatient surgery---unless you get both done at the same time, then you can stay over night. In any case a stay in a rehab facility----what is that?