Sec1913[42 U.S.C. 1396l] (a) Notwithstanding any other provision of this title, payment may be made, in accordance with this section, under a State plan approved under this title for nursing facility services furnished by a hospital which has in effect an agreement under section 1883 and which, with respect to the provision of such services, meets the requirements of subsections (b) through (d) of section 1919.

(b)(1) Except as provided in paragraph (3), payment to any such hospital, for any nursing facility services furnished pursuant to subsection (a), shall be at a rate equal to the average rate per patient-day paid for routine services during the previous calendar year under the State plan to nursing facilities, respectively, located in the State in which the hospital is located. The reasonable cost of ancillary services shall be determined in the same manner as the reasonable cost of ancillary services provided for inpatient hospital services.

(2) With respect to any period for which a hospital has an agreement under section 1883, in order to allocate routine costs between hospital and long-term care services, the total reimbursement for routine services due from all classes of long-term care patients (including title XVIII, title XIX, and private pay patients) shall be subtracted from the hospital total routine costs before calculations are made to determine reimbursement for routine hospital services under the State plan.

(3) Payment to all such hospitals, for any nursing facility services furnished pursuant to subsection (a), may be made at a payment rate established by the State in accordance with the requirements of section 1902(a)(13)(A).