What is 340B patient eligibility matching, and how does a TPA do it?
340B patient eligibility matching is how a TPA decides, prescription by prescription, whether a claim belongs to a patient of your covered entity under HRSA’s 1996 patient definition. The TPA takes in your data (visit records, eligible prescriber lists, registered sites and referral documentation) and compares it with each pharmacy claim. A claim qualifies only when the patient, the prescriber, a documented visit at an eligible site and, for hospitals, outpatient status all line up under the rules your policies set, such as how long after a visit a prescription still counts. Claims that don’t match are left out or queued for review. The TPA runs the matching; the covered entity writes the rules and stays responsible for them.[2][3][4]
How the patient definition becomes matching logic
The statute bars giving a 340B drug to anyone who isn’t a patient of the covered entity, and HRSA’s 1996 guidelines say who counts as a patient. A TPA can’t read a chart the way an auditor does, so each part of the definition has to be turned into data it can compare and a rule it can apply.[1][2]
| 1996 patient definition | Data that shows it | Typical matching rule |
|---|---|---|
| You have a relationship with the person and keep records of their care | Visit (encounter) records from your EHR or practice management system, with a patient identifier such as the medical record number | The patient on the pharmacy claim has to match a patient with a documented visit in your record. A dispense on its own never counts.[2][4][7] |
| Care comes from your employed or contracted professional, or under an arrangement such as a referral, so responsibility stays with you | Prescriber roster (name, NPI, employed or contracted, start and end dates) plus referral records | The prescriber on the claim has to be on your roster for that date, or be tied to a documented referral from your provider.[2][3][7] |
| For grantees and look-alikes, the service fits the grant or designation scope (hospitals are exempt from this part) | Sites and services mapped to your approved scope | The visit has to be for an in-scope service at an eligible site.[2][8][9] |
Hospitals add two checks: the site has to be reimbursable on the most recently filed Medicare cost report (and registered in 340B OPAIS if it is off-site), and the patient has to be an outpatient. For the full set of claim checks and how they stop diversion, see how a 340B TPA prevents diversion.[5]
The data feeds a TPA works from
When OIG studied contract pharmacy programs, most entities had their administrator find eligible prescriptions after they were written, by comparing the entity’s data with pharmacy fills. Patient lists and prescriber lists were the most common inputs; some entities also sent clinical codes, site lists, detailed encounter data or e-prescribing data.[4]
A smaller group marked prescriptions as 340B when they were written, using printed barcodes or a set value in the e-prescription notes field.[4]
Visit (encounter) data
Patient ID, name, date of birth, visit date, location or service area, treating provider. Some entities add diagnosis and procedure codes.[4][7]
Shows: That you have a relationship with the patient and records of their care
Prescriber roster
Name, NPI (some entities also send DEA numbers), employed or contracted, start and termination dates, and a flag for prescribers who also practice elsewhere.[3][4][7]
Shows: That the prescriber works for you, or under an arrangement with you, on the date written
Eligible site list
Parent and child sites registered in 340B OPAIS. For hospitals, departments inside the parent’s four walls that are reimbursable on the latest Medicare cost report.[4][5]
Shows: That the visit happened at a location allowed to use 340B
Hospital patient status
Admission orders, observation stays and discharges, with dates and times.[5][7][12]
Shows: That the patient was an outpatient when the drug was ordered or given
Four settings that change the answer
OIG asked covered entities how they would treat the same four prescriptions. Because they used different data and different comparison rules, they reached different answers, and OIG concluded that similar prescriptions were treated as 340B eligible at some entities and not at others.[4]
A part-time prescriber writes at a private practice
A physician sees the patient at your clinic, then writes a prescription at their own practice, which is filled at your contract pharmacy.
- Roster of all prescribers: the claim qualifies automatically
- Roster limited to prescribers who work only for you: it doesn’t
- Flag part-time prescribers and queue their claims for your staff to review
A refill four months after the last visit
The patient was seen once, then refills the prescription four months later with no visit in between.
- 60-day window after the most recent visit: not 340B
- 12-month window: qualifies
- No time limit: qualifies
An outside specialist you referred the patient to
Your physician refers the patient to an unaffiliated specialist, who writes a prescription filled at your contract pharmacy.
- Prescriber list only: not 340B, because the specialist isn’t on it
- Queue off-roster prescribers and qualify the claim if your records show the referral
Two prescriptions from one visit
At a visit for chest pain, the physician writes a blood pressure drug related to the visit and a sleep medication for an older condition.
- Match to the visit’s diagnosis and procedure codes: only the related drug qualifies
- No clinical matching (the more common approach in OIG’s sample): both qualify
Each option above was reported by an entity or administrator in OIG’s sample.[4] None of them replaces the patient definition; they are ways of applying it. Choose deliberately, write the choice down and make sure the TPA is set up the same way.
How long after a visit does a prescription count?
Neither the 340B statute nor the 1996 patient definition sets a number of days.[1][2] In the Genesis case, the federal court noted that the statute states no specific time requirement for who is a patient and that HRSA offered no suggestion for one.[14] So the window is a policy choice your entity makes and the TPA enforces.
HRSA says the Genesis decision applies solely to Genesis Health Care, and that the 1996 guidelines continue to guide its audits.[13] HRSA’s 2015 proposed guidance would have required the drug to be prescribed as a result of a covered entity service, judged prescription by prescription, but it was withdrawn in January 2017.[14][15]
Windows OIG found in use
Bars are not to scale beyond showing that the windows get longer. Source: OIG’s 2014 study.[4]
Questions to settle in your policy
- Does the window run from the most recent visit or from the visit where the drug was prescribed?
- Is it the same for every site and service, or different for some?
- What date does a change take effect, and how is it logged?
How a referral prescription earns its match
The 1996 definition allows care under “contractual or other arrangements (e.g. referral for consultation)” as long as responsibility for the care stays with the covered entity. A prescriber list alone can’t see that, so referral capture is a documentation workflow first and a matching rule second.[2][4]
- 01
Order the referral in your EHR
Name the provider or facility, the reason, the type (for example, consultation) and the urgency, with relevant clinical information.[9]
- 02
The patient sees the outside provider
Your care coordination staff track the open referral until the appointment happens.[9]
- 03
The report comes back into your record
It should name the treating provider, describe the services and list the medications prescribed.[9]
- 04
Chase missing reports
If no report arrives, staff follow up and document each attempt in the EHR. Your policy can set how many attempts and over what timeframe.[9]
- 05
Match the prescription to the referral
A claim from the outside prescriber can then be tied to the referral and consult summary. Self-audit tools look for exactly that pair.[4][8]
Not every referral qualifies
NACHC notes that a health center can refer a patient anywhere, but not every referral meets the 1996 definition. Health centers need to know the prescriber’s relationship to them and whether the service falls within their approved scope, which may be delivered directly, by contract or through a formal written referral arrangement.[9]
Make it matchable
NACHC suggests structured fields in the EHR referral for the required elements, and a list of the outside providers you refer to often, noting which have contractual or referral arrangements, so it can be cross-checked against 340B prescription records.[9]
Outpatient status at the moment of use
340B pricing applies to covered outpatient drugs only, so a hospital’s matching has to know whether the patient was an inpatient or an outpatient when the drug was ordered or given.[5] HRSA’s audits review how the hospital defines inpatient and outpatient.[11]
Observation
For Medicare, a patient becomes an inpatient only when formally admitted with a doctor’s order; observation is an outpatient service even overnight.[12] HRSA says the hospital’s 340B policies should define inpatient and outpatient and how that relates to observation beds, and its audits check that the policy is followed.[5]
Discharge prescriptions
HRSA says 340B drugs can be used for discharge prescriptions to the extent the drugs are for outpatient use, and that it depends on the circumstances of the individual’s care. The hospital should be able to explain its responsibility for the outpatient use and keep auditable records.[5]
What the data needs
Status with times, not just dates. The sample HRSA audit data request asks for the time a hospital drug was ordered and given, and for policies on patient status changes.[7] For areas that treat inpatients and outpatients together, see the mixed-use notes in diversion prevention.
Near misses, and what fixes them
Some administrators don’t decide every claim automatically: claims that don’t clear the rules can be queued for the covered entity’s staff to review.[4] These are typical reasons a claim falls just short, and where the fix usually sits.
| Near miss | Usual cause | Fix |
|---|---|---|
| Prescriber not on the roster | A new hire or contractor wasn’t added, an end date is wrong, or the NPI doesn’t match. | Keep the roster current with start and end dates. The sample HRSA audit data request asks for this same list.[3][7] |
| Visit outside the window | The last documented visit falls before your lookback period. | Apply the window as written. If the window itself is wrong, change the policy going forward and record the effective date.[4] |
| Referral without a consult report | The outside provider never sent the summary back. | Request the report and document every attempt. Without it, the claim shouldn’t qualify.[8][9] |
| Visit at an unregistered location | A new off-site clinic is seeing patients before it is registered as a child site. | Register during a quarterly window (the 1st to 15th of January, April, July or October); it starts on the first day of the next quarter.[5][6] |
| Patient identity mismatch | Name, date of birth or ID differs between the pharmacy claim and your record. | Correct the demographics at the source and route uncertain matches to manual review instead of forcing them.[4] |
| Inpatient or outpatient unclear | Admission, observation or discharge times are missing from the data. | Send status with dates and times, and apply the definition in your policies.[5][7] |
Recovering a claim after the fact
HRSA says it does not authorize reclassifying a purchase as 340B after the fact. An entity that wants to should first notify manufacturers and keep a clear audit trail of the real timing and facts, and drugs may be credited and rebilled only within the wholesaler’s contracted timeframe. The entity stays responsible for compliance.[5] If the problem runs the other way, a claim that matched but shouldn’t have, see how to correct it in diversion prevention.
Write the rules down, then test the setup
What your policies should cover
The sample HRSA audit data request asks for your process for confirming each of these, both at the entity and at every pharmacy:[7]
- How you confirm site eligibility
- How you confirm referral and that responsibility for care stayed with you
- What has to be in the patient’s health record
- Patient eligibility, including patient status changes for hospitals
- Provider eligibility and how the relationship is documented
- Service within grant scope, for grantees
HRSA’s contract pharmacy guidance calls for a system to verify patient eligibility that can be changed when the guidelines change, and suggests the entity give the pharmacy a list of its qualified prescribers and keep it updated.[3]
How to test the configuration
HRSA recommends written procedures for reviewing the patient eligibility system used at contract pharmacies, with quarterly internal audits and annual independent audits.[10] Ways to make that review specific:
- Trace a sample of qualified claims back to the visit, prescriber, site and, where it applies, the referral and consult summary
- Pull a sample of unmatched and queued claims to see whether the rules are working as written or are too loose or too narrow
- Compare the TPA’s settings (window, roster, sites, referral rules) with your written policy line by line
- Re-test after any change to the roster, a site registration, the window or a data feed, and keep a log of each change
The Prime Vendor Program’s contract pharmacy self-audit has you locate the qualifying encounter in the medical record and, for referral prescriptions, the record showing your responsibility for the care.[8] For audit logistics, see how to prepare for a HRSA 340B audit; for who answers for a configuration error, see who is responsible for 340B compliance.
Matching set up to your policies, not a default
Your data, connected
Contract, in-house and specialty pharmacy data connects through our 10,000+ pharmacy network, direct integrations and our specialty pharmacy gateway, so claims arrive without manual spreadsheets.
Precise eligibility matching
We configure eligibility matching to your sites, providers and written policies, with referral capture beyond your walls and specialty referral and claims data brought into one platform.
Audit-ready, with a person to call
Every claim stays audit-ready, and a dedicated account manager helps when you test your setup or face an audit. We support 300 covered entities, 24 of them hospitals. The rebate module is Included for Aventi TPA clients; see the 2027 340B rebate model.
340B patient eligibility matching: common questions
Related pages
- How does a 340B TPA prevent diversion?
- Who is responsible for 340B compliance: TPA or covered entity
- How to prepare for a HRSA 340B audit
- How contract pharmacy setup works with a 340B TPA
- Duplicate discounts and the Medicaid Exclusion File
- What reporting a 340B TPA should provide
- What is a 340B TPA?
- The 2027 340B rebate model
- 340B TPA comparison
Sources
- 42 U.S.C. § 256b(a)(5)(B), prohibiting resale or transfer to a person who is not a patient (Cornell LII) — https://www.law.cornell.edu/uscode/text/42/256b
- Federal Register, Notice Regarding Section 602 of the Veterans Health Care Act of 1992, Patient and Entity Eligibility, 61 FR 55156 (Oct. 24, 1996), Definition of a Patient — https://www.govinfo.gov/content/pkg/FR-1996-10-24/html/96-27344.htm
- Federal Register, Notice Regarding 340B Drug Pricing Program—Contract Pharmacy Services, 75 FR 10272 (Mar. 5, 2010), essential element (h) and suggested contract provisions — https://www.federalregister.gov/documents/2010/03/05/2010-4755/notice-regarding-340b-drug-pricing-program-contract-pharmacy-services
- HHS Office of Inspector General, Contract Pharmacy Arrangements in the 340B Program, OEI-05-13-00431 (Feb. 2014), full report — https://oig.hhs.gov/documents/evaluation/2914/OEI-05-13-00431-Complete%20Report.pdf
- HRSA 340B FAQs (child sites, four-walls clinics, observation beds, discharge prescriptions, inpatient drugs, retroactive reclassification) — https://www.hrsa.gov/opa/faqs
- HRSA Office of Pharmacy Affairs, Registration (quarterly registration periods and start dates) — https://www.hrsa.gov/opa/registration
- 340B Prime Vendor Program (Apexus), Sample HRSA 340B Audit Data Request List for Covered Entities (updated Sept. 10, 2026) — https://www.340bpvp.com/Documents/Public/340B%20Tools/sample-hrsa-340b-audit-data-request-for-covered-entities.pdf
- 340B Prime Vendor Program (Apexus), Self-Audit: Contract Pharmacy — https://www.340bpvp.com/Documents/Public/340B%20Tools/self-audit-contract-pharmacy.docx
- National Association of Community Health Centers, Action Guide: Leveraging Health Center Referral Management Processes for 340B Referral Capture (Feb. 2023) — https://www.nachc.org/wp-content/uploads/2023/07/340B-Referral-Mgmt_February-2023.pdf
- 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
- HRSA Office of Pharmacy Affairs, Program Integrity (audit procedures) — https://www.hrsa.gov/opa/program-integrity
- Medicare.gov, Inpatient or outpatient hospital status affects your costs — https://www.medicare.gov/what-medicare-covers/what-part-a-covers/inpatient-or-outpatient-hospital-status
- HRSA, 340B Patient Definition Compliance Resources — https://www.hrsa.gov/opa/educational-resources/patient-definition-resources
- Genesis Health Care, Inc. v. Becerra, No. 4:19-cv-01531-RBH (D.S.C. Nov. 3, 2023), order on summary judgment — https://storage.courtlistener.com/recap/gov.uscourts.scd.250571/gov.uscourts.scd.250571.143.0.pdf
- Federal Register, 340B Drug Pricing Program Omnibus Guidance (proposed), 80 FR 52300 (Aug. 28, 2015), withdrawn January 2017 — https://www.federalregister.gov/documents/2015/08/28/2015-21246/340b-drug-pricing-program-omnibus-guidance
Last updated November 23, 2026. This page is general information, not legal advice. Check HRSA’s current guidance and your own counsel for your program.