Retrieves information about FDA-approved drug products from the official
Drugs at FDA database that match a specific drug name using the RESTful API
endpoint /drug/drugsfda.json?search=<drug_name>
.
This includes details such as the application number, sponsor name, approval dates, product information, application type (NDA, ANDA, BLA), and submission details for brand name drugs, generic drugs, and therapeutic biological products approved by the FDA since 1939.
Source
FDA Drugs at FDA Database via openFDA: https://open.fda.gov/apis/drug/drugsfda/
Value
A tibble with the following columns:
application_number
: FDA application number (NDA, ANDA, or BLA)sponsor
: Name of the company that holds the applicationbrand
: Brand or trade name of the approved productgeneric
: Generic (non-proprietary) name of the active ingredienttype
: Application type (NDA, ANDA, BLA)approval_date
: Date the product was approved by FDAstrength
: Dosage strength of the productform
: Pharmaceutical dosage formroute
: Route of administration
Details
This function sends a GET request to the FDA openFDA API. It supports caching via the memoise package to avoid redundant calls, and respects a rate limit between successive API requests.
The Drugs at FDA database contains information about drug products approved since 1939. The majority of labels, approval letters, and reviews are available for products approved since 1998. This database includes brand name drugs, generic drugs, and therapeutic biological products.
If the API request fails, returns no matches, or returns an error status code,
the function returns NULL
with an informative message.
Examples
if (interactive()) {
get_fda_drugs_approved("aspirin")
get_fda_drugs_approved("lipitor")
}