Abstract
Pharmaceutical supply chains are critical to public health and economic stability, yet the data describing their structure and evolution remain fragmented, limiting the ability to anticipate disruptions and inform policy. Here, we present PharmaTRACE, a harmonized longitudinal dataset of Canadian pharmaceutical import and export trade flows spanning 1988-2026. The dataset spans all pharmaceutical commodities (over 1.76 million trade records) with provincial-level import destinations and export origins, country-level trade partners, and for U.S. records, state-level resolution. To support longitudinal analyses, PharmaTRACE includes a curated HS-code concordance resource that harmonizes evolving pharmaceutical commodity classifications across multiple decades, enabling continuity of trade analyses despite revisions to international and Canadian tariff nomenclature. The Pharma-TRACE web application integrates scalable data infrastructure (Parquet, DuckDB) with interactive visualization, statistical comparison, and forecasting methods, enabling efficient exploration of high-dimensional trade data. Built-in analytical tools include distributional statistics, nonparametric divergence measures, time-series trend analysis, and multiple PharmaTRACE forecasting approaches, including ARIMA, factor-based models, and random forest regression, alongside nonlinear dimensionality reduction methods (t-SNE, UMAP) to reveal structural patterns in international trade. By unifying heterogeneous trade records into a single extensible dataset, this resource provides researchers across supply chain analytics, public health, economics, and operations research with a data-driven foundation for identifying supply dependencies and improving resilience in an increasingly uncertain global trade environment. This resource is transformative for understanding how pharmaceutical trade shapes supply chain resilience, public health preparedness, and economic stability, and for studying the historical evolution of global pharmaceutical import/export supply networks for Canada.