Sample prescriptions data
Medication prescriptions with drug details, dosing, and pharmacy information
Free to download, no account needed for the 1k-row files below.
A free account gets you up to 10k rows; the larger files are on the paid plans.
This is synthetic data: it looks realistic and refers to nobody, so it
carries none of the data-protection risk of copying production records into a test system.
Downloads
| Size | Format | Locale |
|---|---|---|
| 1k rows | csv | de_DE en_GB en_US es_ES fr_FR ja_JP |
| 1k rows | jsonl | de_DE en_GB en_US es_ES fr_FR ja_JP |
| 1k rows | parquet | de_DE en_GB en_US es_ES fr_FR ja_JP |
| 10k rows | csv | free account (6 locales) |
| 10k rows | jsonl | free account (6 locales) |
| 10k rows | parquet | free account (6 locales) |
| 100k rows | csv | Basic plan (6 locales) |
| 100k rows | jsonl | Basic plan (6 locales) |
| 100k rows | parquet | Basic plan (6 locales) |
| 500k rows | csv | Basic plan (2 locales) |
| 500k rows | jsonl | Basic plan (2 locales) |
| 500k rows | parquet | Basic plan (2 locales) |
| 1M rows | csv | Pro plan (2 locales) |
| 1M rows | jsonl | Pro plan (2 locales) |
Columns
| Column | Type | |
|---|---|---|
id | id | always set |
rx_number | sequence | always set |
patient_id | foreign_key | always set |
encounter_id | foreign_key | optional |
medication_name | zipfian_choice | always set |
drug_class | constant | always set |
ndc_code | regex | always set |
strength | weighted_choice | always set |
dosage_form | weighted_choice | always set |
route | weighted_choice | always set |
frequency | weighted_choice | always set |
quantity | weighted_choice | always set |
days_supply | weighted_choice | always set |
refills_authorized | weighted_choice | always set |
refills_remaining | integer | always set |
prescriber_name | name | always set |
prescriber_npi | regex | always set |
prescriber_dea | regex | optional |
pharmacy_name | weighted_choice | always set |
pharmacy_npi | regex | always set |
daw_code | weighted_choice | always set |
is_controlled | weighted_choice | always set |
schedule | weighted_choice | always set |
written_date | date | always set |
filled_date | date | optional |
expiration_date | date | always set |
instructions | weighted_choice | always set |
status | weighted_choice | always set |
notes | sentence | optional |
created_at | datetime | always set |
updated_at | datetime | always set |
Related tables — they join
These tables are generated together, so the keys below match across files. Download the same size, format and locale of each and a JOIN returns rows, not nothing.
| Table | Join on |
|---|---|
| Encounters | prescriptions.encounter_id → encounters.id |
| Patients | prescriptions.patient_id → patients.id |
Need more rows, or your own columns?
Paid plans
Basic £15/month. Datasets up to 500,000 rows and generation up to 100,000.
Pro £39/month. Datasets up to 10,000,000 rows and generation up to 1,000,000.
Generation builds this table, or a schema of your own, at the row count and locale you choose.