This document describes the web application FDA Adverse Event Reporting System Data Reviewer. Brief introduction is also available at http://rpubs.com/stomioka/FAERS
The data from FAERS are pulled from FAERS database using Elasticsearch-based API. The API can be used not only for FAERS but drug labels, recall data as well as devices and foods.
The FDA Adverse Event Reporting System (FAERS) is a database that contains adverse event reports, medication error reports and product quality complaints resulting in adverse events that were submitted to FDA. The database is designed to support the FDA's post-marketing safety surveillance program for drug and therapeutic biologic products. The informatic structure of the FAERS database adheres to the international safety reporting guidance issued by the International Conference on Harmonisation (ICH E2B). Adverse events and medication errors are coded using terms in the Medical Dictionary for Regulatory Activities (MedDRA) terminology.
FAERS is a useful tool for FDA for activities such as looking for new safety concerns that might be related to a marketed product, evaluating a manufacturer's compliance to reporting regulations and responding to outside requests for information. The reports in FAERS are evaluated by clinical reviewers, in the Center for Drug Evaluation and Research (CDER) and the Center for Biologics Evaluation and Research (CBER), to monitor the safety of products after they are approved by FDA. If a potential safety concern is identified in FAERS, further evaluation is performed. Further evaluation might include conducting studies using other large databases, such as those available in the Sentinel System. Based on an evaluation of the potential safety concern, FDA may take regulatory action(s) to improve product safety and protect the public health, such as updating a product’s labeling information, restricting the use of the drug, communicating new safety information to the public, or, in rare cases, removing a product from the market.
- There is no certainty that the reported event (adverse event or medication error) was due to the product. FDA does not require that a causal relationship between a product and event be proven, and reports do not always contain enough detail to properly evaluate an event.
- FDA does not receive reports for every adverse event or medication error that occurs with a product. Many factors can influence whether an event will be reported, such as the time a product has been marketed and publicity about an event.
- There are also duplicate reports where the same report was submitted by a consumer and by the sponsor. Therefore, FAERS data cannot be used to calculate the incidence of an adverse event or medication error in the U.S. population.
The web application, FDA Adverse Event Reporting System Data Reviewer, uses elasticsearch based API using openFDA library.
Here is the sample call
example<-fda_query("/drug/event.json") %>%
fda_filter("patient.drug.openfda.generic_name","ibuprofen" ) %>%
fda_filter("patient.drug.drugcharacterization", "1") %>% #1=Suspect, (the drug was considered by the reporter to have interacted with the suspect drug)
fda_count("patient.patientsex") %>%
fda_limit(1000) %>%
fda_exec()
print(example)
Above shows r example[1,2]
female subjects, and r example[2,2]
male subjects, reported adverse event to FAERS.
The API has 1000 records limit. Therefore, the app may not show all the records in the FAERS. When the number of records of the table is 1000, the table is mostlikely displaying the first 1000 records of the database search results.The app can be further enhanced to provide more data and visualization.
The web application could include more data point and data visualizations. FAERS returns error when the search does not have any results. This would stop execution of the rest of the search in the loop. It can be addressed.