The goal of promedreadr
is to provide a simple tool for collecting
information from https://pro.medicin.dk, a key reference on medicines
marketed in Denmark.
Note that the package is not yet “production ready”, especially it doesn’t yet honour robots.txt (improvement is underway and will be up shortly.)
Please use this package thoughtfully as web-scraping can lead to e.g. copyright infringement. If in doubt, please contact the team behind medicin.dk.
library(promedreadr)
atc_codes <- c(Quetiapine = "N05AH04",
Lithium = "N05AN01")
product_urls <- extract_product_urls(atc_codes)
all_ade_tables <- fetch_ade_tables(product_urls)
combined_ade_tables <- reconcile_ade_tables(all_ade_tables)
combined_ade_tables
#> $Quetiapine
#> # A tibble: 70 × 2
#> frequency side_effects
#> <fct> <chr>
#> 1 Meget almindelige (> 10 %) Anæmi
#> 2 Meget almindelige (> 10 %) Mundtørhed
#> 3 Meget almindelige (> 10 %) Abstinenser*
#> 4 Meget almindelige (> 10 %) Svimmelhed
#> 5 Meget almindelige (> 10 %) Nedsat HDL
#> 6 Meget almindelige (> 10 %) Vægtøgning
#> 7 Meget almindelige (> 10 %) Hyperkolesterolæmi
#> 8 Meget almindelige (> 10 %) Hypertriglyceridæmi
#> 9 Meget almindelige (> 10 %) Ekstrapyramidale gener
#> 10 Meget almindelige (> 10 %) Hovedpine
#> # … with 60 more rows
#>
#> $Lithium
#> # A tibble: 55 × 2
#> frequency side_effects
#> <fct> <chr>
#> 1 Meget almindelige (> 10 %) Vægtøgning
#> 2 Meget almindelige (> 10 %) Nefrogen diabetes insipidus
#> 3 Almindelige (1-10 %) Hypertyroidisme
#> 4 Almindelige (1-10 %) Hypotyroidisme
#> 5 Almindelige (1-10 %) Struma
#> 6 Almindelige (1-10 %) Abdominalsmerter
#> 7 Almindelige (1-10 %) Diarré
#> 8 Almindelige (1-10 %) Kvalme
#> 9 Almindelige (1-10 %) Eeg-forandringer
#> 10 Almindelige (1-10 %) Ekg-forandringer
#> # … with 45 more rows
promedreadr
isn’t yet on CRAN, but you can install it easily directly
from GitHub with:
# install.packages("devtools") # if not already installed
remotes::install_github("epiben/promedreadr")
We use the GitHub issue tracker for all bugs/issues/enhancements
promedreadr
is licensed under the MIT licence.
promedreadr
is developed in RStudio and maturing under active
development.
The package maintainer received funding from Innovation Fund Denmark (5153-00002B) and the Novo Nordisk Foundation (NNF14CC0001).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.