((a)) ** Persons liable** If any facility with respect to which funds have been paid under shall, at any time within 20 years after the completion of construction or modernization—
((1)) be sold or transferred to any entity (A) which is not qualified to file an application under , or (B) which is not approved as a transferee by the State agency designated pursuant to , or its successor, or
((2)) cease to be a public health center or a public or other nonprofit hospital, outpatient facility, facility for long-term care, or rehabilitation facility,
((b)) ** Notice to Secretary** The transferor of a facility which is sold or transferred as described in subsection (a)(1), or the owner of a facility the use of which is changed as described in subsection (a)(2), shall provide the Secretary written notice of such sale, transfer, or change not later than the expiration of 10 days from the date on which such sale, transfer, or change occurs.
((c)) ** Amount of recovery; interest; interest period**
((1)) Except as provided in paragraph (2), the amount the United States shall be entitled to recover under subsection (a) is an amount bearing the same ratio to the then value (as determined by the agreement of the parties or in an action brought in the district court of the United States for the district for which the facility involved is situated) of so much of the facility as constituted an approved project or projects as the amount of the Federal participation bore to the cost of the construction or modernization of such project or projects.
((2))
((A)) After the expiration of—
((i)) 180 days after the date of the sale, transfer, or change of use for which a notice is required by subsection (b), in the case of a facility which is sold or transferred or the use of which changes after , or
((ii)) thirty days after , or if later 180 days after the date of the sale, transfer, or change of use for which a notice is required by subsection (b), in the case of a facility which was sold or transferred or the use of which changed before .
((B)) The period referred to in subparagraph (A) is the period beginning—
((i)) in the case of a facility which was sold or transferred or the use of which changed before , thirty days after such date or if later 180 days after the date of the sale, transfer, or change of use for which a notice is required by subsection (b),
((ii)) in the case of a facility with respect to which notice is provided in accordance with subsection (b), upon the expiration of 180 days after the receipt of such notice, or
((iii)) in the case of a facility with respect to which such notice is not provided as prescribed by subsection (b), on the date of the sale, transfer, or change of use for which such notice was to be provided,
((d)) ** Waiver**
((1)) The Secretary may waive the recovery rights of the United States under subsection (a)(1) with respect to a facility in any State if the Secretary determines, in accordance with regulations, that the entity to which the facility was sold or transferred—
((A)) has established an irrevocable trust—
((i)) in an amount equal to the greater of twice the cost of the remaining obligation of the facility under clause (2) of or the amount, determined under subsection (c), that the United States is entitled to recover, and
((ii)) which will only be used by the entity to provide the care required by clause (2) of ; and
((B)) will meet the obligation of the facility under clause (1) of .
((2)) The Secretary may waive the recovery rights of the United States under subsection (a)(2) with respect to a facility in any State if the Secretary determines, in accordance with regulations, that there is good cause for waiving such rights with respect to such facility.
((e)) ** Lien** The right of recovery of the United States under subsection (a) shall not constitute a lien on any facility with respect to which funds have been paid under .section 291f of this title