The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Introduction to DOPE

DEA

This is a summary of the the drugs on the DEA website. It include drug class (i.e., stimulants, depressants, hallucinogens), categories (i.e., amphetamines, cocaine, barbiturates) and drug synonyms. Synonyms include brand/generic names (Adderall®, Vallium®, clonazepam) and street names (Apache, White Girl). Eventually the ontology needs to be expanded to add a grouping variable for related synonyms. For example, the generic clonazepam, the brand name Klonopin® and the street name k-pin all should be grouped with the general name clonazepam

Web Scrape

Two files, dea_factsheets.rda and dea_brands.rda, were created by scraping the “fact sheets” on the DEA website on September 10th 2020. The fact had 12 records added because the DEA slang file has additional “categories” (e.g., crack cocaine, mushrooms, PCP, etc.). These extra “categories” are problematic for the DEA ontology because they also include a specific brand name (i.e., ritalin) and two benzodiazepines (i.e., alprazolam, clonazepam). Eventually these need to be added as part of a “generic name” level in the ontology.

Fact Sheets

Class
cannabis
depressants
designer drugs
drugs of concern
hallucinogen
heroin
inhalant
narcotics (opioids)
steroids
stimulants

Drug Brands

PDFs

Two pdfs, with slang1 and controlled substances2 were download and processed to make slang.rda and controlled.rda.

Slang

Controlled Substances

Parsing the SUBSTANCES and names variables will be very difficult because the delimiters between drugs are not at all consistent.

DEA Summary

Figure 1 shows the DEA website drug ontology. Problematic entries shown with a red callout.

Figure 1 shows the DEA website drug ontology. Problematic entries shown with a red callout.

There are several things (in the black box) that need to be placed in the tree. Things with the red call out are inconsistencies.

No Slang

This is a summary of the the drugs on the no slang website.

Web Scrape

One file, noslang_street_names.rda , was created by scraping the Drug Slang Dictionary October 12th 2020.

IQVIA

Additional drugs found while processing data from IQVIA. Thanks to Edward Nunes M.D. for providing notes on how to better classify these drugs. This data introduced new classes such as reversal agents and treatment drugs.

drug_stop_words.rda

This is a vector of drug-specific stop words that have been observed while processing data from the aforementioned data sources. This vector is primarily used with the parse() function and is used to remove irrelevant words (i.e., “pills”, “syringe”) or strings such as units or dosages of drugs (i.e., “mg”).


  1. https://www.dea.gov/sites/default/files/resource-center/Publications/Intel%20Products/DIR-020-17%20Drug%20Slang%20Code%20Words.pdf↩︎

  2. https://www.deadiversion.usdoj.gov/schedules/orangebook/c_cs_alpha.pdf↩︎

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.