How does 340B contract pharmacy setup work with a TPA?
A covered entity sets up a 340B contract pharmacy by signing a written agreement with the pharmacy, registering that pharmacy in HRSA's 340B OPAIS during a quarterly window (it can dispense 340B drugs from the first day of the next quarter), and setting up “ship to, bill to” purchasing so the wholesaler bills the covered entity but ships to the pharmacy. The TPA is the data layer in between: it receives the pharmacy's dispensing data, checks each prescription against the covered entity's patients, prescribers and locations, tracks eligible units, and triggers 340B replenishment orders. The covered entity stays responsible for compliance throughout.[1][2][3][4]
Seven parties in a contract pharmacy arrangement
| Party | Role in setup and day-to-day operation |
|---|---|
| Covered entity | Signs the written contract, purchases and holds title to the 340B drugs, registers each pharmacy in OPAIS (Authorizing Official and Primary Contact), and remains responsible for preventing diversion and duplicate discounts.[1][3][4] |
| Contract pharmacy | Dispenses to the covered entity's patients, keeps a tracking system with the covered entity, provides reports and auditable records kept separately from its own operations, and checks shipments against orders.[3] |
| 340B TPA | A vendor the covered entity chooses to identify eligible claims, manage inventory and replenishment across contract pharmacies, and help submit claims data where manufacturers require it. It does not take on the covered entity's compliance responsibility.[4][5] |
| Wholesaler | Bills the covered entity for 340B purchases and ships them to the contract pharmacy under the ship-to, bill-to arrangement.[3] |
| Manufacturer | Offers drugs at or below the 340B ceiling price. Since 2020, many manufacturers have attached conditions to contract pharmacy shipments, such as claims data or limits on the number of pharmacies.[6][7][9] |
| HRSA / OPAIS | Approves contract pharmacy registrations and lists them as active in 340B OPAIS. A pharmacy can't dispense 340B drugs for the covered entity until it is listed as active.[1] |
| State Medicaid agency | Must be part of any arrangement to use 340B drugs for Medicaid prescriptions at a contract pharmacy (carve-in), so the same drug doesn't also get a Medicaid rebate.[1][3] |
Eight steps to a working contract pharmacy
- Step 1
Decide what you need
Decide whether you need contract pharmacy services and how drugs will move, then list every pharmacy location and every covered entity location that will use 340B drugs. HRSA expects all of them to be named in the written contract.[1]
- Step 2
Sign a written contract that covers the essential elements
HRSA's 2010 guidance lists what the agreement should address: the covered entity buys and keeps title to the drug; ship-to, bill-to purchasing; a tracking system to prevent diversion; a system to verify patient eligibility; no 340B drugs for Medicaid without a state arrangement; records available for independent audits and for HRSA and manufacturer audits; and a copy of the contract for HRSA on request.[3]
- Step 3
Register the pharmacy in 340B OPAIS during an open window
Registration is only open Oct 1–15, Jan 1–15, Apr 1–15 and Jul 1–15. The Primary Contact creates the registration and the Authorizing Official must authorize it within 15 calendar days, or it is cancelled. Have the pharmacy's DEA number ready, and make sure the name and address match the contract exactly.[1][2]
- Step 4
Set up ship-to, bill-to purchasing
Open 340B wholesaler accounts so the covered entity is billed and the pharmacy receives the shipment. An entity with more than one site can have each site billed individually or use a single billing address for all 340B purchases.[3]
- Step 5
Connect the TPA
Give the TPA what it needs to qualify prescriptions: the pharmacy's dispensing data feed, your eligible locations, your list of affiliated prescribers (HRSA's sample provisions have the covered entity give the pharmacy this list and keep it current), patient encounter data and the eligibility rules you've written down.[3][5]
- Step 6
Settle Medicaid: carve-out or carve-in
By default, contract pharmacies don't use 340B drugs for Medicaid prescriptions. Carving in requires an arrangement among the covered entity, the pharmacy and the state Medicaid agency, reported to HRSA. HRSA reviews carve-in requests, and an approved carve-in starts at the beginning of the next quarter.[1][3]
- Step 8
Go live, then oversee
Once HRSA lists the pharmacy as active, dispensing can start on the first day of the next quarter. Ongoing, compare your prescribing records with the pharmacy's dispensing records. HRSA's sample tracking provisions describe quarterly sample comparisons and a six-month comparison of 340B purchasing and dispensing records, and HRSA expects independent audits.[1][3][4]
What happens after a prescription is filled
The typical replenishment loop once the pharmacy is live.
- 01
Prescription filled
A patient fills a prescription at the contract pharmacy, which dispenses from its own stock and bills the payer as usual.
- 02
Dispensing data to the TPA
The pharmacy's claim and dispensing data flow to the covered entity's TPA.[5]
- 03
Eligibility check
The TPA checks each prescription against the covered entity's patients, prescribers, locations and Medicaid status. This is the tracking and patient-verification system the 2010 guidance calls for.[3]
- 04
Accumulation
Eligible units are tracked by drug and pharmacy until there is enough to replenish.[5]
- 05
Replenishment
A 340B order goes through the covered entity's account. The wholesaler bills the covered entity and ships to the pharmacy, and the pharmacy checks the shipment against the order.[3]
Manufacturer conditions and the courts
The 340B statute doesn't mention contract pharmacies, and HRSA's policy on them has changed over time.[9] That's why the setup checklist includes a check of manufacturer conditions.
- 2010
HRSA guidance lets covered entities use more than one contract pharmacy.[3]
- 2020
Manufacturers start limiting contract pharmacy shipments. For example, Sanofi allowed one contract pharmacy for entities without an in-house pharmacy, or unlimited pharmacies if the entity provided claims data.[6]
- Jan 30, 2023
The Third Circuit (Sanofi v. HHS) holds that Section 340B does not require manufacturers to deliver to an unlimited number of contract pharmacies.[6]
- Mar 12, 2024
The Eighth Circuit (PhRMA v. McClain) upholds Arkansas's law barring manufacturers from restricting contract pharmacies. The Supreme Court declined review on Dec 9, 2024.[8][9]
- May 21, 2024
The D.C. Circuit (Novartis v. Johnson) holds that the statute does not categorically bar manufacturer conditions. It upholds a single-contract-pharmacy policy and a claims data requirement, and notes that more onerous conditions might still violate the statute.[7]
- Sept 2025
The Congressional Research Service counts challenges to at least twelve state contract pharmacy laws. Most courts so far have sided with the states, and a West Virginia court preliminarily blocked that state's law, which also bars manufacturers from requiring claims data.[9]
What this means for setup
- Keep a current list of each manufacturer's contract pharmacy conditions, and check it before adding a pharmacy.
- If a manufacturer requires claims data, make sure your TPA can submit it on schedule.[5][7]
- Some manufacturers let entities without an in-house pharmacy designate a single contract pharmacy, so pick that pharmacy deliberately.[6][7]
- Check whether your state has a contract pharmacy law, and track its litigation status.[8][9]
Contract pharmacy administration, set up with your team
Independent TPA
Aventi is an independent 340B TPA for contract pharmacy and split billing, trusted by 300 covered entities, 24 of them hospitals.
Built from your records
We start from your pharmacy agreements, OPAIS listings, locations and prescriber data, so eligibility rules match what's registered.
Contingency, no true-ups
Contract pharmacy and split billing services are priced on contingency, with no end-of-month true-ups. See how 340B TPA fees work.
Ready for 2027 rebates
The rebate module is Included for Aventi TPA clients. Read the 340B rebate model guide.
340B contract pharmacy setup: common questions
Sources
- HRSA, Contract Pharmacy Services — https://www.hrsa.gov/opa/implementation-contract
- HRSA, Registration — https://www.hrsa.gov/opa/registration
- Federal Register, Notice Regarding 340B Drug Pricing Program—Contract Pharmacy Services (75 FR 10272, March 5, 2010) — https://www.federalregister.gov/documents/2010/03/05/2010-4755/notice-regarding-340b-drug-pricing-program-contract-pharmacy-services
- HRSA FAQ, What are the audit and compliance parameters under the contract pharmacy guidelines? — https://www.hrsa.gov/about/faqs/what-are-audit-compliance-parameters-under-contract-pharmacy-guidelines
- Health Affairs Scholar / PMC, Growing administrative complexity in the 340B program and the rise of third-party administrators (PMC10986201) — https://pmc.ncbi.nlm.nih.gov/articles/PMC10986201/
- U.S. Court of Appeals for the Third Circuit, Sanofi Aventis U.S. LLC v. HHS, No. 21-3167 (Jan. 30, 2023) — https://www2.ca3.uscourts.gov/opinarch/213167p.pdf
- U.S. Court of Appeals for the D.C. Circuit, Novartis Pharmaceuticals Corp. v. Johnson, No. 21-5299 (May 21, 2024) — https://media.cadc.uscourts.gov/opinions/docs/2024/05/21-5299-2055423.pdf
- U.S. Court of Appeals for the Eighth Circuit, PhRMA v. McClain, No. 22-3675 (Mar. 12, 2024) — https://ecf.ca8.uscourts.gov/opndir/24/03/223675P.pdf
- Congressional Research Service, The 340B Drug Discount Program: Litigation Topics and Trends (R48696, Sept. 10, 2025) — https://www.congress.gov/crs-product/R48696
Last updated November 10, 2026. This page is general information, not legal advice. Confirm your registrations and arrangements with HRSA.