The federal government grades skilled nursing facilities based on staffing levels, building safety and other factors.