Prescription Drug Purchase Trends

This dataset provides detailed, transaction-level records of prescription drug purchases across multiple pharmacies, including information on drugs, pharmacies, prescribers, and patient demographics. It is ideal for analyzing purchase trends, forecasting demand, optimizing inventory, and supporting public health research or regulatory oversight. The dataset's granularity enables deep insights into drug utilization patterns and supply chain efficiency.

  • last updated 22 Jul 2025
  • by GoMask
The brief that made it

Forecasting prescription drug demand and optimizing pharmacy inventory

Sample rows

preview · 8 of 200 rows · all 22 columns
purchase_idstringpayment_methodstringunit_pricefloatprescription_requiredbooleanprescriber_specialtystringpharmacy_idstringpharmacy_namestringpharmacy_street_addressstringpharmacy_citystringpharmacy_statestringpharmacy_postal_codestringpharmacy_countrystringdrug_idstringdrug_namestringdrug_strengthstringdrug_formstringpurchase_datedatequantity_purchasedintegertotal_pricefloatprescriber_idstringpatient_ageintegerpatient_genderstring
PX001insurance0.34trueCardiologistPH1001Metro City Pharmacy101 Main St.BostonMA02109USAD001Atorvastatin20mgtablet2024-03-139030.6PR100167male
PX002insurance0.21trueGeneral PractitionerPH2022Healthwise Drugs501 Elm St.PhoenixAZ85001USAD002Amoxicillin500mgcapsule2024-01-29142.94PR100241female
PX003insurance0.17trueEndocrinologistPH5555Sun Valley Meds222 Sunflower Blvd.San JoseCA95112USAD003Metformin500mgtablet2023-12-156010.2PR100359female
PX004cash0.08falseblankPH3099Evergreen Pharmacy11 Oak Ave.ChicagoIL60602USAD004Ibuprofen200mgtablet2024-04-10241.92blank35male
PX005insurance0.19trueCardiologistPH4044Rx Solutions4500 Market St.MiamiFL33101USAD005Lisinopril10mgtablet2024-03-07305.7PR100473female
PX006insurance0.15trueEndocrinologistPH1001Metro City Pharmacy101 Main St.BostonMA02109USAD006Levothyroxine75mcgtablet2023-10-189013.5PR100548female
PX007insurance0.32trueHematologistPH8888Good Health Meds7000 King Rd.TorontoONM5V 2T6CanadaD007Warfarin5mgtablet2023-09-15309.6PR100678male
PX008credit_card0.13falseblankPH2022Healthwise Drugs501 Elm St.PhoenixAZ85001USAD008Cetirizine10mgtablet2024-02-18141.82blank23female

What the 200 rows show

from the 200-row sample

Insurance (payment method) stands out: 138 of its 138 rows have prescription_required = true, against 10 of 62 for the rest.

  • 74%prescription_required = true
  • 0.26median unit_price
  • 3pharmacy countries
  • 4patient genders
  • 5drug forms
  • 20pharmacy states
Prescription required rate by payment_methodprescription_required = true
0%50%100%0%cash0 of 2629%credit_c…10 of 35100%insurance138 of 1380%other0 of 1
unit_price200 rows, in bands of 2,000
0100200197000000308,00016kunit_price →

Median 0.26, from 0.06 to 15,000.

prescriber_specialty148 rows with a value · 52 left blank
  1. Cardiologist30
  2. General Practitioner30
  3. Endocrinologist22
  4. Pain Specialist14
  5. Allergist12
  6. Pulmonologist10
  7. Pediatrician8
  8. Gastroenterologist8
  9. Hematologist5
  10. Urologist5
22 columns by typefrom the column list below
  • string 16
  • integer 2
  • float 2
  • date 1
  • boolean 1

Columns

22 columns in four groups
blueprint · 22 columns
columntypedescriptionexample
Text 16 columns
purchase_idstringUnique identifier for each prescription drug purchase transaction.uniquePX001
pharmacy_idstringUnique identifier for the pharmacy where the purchase was made.PH1001
pharmacy_namestringName of the pharmacy where the purchase occurred.Metro City Pharmacy
pharmacy_street_addressstringStreet address of the pharmacy.101 Main St.
pharmacy_citystringCity where the pharmacy is located.Boston
pharmacy_statestringState or province of the pharmacy location.MA
pharmacy_postal_codestringPostal or ZIP code of the pharmacy.02109
pharmacy_countrystringCountry where the pharmacy is located.3 countriesUSA
drug_idstringUnique identifier for the prescription drug.D001
drug_namestringBrand or generic name of the prescription drug.Atorvastatin
drug_strengthstringStrength or dosage of the drug (e.g., 500mg, 10ml).optional20mg
drug_formstringForm of the drug (e.g., tablet, capsule, syrup, injection).5 forms · optionaltablet
prescriber_idstringUnique identifier for the prescribing healthcare provider (if applicable).optionalPR1001
prescriber_specialtystringMedical specialty of the prescriber (e.g., General Practitioner, Cardiologist).12 specialties · optionalCardiologist
patient_genderstringGender of the patient (if available).male · female · other · unknown · optionalmale
payment_methodstringMethod of payment used for the purchase (e.g., cash, credit_card, insurance, other).cash · credit_card · insurance · other · optionalinsurance
Numbers 4 columns
quantity_purchasedintegerNumber of units of the drug purchased in the transaction.1 or more90
unit_pricefloatPrice per unit of the drug at the time of purchase.0 or more0.34
total_pricefloatTotal price paid for the purchased quantity (quantity_purchased * unit_price).0 or more30.6
patient_ageintegerAge of the patient at the time of purchase (if available).0 or more · optional67
Dates and times 1 column
purchase_datedateDate when the prescription drug was purchased.2024-03-13
True or false 1 column
prescription_requiredbooleanIndicates if a prescription was required for this drug purchase.true

Use it for

  • prescription r…74%148 of 200 rowsmean unit price by pa…0.12cash4.0cred…334.9insu…0.19other

    A healthcare dashboard

    The prescription_required rate, unit_price by payment_method and a breakdown of prescriber_specialty. Excel, Power BI or Tableau.

  • Why do 148 of 200 rows have prescription_required = true?

    A root-cause class exercise

    Hand out the rows and one question. The answer is in the data, not in the brief.

  • A software demo

    Believable purchases with pharmacy_id, pharmacy_name and pharmacy_street_address to fill a screen in front of a buyer.

Not quite right?

Make it yours.

Same 22 columns, your size and your rules. See 20 rows before you pay.

Preview 20 rows free

1,000 rows: $1.99 · 10,000: $12.99One-time. No subscription. All prices

This dataset200 rows22 columns
Yours1,000 rows22 columnspharmacy_street_address: UK only

blueprint · prescription-drug-purchase-trends

Behind this dataset

Same schema. As many rows as you need.

These 200 rows came out of a blueprint — 22 columns with generation rules behind each one. Open it in Data Factory to retune a column, add your own, wire in foreign keys, and run it at the size you actually need.

Rules it was built with
  • Each row captures a unique transaction
  • Includes drug name, category, quantity, and price
  • Contains anonymized customer demographic
  • Tracks refill vs new prescription
  • Excludes over-the-counter medicines
Rows
Open the blueprint in Data Factory

1 credit per row. Preview 20 rows free. Buy rows for the full run.

Exports
CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
Licence
yours to use, including commercially
API slug
prescription-drug-purchase-trends

What should your data show?

Preview 20 rows free
No signup. No card.