; State option for coverage of room and board for ceratin infants with neonatal abstinence syndrome (a) Medicaid coverage for pregnant and post-Partum women while receiving inpatient treatment for a substance use disorder (1) In general Section 1905(a) of the Social Security Act ( 42 U.S.C. 1396d(a) ) is amended by adding at the end the following new sentence: In the case of a woman who is eligible for medical assistance on the basis of being pregnant (including through the end of the month in which the 60-day period beginning on the last day of her pregnancy ends) (or is eligible for medical assistance on another basis and is pregnant or was pregnant during the previous one-year period (in this sentence, such a woman shall be referred to as an other pathway eligible pregnant woman )), who is a patient in an institution for mental diseases for purposes of receiving treatment for a substance use disorder, and who was enrolled for medical assistance under the State plan immediately before becoming a patient in an institution for mental diseases or who becomes eligible to enroll for such medical assistance while such a patient, the exclusion specified in the subdivision (B) following paragraph (29) of the first sentence shall not be construed as prohibiting Federal financial participation for medical assistance for items or services that are provided to the woman outside of the institution during, in the case of a woman who is eligible for medical assistance on the basis of being pregnant, the period of such eligibility on such basis and through the end of the month in which the one-year period beginning on the last day of her pregnancy ends (and, in the case of an other pathway eligible pregnant woman, the period during which the woman satisfies the description of being such an other pathway eligible pregnant woman, including through the end of the month in which the one-year period beginning on the last day of her pregnancy ends) to the extent such items or services would be treated as medical assistance for such