See the Aventi 340B Rebate Model Demo.
340B TPA FAQ

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]

From guidance to rules

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 definitionData that shows itTypical matching rule
You have a relationship with the person and keep records of their careVisit (encounter) records from your EHR or practice management system, with a patient identifier such as the medical record numberThe 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 youPrescriber roster (name, NPI, employed or contracted, start and end dates) plus referral recordsThe 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 scopeThe 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]

Inputs

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]

The match is only as good as the freshest feed. A roster that lags a new hire by a month, or a site list missing a new clinic, changes the result for every claim it touches.

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

Referral records

Your outgoing referral and the outside provider’s report back: treating provider, services provided, medications prescribed.[8][9]

Shows: That responsibility for care stayed with you when an outside provider wrote the prescription

Pharmacy claims

From contract and in-house pharmacies: prescribing location, dispensing pharmacy, date written, fill date, drug and NDC, quantity, prescriber, payer.[3][4][7]

Shows: What was actually dispensed, to whom and when; this is what the other feeds are matched against

Configuration

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]

Scenario 1

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
Scenario 2

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
Scenario 3

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
Scenario 4

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.

Lookback windows

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

60 daysafter the most recent visit
12 monthsafter the most recent visit
No limitany prior visit

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?
Referral capture

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]

  1. 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]

  2. 02

    The patient sees the outside provider

    Your care coordination staff track the open referral until the appointment happens.[9]

  3. 03

    The report comes back into your record

    It should name the treating provider, describe the services and list the medications prescribed.[9]

  4. 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]

  5. 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]

Hospitals

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.

Unmatched claims

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 missUsual causeFix
Prescriber not on the rosterA 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 windowThe 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 reportThe 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 locationA 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 mismatchName, 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 unclearAdmission, 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.

Policies and testing

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.

How Aventi helps

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.

FAQ

340B patient eligibility matching: common questions

It is the process a TPA uses to decide whether each prescription filled at a pharmacy belongs to a patient of the covered entity. The TPA compares the claim with the entity’s own data, such as patient visits, eligible prescribers, registered sites and referral records, and applies the rules in the entity’s policies.[2][4]

Most often a patient list or visit (encounter) data and a prescriber list with NPIs. Many entities also send eligible site lists, referral records and, for hospitals, patient status data. OIG found some entities also share clinical information such as diagnosis and procedure codes, or e-prescribing data.[4][7]

It is the time after a patient’s most recent visit during which a prescription still counts as 340B eligible. Neither the statute nor the 1996 patient definition sets a number of days. OIG found entities using 60 days, 12 months or no limit. Pick a window that fits how your patients are cared for, write it in your policies and apply it the same way everywhere.[1][2][4]

They can be, when the person is your patient and responsibility for the care stays with you, for example a referral for consultation. Keep the referral and the outside provider’s report in your record. NACHC recommends the report name the treating provider, describe the services and list the medications prescribed.[2][8][9]

It depends on the rule you set. In OIG’s review, one entity counted every prescription from anyone on its prescriber list, another listed only prescribers who worked exclusively for it, and a third flagged part-time prescribers and reviewed those claims by hand. Whatever you choose, the patient still has to meet the patient definition.[2][4]

HRSA says 340B drugs can be used for discharge prescriptions to the extent they are for outpatient use, depending on the conditions of the individual’s care. The hospital should be able to explain why it is responsible for the outpatient use and keep auditable records.[5]

They are left out of 340B or queued for review, depending on your settings. OIG found some administrators queue claims for the covered entity’s staff to review by hand. Common near misses are a prescriber missing from the roster, a visit outside the window, a missing consult report or a clinic that isn’t registered yet.[4]

Follow your written policy and keep an audit trail. 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 the process transparent, and credit and rebill only within the wholesaler’s allowed timeframe.[5]

The covered entity. HRSA’s contract pharmacy guidance says the entity has to have a system to verify patient eligibility and stays responsible for compliance. HRSA recommends written procedures for reviewing the eligibility system used at contract pharmacies, with quarterly internal and annual independent audits.[3][10]

Sources

  1. 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
  2. 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
  3. 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
  4. 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
  5. HRSA 340B FAQs (child sites, four-walls clinics, observation beds, discharge prescriptions, inpatient drugs, retroactive reclassification) — https://www.hrsa.gov/opa/faqs
  6. HRSA Office of Pharmacy Affairs, Registration (quarterly registration periods and start dates) — https://www.hrsa.gov/opa/registration
  7. 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
  8. 340B Prime Vendor Program (Apexus), Self-Audit: Contract Pharmacy — https://www.340bpvp.com/Documents/Public/340B%20Tools/self-audit-contract-pharmacy.docx
  9. 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
  10. 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
  11. HRSA Office of Pharmacy Affairs, Program Integrity (audit procedures) — https://www.hrsa.gov/opa/program-integrity
  12. 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
  13. HRSA, 340B Patient Definition Compliance Resources — https://www.hrsa.gov/opa/educational-resources/patient-definition-resources
  14. 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
  15. 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.