Many patients ready to leave the hospital end up lingering for days or weeks — occupying beds that others need and driving up costs — because of a lack of open spots at nursing homes and rehabilitation facilities. A few health systems are addressing this problem by moving post-acute rehab into the home.