Patient Medication Adherence Logs
This dataset provides detailed, timestamped logs of patient adherence to prescribed medication regimens, capturing scheduled and actual intake times, adherence status, and reasons for nonadherence. It enables healthcare providers to monitor compliance, identify patterns of missed doses, and design targeted interventions to improve patient outcomes and reduce hospital readmissions.
Sample rows
preview · 8 of 200 rows · all 21 columns| adherence_log_idstring | adherence_statusstring | takenboolean | frequencystring | patient_idstring | patient_first_namestring | patient_last_namestring | date_of_birthdate | genderstring | medication_idstring | medication_namestring | dosagestring | routestring | prescription_start_datedate | prescription_end_datedate | adherence_datedate | adherence_timestring | taken_datetimedatetime | reason_for_nonadherencestring | reported_bystring | notesstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ALOG0001 | on_time | true | once daily | PAT001 | Maria | Lopez | 1996-07-22 | female | MED101 | Lisinopril | 20mg | oral | 2023-04-01 | 2024-04-01 | 2024-05-17 | 08:00 | 2024-05-17T08:02:00 | blank | patient | No issues reported. |
| ALOG0002 | missed | false | once daily | PAT002 | John | Smith | 1952-10-11 | male | MED102 | Amlodipine | 5mg | oral | 2022-12-15 | 2024-12-15 | 2024-05-17 | 07:30 | blank | Forgot to take dose in the morning. | caregiver | Caregiver reminded patient. |
| ALOG0003 | on_time | true | once nightly | PAT003 | blank | blank | 2012-03-03 | unknown | MED103 | Insulin Glargine | 30 units | subcutaneous | 2023-01-10 | blank | 2024-05-17 | 20:30 | 2024-05-17T20:31:00 | blank | caregiver | Administered by mother. |
| ALOG0004 | late | true | twice daily | PAT004 | David | Nguyen | 1988-04-15 | male | MED104 | Metformin | 500mg | oral | 2024-02-10 | blank | 2024-05-16 | 19:00 | 2024-05-16T19:23:00 | Stuck in traffic, took dose late. | patient | Set new reminder. |
| ALOG0005 | missed | false | once daily | PAT005 | Alice | O'Connell | 1941-02-18 | female | MED105 | Furosemide | 40mg | oral | 2021-09-28 | 2024-09-28 | 2024-05-16 | 08:30 | blank | Overslept, missed morning dose. | caregiver | Travel disrupted routine. |
| ALOG0006 | on_time | true | once daily | PAT006 | Emily | Chen | 2000-01-30 | female | MED106 | Sertraline | 100mg | oral | 2022-05-01 | blank | 2024-05-18 | 07:45 | 2024-05-18T07:47:00 | blank | patient | blank |
| ALOG0007 | on_time | true | once daily | PAT007 | blank | blank | 2015-09-13 | male | MED107 | Methylphenidate | 10mg | oral | 2023-03-12 | blank | 2024-05-18 | 07:10 | 2024-05-18T07:12:00 | blank | caregiver | Caregiver assisted. |
| ALOG0008 | on_time | true | once daily | PAT008 | Søren | Nielsen | 1973-03-22 | other | MED108 | Hydrochlorothiazide | 25mg | oral | 2024-01-01 | blank | 2024-05-17 | 08:20 | 2024-05-17T08:22:00 | blank | patient | blank |
| ALOG0009 | missed | false | as needed | PAT009 | Charles | Hughes | 1965-07-12 | male | MED109 | Morphine | 100mg | intravenous | 2023-06-01 | 2025-06-01 | 2024-05-19 | 14:45 | blank | Patient unconscious. | provider | Emergency situation; unable to administer. |
| ALOG0010 | on_time | true | as needed | PAT010 | Fatima | Khan | 1983-11-30 | female | MED110 | Albuterol | 2 puffs | inhalation | 2024-02-20 | blank | 2024-05-19 | 18:35 | 2024-05-19T18:35:00 | blank | patient | No symptoms during the day. |
| ALOG0011 | missed | false | as needed | PAT011 | Benjamin | Levy | 2007-08-07 | male | MED111 | Cetirizine | 10mg | oral | 2022-09-01 | blank | 2024-05-18 | 08:50 | blank | No symptoms. | caregiver | blank |
| ALOG0012 | on_time | true | once daily | PAT012 | Olivia | Martinez | 1992-12-05 | female | MED112 | Levothyroxine | 75mcg | oral | 2023-10-01 | 2024-10-01 | 2024-05-16 | 07:00 | 2024-05-16T07:01:00 | blank | patient | Routine dose, no issues. |
| ALOG0013 | missed | false | once daily | PAT013 | Mikhail | Ivanov | 1947-02-02 | male | MED113 | Warfarin | 5mg | oral | 2022-04-12 | 2025-04-12 | 2024-05-18 | 20:00 | blank | Forgot evening dose. | caregiver | blank |
| ALOG0014 | on_time | true | as needed | PAT014 | Priya | Singh | 2002-04-19 | female | MED114 | Ibuprofen | 400mg | oral | 2024-01-10 | blank | 2024-05-19 | 21:00 | 2024-05-19T21:01:00 | blank | patient | blank |
| ALOG0015 | late | true | once daily | PAT015 | Elijah | Brown | 1989-06-12 | male | MED115 | Atorvastatin | 40mg | oral | 2023-08-31 | blank | 2024-05-20 | 08:15 | 2024-05-20T08:30:00 | Was busy at work. | patient | Set new phone reminder. |
| ALOG0016 | on_time | true | once daily | PAT016 | Grace | Lee | 1980-11-01 | female | MED116 | Omeprazole | 20mg | oral | 2024-03-15 | blank | 2024-05-20 | 07:10 | 2024-05-20T07:11:00 | blank | patient | blank |
| ALOG0017 | missed | false | as needed | PAT017 | Miguel | Garcia | 2010-05-09 | male | MED117 | Albuterol | 2 puffs | inhalation | 2023-05-10 | blank | 2024-05-21 | 17:00 | blank | No symptoms. | caregiver | blank |
| ALOG0018 | late | true | twice daily | PAT018 | Zara | Ali | 1998-02-15 | female | MED118 | Prednisone | 10mg | oral | 2024-03-01 | 2025-03-01 | 2024-05-20 | 18:30 | 2024-05-20T18:45:00 | Meeting ran late. | patient | blank |
| ALOG0019 | missed | false | once daily | PAT019 | Li | Wang | 1957-09-25 | male | MED119 | Simvastatin | 20mg | oral | 2023-07-15 | 2024-07-15 | 2024-05-21 | 20:45 | blank | Was traveling. | caregiver | Caregiver attempted to contact patient. |
| ALOG0020 | on_time | true | once daily | PAT020 | Emma | Wilson | 2003-04-10 | female | MED120 | Montelukast | 10mg | oral | 2023-11-01 | blank | 2024-05-19 | 08:05 | 2024-05-19T08:05:00 | blank | patient | No side effects. |
What the 200 rows show
from the 200-row sampleOn_
- 72%taken = true
- 4genders
- 4reported_
by values - 5routes
- 43dosages
- 52adherence times
- string 15
- date 4
- datetime 1
- boolean 1
Columns
21 columns in three groups| column | type | description | example |
|---|---|---|---|
| Text 15 columns | |||
adherence_log_id | string | Unique identifier for each medication adherence log entryunique | ALOG0001 |
patient_id | string | Unique identifier for the patient | PAT001 |
patient_first_name | string | Patient's first nameoptional | Maria |
patient_last_name | string | Patient's last nameoptional | Lopez |
gender | string | Patient's gendermale · female · other · unknown · optional | female |
medication_id | string | Unique identifier for the prescribed medication | MED101 |
medication_name | string | Name of the prescribed medication | Lisinopril |
dosage | string | Dosage of the medication as prescribed (e.g., '500mg') | 20mg |
route | string | Route of administration (e.g., oral, intravenous, topical)6 values · optional | oral |
frequency | string | Frequency of medication intake as prescribed (e.g., 'twice daily')6 frequencies · optional | once daily |
adherence_time | string | Time when the medication dose was scheduled (24-hour format, e.g., '08:00')optional | 08:00 |
adherence_status | string | Status of adherence for this dose (e.g., on_time, late, missed)on_time · late · missed · unknown | on_time |
reason_for_nonadherence | string | Reason provided by the patient for missing or delaying the doseoptional | Patient unconscious. |
reported_by | string | Who reported the adherence (e.g., patient, caregiver, provider, device)patient · caregiver · provider · device · other · optional | patient |
notes | string | Additional notes or comments related to the adherence logoptional | No issues reported. |
| Dates and times 5 columns | |||
date_of_birth | date | Patient's date of birthoptional | 1996-07-22 |
prescription_start_date | date | Date when the medication regimen startedoptional | 2023-04-01 |
prescription_end_date | date | Date when the medication regimen ended or is scheduled to endoptional | 2024-04-01 |
adherence_date | date | Date when the medication dose was scheduled | 2024-05-17 |
taken_datetime | datetime | Actual date and time when the medication was taken (if applicable)optional | 2024-05-17T08:02:00 |
| True or false 1 column | |||
taken | boolean | Indicates whether the patient took the medication as scheduled | true |
15 SQL practice questions for the Patient Medication Adherence Logs
Written for this data and checked against it: 12 SQL and 3 Power BI exercises from beginner to advanced. Try the first three free; the practice kit has all 15, a starter .sql file and an answer key with every expected result.
Missed doses list
Return adherence_log_id, patient_id, medication_name and adherence_date for every log whose adherence_status is 'missed'. Order the results by adherence_date ascending, then by adherence_log_id ascending.
Tables: patient_medication_adherence_logs · your result: 4 columns, 55 rowsDistinct routes of administration
Return each distinct value of route once, in a single column named route, ordered alphabetically.
Tables: patient_medication_adherence_logs · your result: 1 columns, 5 rowsLogs per adherence status
For each adherence_status, return adherence_status and the number of logs as log_count. Order by log_count descending, then by adherence_status ascending.
Tables: patient_medication_adherence_logs · your result: 2 columns, 4 rows
- 04Taken rate by frequencyBeginner
- 05Doses taken by reporterPower BI
- 06Medications with many missed dosesIntermediate
- 07Age group adherenceIntermediate
- 08Routes below overall taken rateIntermediate
- 09Monthly late dose countsIntermediate
- 10Missed rate by genderPower BI
- 11Rank medications by missed dosesAdvanced
- 12Days between logs per patientAdvanced
- 13Running total of missed doses by dateAdvanced
- 14Share of nonadherence reasonsAdvanced
- 15Top 5 medications by late dosesPower BI
Get the practice kit: the full dataset, all 15 exercises, a starter .sql and the answer key. One-time $3.99.
Get the practice kit · $3.99Use it for
A healthcare dashboard
The taken rate, taken by adherence_
status and a breakdown of frequency. Excel, Power BI or Tableau. Why do 143 of 200 rows have taken = true?
A root-cause class exercise
Hand out the rows and one question. The answer is in the data, not in the brief.
- Adherence logs200ALOG0001on_timeALOG0002missedALOG0003on_time
A software demo
Believable adherence logs with patient_
id, patient_ first_ name and patient_ last_ name to fill a screen in front of a buyer.
blueprint · patient-medication-adherence-logs
Behind this dataset
Same schema. As many rows as you need.
These 200 rows came out of a blueprint — 21 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 patient record includes medication, dosage, and scheduled time.
- Adherence events marked as 'taken,' 'missed,' or 'delayed.'
- Patients assigned unique IDs; demographics included.
- Includes physician, pharmacy, and medication refill details.
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
- patient-medication-adherence-logs