; or (B) in the case of a chronic illness or condition, a condition that— (i) is life-threatening, degenerative, potentially disabling, or congenital; and (ii) requires specialized medical care over a prolonged period of time. (3) Terminated The term terminated includes, with respect to a contract, the expiration or nonrenewal of the contract, but does not include a termination of the contract for failure to meet applicable quality standards or for fraud. . (B) Effective date The amendments made by this paragraph shall apply with respect to plan years beginning on or after January 1, 2022. (2) Internal Revenue Code of 1986 (A) In general Subchapter B of chapter 100 of the Internal Revenue Code of 1986 is amended by adding at the end the following new section: 9816. Continuity of care (a) Ensuring continuity of care with respect to terminations of certain contractual relationships resulting in changes in provider network status (1) In general In the case of an individual with benefits under a group health plan and with respect to a health care provider or health care facility that has a contractual relationship with such plan for furnishing items and services under such plan, if, while such individual is a continuing care patient (as defined in subsection (b)) with respect to such provider or facility— (A) such contractual relationship is terminated (as defined in paragraph (b)); (B) benefits provided under such plan with respect to such provider or facility are terminated because of a change in the terms of the participation of the provider or facility in such plan