An artificial intelligence (AI) tool accurately predicted which patients would need a skilled nursing facility after leaving the hospital, a new study shows.