skilled nursing facility means a skilled nursing facility that the Secretary determines— (i) subject to subparagraphs (B) and (C), based upon the most recent ratings under the system established for purposes of rating skilled nursing facilities under the Medicare Nursing Home Compare program, has an overall rating of 3 or more stars or a score of 4 stars or higher on the individual quality domain or on the staffing quality domain