; (C) no individual is entitled to medical assistance under a State child health plan under title XXI of such Act for any item or service furnished on or after such date; and (D) no payment shall be made to a State under section 1903(a) or 2105(a) of such Act with respect to medical assistance or child health assistance for any item or service furnished on or after such date. (2) Transition In the case of inpatient hospital services and extended care services during a continuous period of stay which began before the effective date of benefits under section 106, and which had not ended as of such date, for which benefits are provided under title XVIII of the Social Security Act, under a State plan under title XIX of such Act, or under a State child health plan under title XXI such Act, the Secretary of Health and Human Services shall provide for continuation of benefits under such title or plan until the end of the period of stay. (3) Services under Medicaid (A) In general This subsection shall not apply to entitlement to medical assistance provided under title XIX of the Social Security Act for— (i) long-term care services (as defined in section 1947(b) of such Act); or (ii) any other service for which benefits are not available under this Act and which is furnished under a State plan under title XIX of the Social Security Act which provided for medical assistance for such service on September 1, 2017. (B) Coordination between Secretary and States The Secretary shall coordinate with the directors of State agencies responsible for administering State plans under title XIX of the Social Security Act to— (i) identify services described in subparagraph (A)(ii) with respect to each State plan