; and (B) by inserting before the semicolon at the end the following: , and (B) payment may be made under part B for the provision of such dental services that are medically necessary as a direct result of, or will have a direct impact on, an underlying medical condition if the coverage of such services is medically necessary, as determined under subsection (p) ; and (2) by adding at the end the following new subsection: (p) For purposes of subsection (a)(12)(B), dental services shall be considered to be medically necessary if furnished— (1) in conjunction with treatment of an individual with a prosthetic heart valve replacement or a diagnosis of cancer of the head or neck, lymphoma, leukemia, and organ transplantation; and (2) not later than one year after the later of— (A) the date of such diagnosis; or (B) the date of the related surgical or medical treatment for that diagnosis. . (b) Effective date The amendments made by subsection (a) shall apply to procedures performed on or after January 1, 2024.