pharmac_hml_history
Monthly snapshots of the PHARMAC hospital medicines list from January 2011 to present (~323k rows).
Each row is tagged with time_frame (YYYY-MM). Useful for tracking the hospital formulary over time — additions, removals, and supply-status changes. Composite PK: (pharmacode, time_frame). New months appended monthly. Files 2011-2013 used the 'SectionH' naming convention but contain equivalent content. Source: PHARMAC HMLReporting / SectionHReporting XLSX archive. Licence: CC-BY 3.0 NZ.
Source: PHARMAC ↗ ·Last updated: 2026-11-01 ·Updated monthly ·1,665,738 rows
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key")
df <- eolas_get("pharmac_hml_history", start = "2020-01-01")
# pip install eolas-data
from eolas_data import Client
df = Client("your_key").get("pharmac_hml_history", start="2020-01-01")
curl "https://api.eolas.nz/v1/datasets/pharmac_hml_history/data?start=2020-01-01" \
-H "X-API-Key: your_key"
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
| Column | Type | Description |
|---|---|---|
| chemical | string | Chemical |
| presentation | string | Presentation |
| brand | string | Brand |
| pharmacode | string | Pharmacode |
| price | double | Price |
| per | string | Per |
| dv_limit | double | Dv limit |
| hss | string | Hss |
| tg1_category | string | Tg1 category |
| tg2_category | string | Tg2 category |
| tg3_category | string | Tg3 category |
| time_frame | string | Time frame |
| nzmt_ctpp_id | string | Nzmt ctpp ID |
| rules_apply | boolean | Rules apply |
| hss_pss | string | Hss pss |
| tg1 | string | Tg1 |
| tg2 | string | Tg2 |
| tg3 | string | Tg3 |
install.packages("eolas", repos = c("https://phildonovan.r-universe.dev", "https://cloud.r-project.org"))
library(eolas)
eolas_key("your_key_here")
df <- eolas_get("pharmac_hml_history")
head(df)
df <- eolas_get("pharmac_hml_history", start = "2020-01-01", end = "2024-12-31")
head(df)
df <- eolas_get("pharmac_hml_history")
write.csv(df, "pharmac_hml_history.csv", row.names = FALSE)
| Time Frame | Chemical | Presentation | Brand | Pharmacode | Price | Per | Dv Limit | Hss | Tg1 Category | Tg2 Category | Tg3 Category | Nzmt Ctpp Id | Rules Apply | Hss Pss | Tg1 | Tg2 | Tg3 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-11 | Abacavir sulphate | Oral liq 20 mg per ml | Any brand | 95832600 | 10740391000116107 | Infections | Antiretrovirals | Nucleoside Reverse Transcriptase Inhibitors | |||||||||
| 2026-11 | Abacavir sulphate | Tab 300 mg | Ziagen | 378038 | 180.00 | 60 tab | 50079501000117100 | Infections | Antiretrovirals | Nucleoside Reverse Transcriptase Inhibitors | |||||||
| 2026-11 | Abacavir sulphate with lamivudine | Tab 600 mg with lamivudine 300 mg | Abacavir/lamivudine Viatris | 2632365 | 35.00 | 30 tab | 0.05 | 50301251000117109 | PSS | Infections | Antiretrovirals | Nucleoside Reverse Transcriptase Inhibitors | |||||
| 2026-11 | Abciximab | Inj 2 mg per ml, 5 ml vial | Any brand | 92992500 | 10587581000116106 | True | Oncology Agents and Immunosuppressants | Immunosuppressants | Monoclonal Antibodies | ||||||||
| 2026-11 | Abiraterone acetate | Tab 250 mg | Zytiga | 2453517 | 4276.19 | 120 tab | 50143741000117101 | True | Oncology Agents and Immunosuppressants | Endocrine Therapy | Endocrine Therapy |
Showing 5 sample rows. Get an API key to access the full dataset.
No card needed. The trial covers this dataset through the API. Bulk Parquet/CSV downloads need Pro.
Start 14-day trial