Q-01
Patent horizon
“Which active ingredients have listed patent expirations in the next 24 months? Group by ingredient and show every underlying application and patent row.”
IntuitionLabs is now a member of the Claude Partner Network – AI training and upskilling with Claude for pharma and biotech. Book a call.
DWG 00 · PUBLIC DATA ANALYSIS BLUEPRINT · REV 1.0
No custom application. No database setup. No SQL required. Download the public files from FDA, attach them to an AI assistant, ask your question, and validate the work.
Retirement note · FDAcharts
FDAcharts was a demo of natural language → SQL → Orange Book charts. General-purpose AI assistants can now analyze the source files directly, so the demo has been retired and replaced by this reproducible guide.
FDA
ZIP
UNZIP
3 TXT
UPLOAD
AI CHAT
VERIFY
ANSWER
General note: plausible output is not validated output. Preserve the model's code, assumptions, and source rows.
DWG 01 · PROCEDURE
Open the official Orange Book Data Files page, download the current compressed file, and unzip it. Start from FDA each time so your analysis is tied to the current release.
Attach Products.txt, Patent.txt, and Exclusivity.txt to a new ChatGPT or Claude conversation. They are tilde-delimited text files, not ordinary comma-separated CSVs.
Tell the model what decision or question you are exploring. First require a file and column inventory, date parsing checks, and a proposed analysis plan.
Review the joins, row counts, filters, duplicate handling, and generated code. Spot-check important records against the official Orange Book Search.
| Item | File | Use it for |
|---|---|---|
| 01 | Products.txt | Products, ingredients, dosage forms, applicants, application identifiers, approval dates, RLD/RS and TE fields |
| 02 | Patent.txt | Listed patents, expiration dates, use codes, claim flags, delist-request flags and submission dates |
| 03 | Exclusivity.txt | Exclusivity codes and expiration dates associated with application products |
FDA describes all three as ASCII text files delimited by a tilde (~). The durable starting point is the FDA data-files page, which also defines every field.
Scope note A · What it covers
The Orange Book's formal title is Approved Drug Products with Therapeutic Equivalence Evaluations. FDA describes it as a source for drug products approved on the basis of safety and effectiveness, together with therapeutic-equivalence evaluations and related patent and exclusivity information. That makes it useful for questions about applications, products, ingredients, dosage forms, routes, applicants, reference status, listed patents, and exclusivity records.
Read FDA's Orange Book overview ↗Scope note B · What it does not prove
These files do not contain the full regulatory history, current labeling, clinical evidence, litigation posture, supply status, commercial strategy, or every event that may affect market entry. A patent or exclusivity expiration date is a reported data point, not a prediction that a generic will launch on that day. Phrase conclusions narrowly, keep the download date with the result, and consult the current FDA record and appropriate specialists for consequential decisions.
DWG 02 · CONTROL PROMPT
A vague prompt invites a polished guess. This prompt forces the assistant to inspect the data's grain, parsing, joins, and exceptions before it calculates anything.
Operating instruction
Paste the prompt after attaching the files. Replace the final bracketed line with your question. Continue in the same conversation so corrections retain the file context.
Ask for code even if you never intend to write code. It is the shortest audit trail between the question and the answer.
You are analyzing the current FDA Orange Book data files I attached. Before answering my question: 1. Inventory every file, delimiter, column, row count, and date field. 2. Explain what one row represents in each file. 3. Do not assume joins. Propose and test the composite join keys first. 4. Report duplicate keys, unmatched rows, nulls, and unparseable dates. 5. State whether each result counts rows, products, applications, patents, or exclusivities. For every answer: - cite the source file(s) and column(s); - show the filters and date assumptions; - show the SQL or code used; - include the underlying records or a reproducible result table; - flag uncertainty instead of filling gaps. My question is: [REPLACE WITH YOUR QUESTION]
DWG 03 · EXAMPLE QUERIES
Q-01
“Which active ingredients have listed patent expirations in the next 24 months? Group by ingredient and show every underlying application and patent row.”
Q-02
“Compare annual NDA and ANDA product approvals. Explain whether you are counting applications, products, or rows, and exclude non-date approval values explicitly.”
Q-03
“For each applicant, count distinct applications, products, listed patents, and unexpired exclusivities. Show the join cardinality and rank the top 20.”
Q-04
“Show the most common dosage form and route combinations by ingredient, separating prescription, OTC, and discontinued products.”
Q-05
“Summarize unexpired exclusivity codes by year and ingredient. Keep the code as reported and link each aggregate back to its underlying application products.”
Q-06
“Profile all three files: row counts, null rates, duplicate composite keys, unparseable dates, unmatched joins, and fields whose values need interpretation.”
Detail B · Under the hood
The assistant may load the files into Python, a dataframe, SQLite, DuckDB, or another analysis environment, then parse, join, filter, group, and chart the records. You no longer need to hand-write the SQL, but asking to see the code remains essential when the result matters.
DWG 04 · QUALITY CONTROL
Record when you downloaded the files. FDA says the downloadable data are updated monthly.
Confirm the model parsed the files with a tilde (~), not a comma or tab.
Define what one row represents in each file before counting anything.
Use the application type, application number, and product number together; inspect one-to-many matches.
Keep approval dates, patent expiration dates, exclusivity dates, and patent submission dates distinct.
Ask for both total rows and distinct products/applications so duplicated joins are visible.
Require source file names, columns, filters, and generated code or SQL with every substantive answer.
Verify a sample of important records in the official FDA search before using the result.
DWG 05 · TOOL SELECTION
Either is a reasonable starting point. Use the assistant already approved for your work, and judge the analysis by its reproducibility rather than the logo above the chat.
Tool A
OpenAI documents attaching data files, inspecting columns, running calculations, and creating visualizations. Ask it to preserve the code and export a result table alongside its narrative.
Tool B
Anthropic documents TXT and CSV uploads, among other file types. Ask Claude to use code execution when available and to return its assumptions, code, and intermediate checks.
File capabilities and limits vary by product, plan, model, and date. Check the linked product documentation if an upload is rejected. Do not add confidential company data unless your approved environment and policy allow it.
DWG 06 · RFI REGISTER
No. ChatGPT and Claude can inspect the files and perform the filtering, joining, aggregation, and charting from natural-language instructions. For important work, ask the model to show the SQL or code it used so the analysis can be reviewed.
The FDA download currently unpacks into Products.txt, Patent.txt, and Exclusivity.txt. Upload all three when your question crosses product, patent, and exclusivity data. A product-only question may need only Products.txt.
Treat it as an analysis draft, not a verified fact. Require the model to report source files, columns, row counts, filters, join keys, and duplicate handling. Then spot-check material findings in the official FDA Orange Book Search.
FDAcharts demonstrated natural-language-to-SQL analysis of Orange Book data. General-purpose AI assistants can now work directly with the public files, making a dedicated demo unnecessary. This guide preserves the useful workflow without maintaining a separate application.
No. Patent and exclusivity data are useful research inputs, but they do not by themselves predict the timing of generic approval or launch. Legal, regulatory, commercial, and product-specific factors can all affect timing.
No. This is an educational data-analysis workflow. Use current official FDA records and qualified regulatory, medical, or legal review for decisions that carry material consequences.
Primary references
Published 2026-07-21 · Source links checked 2026-07-21 · Educational use only · FDAcharts application retired
© 2026 IntuitionLabs. All rights reserved.