; and (C) by moving the left margin 2 ems to the left; and (2) by adding at the end the following new paragraph: (10) No payment shall be made under this title to a State with respect to expenditures incurred by the State for payment for services provided by an other specified entity (as defined in paragraph (9)(D)(iii)) unless such services are provided in accordance with a contract between the State and such entity which satisfies the requirements of paragraph (2)(A)(xiii). . (d) Effective date The amendments made by this section apply to contracts between States and managed care entities, other specified entities, or pharmacy benefit managers that have an effective date beginning on or after the date that is 18 months after the date of enactment of this Act. 6. Ensuring accurate payments to pharmacies under Medicaid (a) In general Section 1927(f) of the Social Security Act ( 42 U.S.C. 1396r–8(f) ) is amended— (1) by striking and after the semicolon at the end of paragraph (1)(A)(i) and all that precedes it through (1) and inserting the following: (1) Determining pharmacy actual acquisition costs The Secretary shall conduct a survey of retail community pharmacy drug prices to determine the national average drug acquisition cost as follows: (A) Use of vendor The Secretary may contract services for— (i) with respect to retail community pharmacies, the determination of retail survey prices of the national average drug acquisition cost for covered outpatient drugs that represent a nationwide average of consumer purchase prices for such drugs, net of all discounts and rebates (to the extent any information with respect to such discounts and rebates is available) based on a monthly survey of such pharmacies; and