; (6) the use of assertive community treatment that is integrated with or facilitated by a primary care practice; and (7) delivery of integrated primary care and mental health services or substance use disorder care in the home or in community-based settings for individuals who choose and are able to receive care in such settings, as authorized under subsections (b), (c), (i), (j), and (k) of section 1915 of the Social Security Act ( 42 U.S.C. 1396n ), under a waiver under section 1115 of such Act ( 42 U.S.C. 1315 ), or under section 1937, 1945, or 1945A of such Act ( 42 U.S.C. 1396u–7 , 1396w–4, 1396w–4a). (d) Definitions In this section: (1) Secretary The term Secretary means the Secretary of Health and Human Services. (2) State The term State has the meaning given that term in section 1101(a)(1) of the Social Security Act ( 42 U.S.C. 1301(a)(1) ) for purposes of titles XIX and XXI of such Act. 114. Medicaid State option relating to inmates with a substance use disorder pending disposition of charges (a) State option (1) In general Section 1905 of the Social Security Act ( 42 U.S.C. 1396d ) is amended— (A) in the subdivision (A) following the last numbered paragraph of subsection (a), by inserting subject to subsection (jj), before any such payments ; and (B) by adding at the end the following new subsection: (jj) State option to provide medical assistance to certain inmates with a substance use disorder pending disposition of charges (1) In general Subject to paragraph (2), a State may elect to provide, and, notwithstanding the subdivision (A) following the last numbered paragraph of subsection (a), receive Federal financial participation for, medical assistance for an individual who— (A) is an inmate of a public institution (as defined in section 1902(nn)(3)) pending disposition of charges; and (B) has been diagnosed with a substance use disorder. (2) Limitation