E-Prescribing and Medication Orders
This dataset provides comprehensive electronic prescription records, including detailed medication information, standardized RxNorm codes, prescriber and pharmacy identifiers, and SCRIPT message tracking for order and dispensing events. It enables robust analysis of prescribing patterns, medication safety, and pharmacy workflow optimization, supporting interoperability across healthcare systems.
Sample rows
preview · 8 of 120 rows · all 24 columns| prescription_idstring | script_message_typestring | refillsinteger | pharmacy_statestring | patient_idstring | drug_namestring | rxnorm_codestring | dose_amountfloat | dose_unitstring | frequencystring | quantityinteger | prescriber_idstring | prescriber_namestring | prescriber_npistring | pharmacy_idstring | pharmacy_namestring | pharmacy_street_addressstring | pharmacy_citystring | pharmacy_postal_codestring | pharmacy_countrystring | script_message_idstring | script_message_datetimedatetime | dispense_datedate | notesstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RX1001 | NewRx | 3 | MA | P00001 | Simvastatin | 866350 | 40 | mg | once daily | 90 | DR101 | Dr. Richard Adams | 1223344556 | PHARM01 | CVS Pharmacy | 123 Main St | Boston | 02108 | USA | SM1001 | 2023-01-15T09:45:00 | 2023-01-15 | Take in the evening as prescribed |
| RX1002 | NewRx | 2 | IL | P00002 | Lisinopril | 290462 | 20 | mg | once daily | 30 | DR102 | Dr. Susan Miller | 1234567890 | PHARM02 | Walgreens Pharmacy | 44 Charles St | Chicago | 60602 | USA | SM1002 | 2023-01-16T14:15:00 | 2023-01-16 | Monitor blood pressure regularly |
| RX1003 | NewRx | 4 | FL | P00003 | Metformin | 860975 | 500 | mg | twice daily | 60 | DR103 | Dr. Alan Choi | 1357924680 | PHARM03 | Walmart Pharmacy | 202 Oak Dr | Orlando | 32801 | USA | SM1003 | 2023-01-17T10:22:00 | 2023-01-17 | Take with food to reduce stomach upset |
| RX1004 | NewRx | 2 | MA | P00004 | Levothyroxine | 197361 | 75 | mcg | once daily | 90 | DR104 | Dr. Emily Nguyen | 1122334455 | PHARM04 | CVS Pharmacy | 1050 Beacon St | Brookline | 02446 | USA | SM1004 | 2023-01-18T08:30:00 | 2023-01-18 | Take on empty stomach |
| RX1005 | NewRx | 0 | NY | P00005 | Amoxicillin | 723 | 500 | mg | q8h x7 days | 21 | DR105 | Dr. Maria Lopez | 1212121212 | PHARM05 | Rite Aid Pharmacy | 82 Hudson Ave | Albany | 12207 | USA | SM1005 | 2023-01-19T15:05:00 | 2023-01-19 | Finish all medication |
| RX1006 | NewRx | 0 | CA | P00006 | Azithromycin | 310798 | 250 | mg | once daily x5 days | 5 | DR106 | Dr. William Brown | 1333444555 | PHARM06 | Walgreens Pharmacy | 98 Park St | San Diego | 92101 | USA | SM1006 | 2023-01-20T12:00:00 | 2023-01-20 | Take with food |
| RX1007 | NewRx | 0 | NY | P00007 | Prednisone | 8640 | 20 | mg | once daily x5 days | 5 | DR107 | Dr. Hannah Lee | 1098765432 | PHARM07 | CVS Pharmacy | 333 Broadway | New York | 10007 | USA | SM1007 | 2023-01-22T11:10:00 | 2023-01-22 | Taper dose as instructed |
| RX1008 | NewRx | 5 | TX | P00008 | Atorvastatin | 617314 | 20 | mg | once daily | 90 | DR108 | Dr. Michael Smith | 1667788990 | PHARM08 | Walmart Pharmacy | 400 Elm St | Dallas | 75201 | USA | SM1008 | 2023-01-23T08:50:00 | 2023-01-23 | Take at bedtime |
| RX1009 | NewRx | 1 | MN | P00009 | Warfarin | 855332 | 5 | mg | once daily | 30 | DR109 | Dr. Samantha Patel | 1778899001 | PHARM09 | CVS Pharmacy | 45 Sycamore Rd | Minneapolis | 55402 | USA | SM1009 | 2023-01-25T16:20:00 | 2023-01-25 | Monitor INR regularly |
| RX1010 | NewRx | 1 | WA | P00010 | Albuterol | 435 | 2 | puffs | q4h prn | 200 | DR110 | Dr. Charles Wu | 1333555777 | PHARM10 | Walgreens Pharmacy | 120 Pine Ave | Seattle | 98101 | USA | SM1010 | 2023-01-26T13:00:00 | 2023-01-26 | Use as needed for wheezing |
| RX1011 | RefillRequest | 2 | TX | P00011 | Furosemide | 312615 | 40 | mg | twice daily | 60 | DR111 | Dr. Olivia White | 1444555666 | PHARM11 | CVS Pharmacy | 501 Maple St | Houston | 77002 | USA | SM1011 | 2023-01-27T09:30:00 | 2023-01-28 | Monitor electrolytes |
| RX1012 | NewRx | 1 | AZ | P00012 | Zolpidem | 699312 | 10 | mg | qhs | 15 | DR112 | Dr. Peter Kelly | 1888999000 | PHARM12 | Walmart Pharmacy | 290 North St | Phoenix | 85004 | USA | SM1012 | 2023-01-28T16:45:00 | 2023-01-28 | May cause drowsiness |
| RX1013 | NewRx | 0 | RI | P00013 | Ibuprofen | 5640 | 400 | mg | q6h prn | 24 | DR113 | Dr. Brian Davis | 1999111222 | PHARM13 | CVS Pharmacy | 77 Waterman St | Providence | 02906 | USA | SM1013 | 2023-01-28T17:30:00 | 2023-01-28 | Take with food as needed |
| RX1014 | RefillRequest | 2 | CA | P00014 | Insulin Glargine | 285019 | 30 | units | once daily | 30 | DR114 | Dr. Jennifer Rivera | 1555333444 | PHARM14 | Walgreens Pharmacy | 800 Sunset Blvd | Los Angeles | 90028 | USA | SM1014 | 2023-01-29T08:10:00 | 2023-01-29 | Store in refrigerator |
| RX1015 | NewRx | 1 | CA | P00015 | Hydroxyzine | 308137 | 25 | mg | qhs | 30 | DR115 | Dr. Angela Thomas | 1666555777 | PHARM15 | CVS Pharmacy | 211 King St | San Jose | 95112 | USA | SM1015 | 2023-01-30T11:00:00 | 2023-01-30 | Use only as needed |
| RX1016 | CancelRx | 0 | TN | P00016 | Morphine Sulfate | 7052 | 15 | mg | q4h prn | 10 | DR116 | Dr. Ethan Williams | 1777666555 | PHARM16 | Walgreens Pharmacy | 60 Broadway | Nashville | 37203 | USA | SM1016 | 2023-01-31T14:30:00 | blank | Cancelled due to adverse reaction |
| RX1017 | RefillRequest | 3 | CA | P00017 | Metoprolol Tartrate | 197361 | 50 | mg | twice daily | 60 | DR117 | Dr. Grace Carter | 1888000111 | PHARM17 | CVS Pharmacy | 350 Market St | San Francisco | 94111 | USA | SM1017 | 2023-02-01T09:00:00 | 2023-02-01 | Take with breakfast and dinner |
| RX1018 | RxFill | 1 | GA | P00018 | Amlodipine | 197361 | 5 | mg | once daily | 30 | DR118 | Dr. Joseph Green | 1444000111 | PHARM18 | Walmart Pharmacy | 910 South St | Atlanta | 30303 | USA | SM1018 | 2023-02-01T13:30:00 | 2023-02-01 | blank |
| RX1019 | NewRx | 2 | FL | P00019 | Omeprazole | 617314 | 20 | mg | once daily | 30 | DR119 | Dr. Sophia Kim | 1222000111 | PHARM19 | CVS Pharmacy | 305 Ocean Ave | Miami | 33139 | USA | SM1019 | 2023-02-02T08:55:00 | 2023-02-02 | Take 30 min before breakfast |
| RX1020 | NewRx | 1 | IL | P00020 | Epinephrine | 7052 | 0.3 | mL | inject prn | 2 | DR120 | Dr. Kevin Zhang | 1555222333 | PHARM20 | CVS Pharmacy | 2100 N Clark St | Chicago | 60614 | USA | SM1020 | 2023-02-03T10:15:00 | 2023-02-03 | Carry with you at all times |
What the 120 rows show
from the 120-row sampleRefillRequest (script message type) stands out: mean refills is 2.9, against 1.1 for the rest.
- 1median refills
- 5dose units
- 5pharmacy countries
- 10pharmacy names
- 14frequencies
- 23drug names
Median 1, from 0 to 6.
- string 19
- integer 2
- float 1
- date 1
- datetime 1
Columns
24 columns in three groups| column | type | description | example |
|---|---|---|---|
| Text 19 columns | |||
prescription_id | string | Unique identifier for each electronic prescription recordunique | RX1001 |
patient_id | string | Unique identifier for the patient receiving the medication | P00001 |
drug_name | string | Name of the prescribed drug or medication | Simvastatin |
rxnorm_code | string | Standardized RxNorm code for the prescribed medication | 866350 |
dose_unit | string | Unit of measurement for the dose (e.g., mg, mL, tablet)5 units | mg |
frequency | string | How often the medication should be taken (e.g., 'once daily', 'q8h') | once daily |
prescriber_id | string | Unique identifier for the healthcare provider who prescribed the medication | DR101 |
prescriber_name | string | Full name of the prescriber | Dr. Richard Adams |
prescriber_npi | string | National Provider Identifier (NPI) for the prescriberoptional | 1223344556 |
pharmacy_id | string | Unique identifier for the pharmacy where the prescription is sent | PHARM01 |
pharmacy_name | string | Name of the pharmacy10 names | CVS Pharmacy |
pharmacy_street_address | string | Street address of the pharmacyoptional | 123 Main St |
pharmacy_city | string | City where the pharmacy is locatedoptional | Boston |
pharmacy_state | string | State where the pharmacy is locatedoptional | MA |
pharmacy_postal_code | string | Postal code of the pharmacyoptional | 02108 |
pharmacy_country | string | Country where the pharmacy is located5 countries · optional | USA |
script_message_type | string | Type of SCRIPT message (e.g., 'NewRx', 'RefillRequest', 'CancelRx', 'RxChangeRequest')NewRx · RefillRequest · CancelRx · RxChangeRequest · RxFill | NewRx |
script_message_id | string | Unique identifier for the SCRIPT messageunique | SM1001 |
notes | string | Additional notes or instructions related to the prescriptionoptional | Take on empty stomach |
| Numbers 3 columns | |||
dose_amount | float | Amount of drug per dose0 or more | 40 |
quantity | integer | Total quantity of medication to be dispensed1 or more | 90 |
refills | integer | Number of authorized refills for the prescription0 or more | 3 |
| Dates and times 2 columns | |||
script_message_datetime | datetime | Date and time when the SCRIPT message was sent | 2023-01-15T09:45:00 |
dispense_date | date | Date when the medication was dispensed by the pharmacyoptional | 2023-01-15 |
Use it for
A healthcare dashboard
Refills by script_
message_ type and a breakdown of pharmacy_ state. Excel, Power BI or Tableau. Why do the 25 RefillRequest rows have a mean refills of 2.9?
A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Prescriptions120RX10013NewRxRX10022NewRxRX10034NewRx
A software demo
Believable prescriptions with patient_
id, drug_ name and rxnorm_ code to fill a screen in front of a buyer.
blueprint · e-prescribing-and-medication-orders
Behind this dataset
Same schema. As many rows as you need.
These 120 rows came out of a blueprint — 24 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.
- Prescription ID unique per order
- Drug name and RxNorm code (semantic clinical drug)
- NDC (National Drug Code) for specific product
- Strength and dose form (tablet, capsule, liquid)
- Dose and frequency (e.g., 10mg twice daily)
- Route of administration: oral, IV, topical, inhaled, etc.
- Quantity to dispense (e.g., 30 tablets)
- Refills authorized (0-11 or PRN)
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
- e-prescribing-and-medication-orders