Skip to contents

Retrieves detailed information on all active ingredients listed in the Health Canada Drug Product Database (DPD) through the RESTful API endpoint /drug/activeingredient.

Each record corresponds to a specific active ingredient within a registered drug product, including concentration, unit, and dosage details (if available).

Usage

get_hc_active_ingredients()

Source

Health Canada Drug Product Database (DPD) API: https://health-products.canada.ca/api/documentation/dpd-documentation-en.html

Value

A tibble with the following columns:

  • dosage_unit: Unit of dosage form (e.g., "ML", "

  • dosage_value: Numeric dosage quantity (e.g., "100")

  • drug_code: Unique code identifying the drug product

  • ingredient_name: Name of the active ingredient

  • strength: Strength or concentration value (e.g., "50", "0.05")

  • strength_unit: Unit of the strength (e.g., "MG", "G", "

Details

The function sends a GET request to the Health Canada DPD API. It uses memoisation via the memoise package to cache results and includes a rate limit delay between API requests.

Missing values are retained as empty strings (""), preserving the original schema of the API.

Note

Requires an active internet connection.

See also

Examples

# \donttest{
  # This function requires an internet connection and downloads data from Health Canada
  get_hc_active_ingredients()
#> # A tibble: 119,987 × 6
#>    dosage_unit dosage_value drug_code ingredient_name     strength strength_unit
#>    <chr>       <chr>            <int> <chr>               <chr>    <chr>        
#>  1 ""          ""                  77 BETAINE HYDROCHLOR… 113      MG           
#>  2 ""          ""                  77 DIASTASE            32       MG           
#>  3 ""          ""                  77 PAPAIN              32       MG           
#>  4 ""          ""                  77 PEPSIN              16       MG           
#>  5 ""          ""                  77 LIPASE              65       MG           
#>  6 ""          ""                  77 OX BILE EXTRACT     32       MG           
#>  7 "CH"        ""                7797 SABINA              3        CH           
#>  8 "CH"        ""                7937 VERTEBRA            3        CH           
#>  9 "CH"        ""                7997 SILVER              4        CH           
#> 10 ""          ""                 118 RESERPINE           0.1      MG           
#> # ℹ 119,977 more rows
# }