diff --git a/articles/openFDA.html b/articles/openFDA.html index 55ef364..a1bbf4d 100644 --- a/articles/openFDA.html +++ b/articles/openFDA.html @@ -304,19 +304,19 @@
openFDA()
construct the search term
diff --git a/articles/using_openFDA.html b/articles/using_openFDA.html
index 48e56c6..b4a0e9c 100644
--- a/articles/using_openFDA.html
+++ b/articles/using_openFDA.html
@@ -142,136 +142,19 @@
openfda_EPCs
-#> [1] "GLP-1 Receptor Agonist"
-#> [2] "Angiotensin 2 Receptor Blocker"
-#> [3] "Thiazide Diuretic"
-#> [4] "Potassium-sparing Diuretic"
-#> [5] "Dietary Cholesterol Absorption Inhibitor"
-#> [6] "Insulin Analog"
-#> [7] "Dihydropyridine Calcium Channel Blocker"
-#> [8] "Angiotensin Converting Enzyme Inhibitor"
-#> [9] "Sulfonylurea"
-#> [10] "Loop Diuretic"
+#> [1] "Thiazide Diuretic"
+#> [2] "Dihydropyridine Calcium Channel Blocker"
+#> [3] "Angiotensin 2 Receptor Blocker"
+#> [4] "Angiotensin Converting Enzyme Inhibitor"
+#> [5] "Peroxisome Proliferator Receptor alpha Agonist"
+#> [6] "Peroxisome Proliferator Receptor gamma Agonist"
+#> [7] "Thiazolidinedione"
+#> [8] "Thiazide-like Diuretic"
+#> [9] "Potassium-sparing Diuretic"
+#> [10] "Sulfonylurea"
#> [11] "HMG-CoA Reductase Inhibitor"
-#> [12] "Dipeptidyl Peptidase 4 Inhibitor"
-#> [13] "Thiazide-like Diuretic"
-#> [14] "Aldosterone Antagonist"
-#> [15] "Sodium-Glucose Cotransporter 2 Inhibitor"
-#> [16] "PCSK9 Inhibitor"
-#> [17] "Adenosine Triphosphate-Citrate Lyase Inhibitor"
-#> [18] "Calcium Channel Blocker"
Of these drugs, the following are of interest:
fda_generics <- c("pitavastatin", "lovastatin",
@@ -443,14 +331,14 @@ Compare new generic names to BNF
more_brand_names[1:3]
#> $pitavastatin
-#> [1] "pitavastatin" "livalo" "zypitamag"
-#> [4] "nikita" "pitavastatin calcium"
+#> [1] "pitavastatin" "pitavastatin calcium" "livalo"
+#> [4] "zypitamag" "nikita"
#>
#> $lovastatin
#> [1] "lovastatin" "altoprev"
#>
#> $chlorothiazide
-#> [1] "chlorothiazide sodium" "chlorothiazide" "diuril"
An httr2
response object from httr2::req_perform()
. You can use
httr2::resp_body_json()
to extract JSON data from the response.
Kass-Hout TA, Xu Z, Mohebbi M, Nelsen H, Baker A, LEvine J, Johansen E, +Bright RA. OpenFDA: an innovative platform providing access to a wealth of +FDA's publicly available data J Am Med Inform Assoc 2016, +23(3):596-600. doi:10.1093/jamia/ocv153