; and (ii) by inserting after subclause (VII) the following new subclause: (VIII) the first 3 primary care visits (as defined in section 1861(nnn)) furnished to an enrollee during a year (beginning with 2024). ; and (B) in clause (v), by striking and (VII) and inserting (VII), and (VIII) . (3) Definition Section 1861 of the Social Security Act ( 42 U.S.C. 1395x ) is amended by adding at the end the following new subsection: (nnn) Primary care visit The term primary care visit means outpatient behavioral health services, nonspecialty medical services, and care coordination services furnished for the prevention, diagnosis, treatment, or management of a physical or behavioral health condition. . (b) Medicaid (1) In general Section 1916 of the Social Security Act ( 42 U.S.C. 1396o ) is amended— (A) in subsection (a)(2)— (i) in subparagraph (I), by striking or at the end; (ii) in subparagraph (J), by striking ; and at the end and inserting , or ; and (iii) by adding at the end the following new subparagraph: (K) the first 3 primary care visits (as defined in section 1861(nnn)) furnished to an individual during a year (beginning with 2024) for which payment may be made under this title; and ; and (B) in subsection (b)(2)— (i) in subparagraph (I), by striking or at the end; (ii) in subparagraph (J), by striking ; and at the end and inserting , or ; and (iii) by adding at the end the following new subparagraph: (K) the first 3 primary care visits (as defined in section 1861(nnn)) furnished to an individual during a year (beginning with 2024); and . (2) Application to alternative cost sharing Section 1916A(b)(3)(B) of the Social Security Act ( 42 U.S.C. 1396o–1(b)(3)(B) ) is amended by adding at the end the following new clause: (xv) The first 3 primary care visits (as defined in section 1861(nnn)) furnished to an individual during a year (beginning with 2024). .