Pharmacy Retail Purchase Events
This dataset provides detailed, line-level records of pharmacy retail purchase events, including both over-the-counter and prescription medications. Each record captures transaction details, customer demographics (where available), product specifics, payment method, and prescription information, enabling comprehensive analysis of purchasing patterns, health trends, and market basket behaviors.
Sample rows
preview · 8 of 200 rows · all 25 columns| transaction_idstring | payment_methodstring | quantityinteger | prescription_flagboolean | insurance_providerstring | transaction_datetimedatetime | store_idstring | store_namestring | store_citystring | store_statestring | store_postal_codestring | store_countrystring | customer_idstring | customer_ageinteger | customer_genderstring | product_idstring | product_namestring | product_categorystring | product_formstring | product_strengthstring | unit_pricefloat | total_pricefloat | discount_appliedfloat | prescriber_idstring | prescription_numberstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TXN000001 | credit_card | 2 | false | blank | 2023-04-12T10:15:32 | PH101 | RxMart Downtown | New York | NY | 10001 | USA | CUST10001 | 34 | female | OTC10001 | Vitamin D3 Gummies | supplement | gummy | 1000IU | 7.99 | 15.98 | 0 | blank | blank |
| TXN000002 | cash | 1 | false | blank | 2023-07-18T17:03:41 | PH102 | CareFirst Pharmacy | Los Angeles | CA | 90017 | USA | blank | blank | unknown | OTC10002 | Ibuprofen Tablets | analgesic | tablet | 200mg | 3.49 | 3.49 | 0 | blank | blank |
| TXN000003 | insurance | 60 | true | Medicare | 2022-12-23T14:21:12 | PH103 | MediQuick Central | Chicago | IL | 60603 | USA | CUST10002 | 67 | male | PRESC1001 | Metformin HCl | antidiabetic | tablet | 500mg | 0.24 | 14.4 | 2 | DRS10001 | RX20221223A |
| TXN000004 | debit_card | 1 | false | blank | 2024-01-09T11:57:16 | PH104 | PillPoint | Boston | MA | 02114 | USA | CUST10003 | 23 | other | OTC10003 | Allergy Relief Syrup | allergy | syrup | 5mg/5ml | 5.99 | 5.99 | 1 | blank | blank |
| TXN000005 | insurance | 90 | true | Aetna | 2023-08-27T16:43:28 | PH105 | RxMart Midtown | Houston | TX | 77002 | USA | CUST10004 | 81 | male | PRESC1002 | Warfarin Sodium | anticoagulant | tablet | 5mg | 0.31 | 27.9 | 3.5 | DRJ10002 | RX20230827B |
| TXN000006 | cash | 1 | false | blank | 2023-02-13T09:08:55 | PH106 | CareFirst Express | Duluth | MN | 55802 | USA | blank | blank | unknown | OTC10004 | Hydrocortisone Cream | topical steroid | cream | 1% | 6.49 | 6.49 | 0 | blank | blank |
| TXN000007 | insurance | 28 | true | BlueCross | 2023-06-14T18:25:47 | PH107 | MediQuick | Phoenix | AZ | 85004 | USA | CUST10005 | 54 | female | PRESC1003 | Amoxicillin | antibiotic | capsule | 250mg | 0.49 | 13.72 | 1.5 | DRM10003 | RX20230614C |
| TXN000008 | mobile_payment | 1 | false | blank | 2022-11-05T13:42:08 | PH108 | PillPoint North | San Francisco | CA | 94107 | USA | CUST10006 | 41 | male | OTC10005 | Cough & Cold Liquid | cold remedy | liquid | 10ml | 4.79 | 4.79 | 0 | blank | blank |
| TXN000009 | credit_card | 3 | false | blank | 2024-03-03T12:31:15 | PH109 | CareFirst Uptown | Miami | FL | 33130 | USA | CUST10007 | 38 | female | OTC10006 | Multivitamin Tablets | supplement | tablet | One-a-day | 6.99 | 20.97 | 2 | blank | blank |
| TXN000010 | insurance | 30 | true | Texas Health | 2023-11-22T15:50:11 | PH110 | RxMart South | El Paso | TX | 79901 | USA | CUST10008 | 49 | female | PRESC1004 | Lisinopril | antihypertensive | tablet | 10mg | 0.55 | 16.5 | 2.5 | DRL10004 | RX20231122D |
| TXN000011 | insurance | 1 | true | NHS England | 2023-05-01T09:06:24 | PH201 | RxMart London | London | ENG | SW1A 1AA | UK | CUST20001 | 62 | other | PRESC2001 | Salbutamol Inhaler | bronchodilator | inhaler | 100mcg | 12.99 | 12.99 | 0 | DRB20001 | RX20230501E |
| TXN000012 | debit_card | 2 | false | blank | 2024-02-17T13:19:37 | PH202 | MediQuick Manchester | Manchester | ENG | M1 2AB | UK | CUST20002 | 30 | male | OTC20001 | Antihistamine Tablets | allergy | tablet | 10mg | 3.99 | 7.98 | 1 | blank | blank |
| TXN000013 | cash | 1 | false | blank | 2023-08-15T17:41:07 | PH203 | PillPoint UK | London | ENG | W1G 8QP | UK | blank | blank | unknown | OTC20002 | Hand Sanitizer Gel | hygiene | gel | 60ml | 2.49 | 2.49 | 0 | blank | blank |
| TXN000014 | insurance | 90 | true | Sunlife | 2023-06-06T10:10:11 | PH301 | CareFirst Toronto | Toronto | ON | M5H 2N2 | Canada | CUST30001 | 75 | female | PRESC3001 | Levothyroxine | antithyroid | tablet | 50mcg | 0.19 | 17.1 | 1.1 | DRL30001 | RX20230606F |
| TXN000015 | credit_card | 2 | false | blank | 2024-01-20T16:19:12 | PH302 | RxMart Vancouver | Vancouver | BC | V5K 0A1 | Canada | CUST30002 | 41 | male | OTC30001 | Vitamin C Chewable | supplement | tablet | 500mg | 8.99 | 17.98 | 0 | blank | blank |
| TXN000016 | mobile_payment | 1 | false | blank | 2023-03-28T13:22:03 | PH201 | RxMart London | London | ENG | SW1A 1AA | UK | CUST20003 | 28 | female | OTC20003 | Eye Drops | ophthalmology | drops | 0.1% | 5.25 | 5.25 | 0 | blank | blank |
| TXN000017 | insurance | 1 | true | Medicare | 2023-09-11T08:50:46 | PH103 | MediQuick Central | Chicago | IL | 60603 | USA | CUST10009 | 0 | male | PRESC1005 | Amoxicillin Suspension | antibiotic | syrup | 125mg/5ml | 8.99 | 8.99 | 1 | DRR10005 | RX20230911G |
| TXN000018 | credit_card | 1 | false | blank | 2023-05-25T16:07:39 | PH104 | PillPoint | Boston | MA | 02114 | USA | CUST10010 | 45 | female | OTC10007 | Aloe Vera Gel | dermatology | gel | 100ml | 4.35 | 4.35 | 0 | blank | blank |
| TXN000019 | insurance | 3 | true | Sunlife | 2023-01-31T19:23:14 | PH302 | RxMart Vancouver | Vancouver | BC | V5K 0A1 | Canada | CUST30003 | 68 | female | PRESC3002 | Insulin Glargine | antidiabetic | injection | 100U/ml | 17.99 | 53.97 | 3.97 | DRI30002 | RX20230131H |
| TXN000020 | other | 1 | false | blank | 2024-03-14T13:34:27 | PH109 | CareFirst Uptown | Miami | FL | 33130 | USA | blank | blank | unknown | OTC10008 | First Aid Kit | wound care | kit | blank | 16.99 | 16.99 | 0 | blank | blank |
What the 200 rows show
from the 200-row sampleInsurance (payment method) stands out: mean quantity is 43.7, against 2.2 for the rest.
- 35%prescription_
flag = true - 1median quantity
- 3store countries
- 4customer genders
- 13store states
- 17store cities
Median 1, from 1 to 180.
- string 18
- integer 2
- float 3
- datetime 1
- boolean 1
Columns
25 columns in four groups| column | type | description | example |
|---|---|---|---|
| Text 18 columns | |||
transaction_id | string | Unique identifier for each purchase transaction event.unique | TXN000001 |
store_id | string | Unique identifier for the retail pharmacy location where the transaction took place. | PH101 |
store_name | string | Name of the pharmacy store.optional | RxMart Downtown |
store_city | string | City where the pharmacy store is located.optional | New York |
store_state | string | State or region where the pharmacy store is located.optional | NY |
store_postal_code | string | Postal code of the pharmacy store location.optional | 10001 |
store_country | string | Country where the pharmacy store is located.3 countries · optional | USA |
customer_id | string | Unique identifier for the customer making the purchase. May be null for anonymous/OTC purchases.optional | CUST10001 |
customer_gender | string | Gender of the customer (if available).male · female · other · unknown · optional | female |
product_id | string | Unique identifier for the product purchased. | OTC10001 |
product_name | string | Name of the product purchased. | Vitamin D3 Gummies |
product_category | string | Category of the product (e.g., analgesic, cold remedy, supplement, antibiotic). | supplement |
product_form | string | Form of the product (e.g., tablet, capsule, syrup, cream, spray).optional | gummy |
product_strength | string | Strength or dosage of the product (e.g., 500mg, 10ml, 5%).optional | 1000IU |
payment_method | string | Payment method used for the transaction (e.g., cash, credit_card, insurance, mobile_payment).6 values · optional | credit_card |
insurance_provider | string | Name of the insurance provider if payment was made via insurance.6 providers · optional | Medicare |
prescriber_id | string | Unique identifier for the prescribing physician (if applicable).optional | DRS10001 |
prescription_number | string | Prescription number associated with the transaction (if applicable).optional | RX20221223A |
| Numbers 5 columns | |||
customer_age | integer | Age of the customer at the time of purchase, if available.0 or more · optional | 34 |
quantity | integer | Number of units of the product purchased in this transaction.1 or more | 2 |
unit_price | float | Price per unit of the product at the time of purchase.0 or more | 7.99 |
total_price | float | Total price paid for this product line (unit_price * quantity, before discounts).0 or more | 15.98 |
discount_applied | float | Discount amount applied to this product line, if any.0 or more · optional | 0 |
| Dates and times 1 column | |||
transaction_datetime | datetime | Date and time when the purchase transaction occurred. | 2023-04-12T10:15:32 |
| True or false 1 column | |||
prescription_flag | boolean | Indicates if the purchase was for a prescription medication (true) or over-the-counter (false). | false |
Use it for
A healthcare dashboard
The prescription_
flag rate, quantity by payment_ method and a breakdown of insurance_ provider. Excel, Power BI or Tableau. Why do the 70 insurance rows have a mean quantity of 43.7?
A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Transactions200TXN0000012credit_c…TXN00000360insuranceTXN00000590insurance
A software demo
Believable transactions with transaction_
datetime, store_ id and store_ name to fill a screen in front of a buyer.
blueprint · pharmacy-retail-purchase-events
Behind this dataset
Same schema. As many rows as you need.
These 200 rows came out of a blueprint — 25 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.
- Each transaction includes product, quantity, timestamp.
- Customer segment and loyalty program flagged.
- Prescription status and co-payment included.
- Store location anonymized.
1 credit per row. New accounts start with 25 free credits.
- Exports
- CSV, JSON, JSONL, Parquet, SQL, Excel, TSV, XML
- Licence
- yours to use, including commercially
- API slug
- pharmacy-retail-purchase-events