The Work Gym / Free resources / Free practice datasets
Healthcare dataset
Six months of records from Cedar Ridge Health, a fictional health system with a hospital, a community hospital and clinics: patients, visits and stays, diagnoses, procedures, lab results, medications, appointments and insurance claims. Every patient is invented. Download it and practice the healthcare analytics people are hired for.
Download
- healthcare.xlsxExcel workbook, one sheet per table (10) · 128 KB
- healthcare.sqlSQL script for PostgreSQL, MySQL, SQLite and DuckDB · 291 KB
CSV files, one per table
- payers.csv6 rows · 199 B
- providers.csv14 rows · 692 B
- patients.csv150 rows · 7 KB
- encounters.csv470 rows · 50 KB
- diagnoses.csv699 rows · 45 KB
- procedures.csv24 rows · 2 KB
- labs.csv497 rows · 36 KB
- medications.csv134 rows · 9 KB
- appointments.csv544 rows · 31 KB
- claims.csv466 rows · 36 KB
The data is fictional and free to use for practice, teaching and portfolio work. A link back is appreciated.
What to practice
Cedar Ridge Health is a fictional health system: Cedar Ridge Medical Center, Lakeside Community Hospital and Cedar Ridge Clinics. The data runs from January to June 2026. Diagnosis and procedure codes are real ICD-10 codes; every patient, provider and amount is invented.
- Count encounters by type and month, and the share of emergency visits that end in admission (
disposition). - Find 30-day readmissions: inpatient stays that start within 30 days of the same patient's last discharge.
- Work out the no-show rate by department from
appointments. - Compare billed, allowed and paid amounts in
claimsby payer, and list the denial reasons. - Flag lab results outside
ref_lowandref_high.
Practice with checked exercises
Data dictionary
Table and column names are exactly as they appear in the files.
payers6 rows
Who pays for care.
- payer_idINTEGER
- Payer number
- payer_nameVARCHAR
- Payer name
- payer_typeVARCHAR
- Medicare, Medicaid, Commercial or Self-pay
First rows
| payer_id | payer_name | payer_type |
|---|---|---|
| 1 | Medicare | Medicare |
| 2 | State Medicaid | Medicaid |
| 3 | Bluepine Health Plan | Commercial |
| 4 | Summit Mutual | Commercial |
| 5 | Harborline Insurance | Commercial |
providers14 rows
Physicians and their specialty.
- provider_idINTEGER
- Provider number
- provider_nameVARCHAR
- Physician's name
- specialtyVARCHAR
- Medical specialty
- departmentVARCHAR
- Department they work in
First rows
| provider_id | provider_name | specialty | department |
|---|---|---|---|
| 1 | Amara Okafor | Hospital Medicine | Inpatient Medicine |
| 2 | Lucas Brennan | Hospital Medicine | Inpatient Medicine |
| 3 | Priya Raman | Cardiology | Cardiology |
| 4 | Tomas Ibarra | Emergency Medicine | Emergency Department |
| 5 | Hannah Weiss | Emergency Medicine | Emergency Department |
patients150 rows
One row per patient.
- patient_idINTEGER
- Patient number, the key the other tables use
- mrnVARCHAR
- Medical record number
- first_nameVARCHAR
- First name
- last_nameVARCHAR
- Last name
- birth_dateDATE
- Date of birth
- sexVARCHAR
- M or F
- zipVARCHAR
- Five-digit ZIP code
- payer_idINTEGER
- Main payer
- pcp_idINTEGER
- Primary care provider
First rows
| patient_id | mrn | first_name | last_name | birth_date | sex | zip | payer_id | pcp_id |
|---|---|---|---|---|---|---|---|---|
| 1001 | CR439952 | Mateo | Novak | 1991-09-23 | M | 50312 | 3 | 6 |
| 1002 | CR939435 | Maria | Nguyen | 1950-02-04 | F | 50613 | 1 | 8 |
| 1003 | CR607251 | Robert | Quinn | 1992-11-04 | M | 50421 | 3 | 6 |
| 1004 | CR848292 | Esther | Foster | 1965-01-22 | F | 50613 | 3 | 6 |
| 1005 | CR532799 | Luis | Patel | 1949-07-16 | M | 50312 | 1 | 7 |
encounters470 rows
Every visit and stay: outpatient, emergency, observation and inpatient.
- encounter_idINTEGER
- Encounter number
- patient_idINTEGER
- Patient
- encounter_typeVARCHAR
- outpatient, emergency, observation or inpatient
- facilityVARCHAR
- Hospital or clinic
- departmentVARCHAR
- Department
- admit_dateDATE
- Date the visit or stay started
- discharge_dateDATE
- Date it ended (empty while a stay is open)
- arrival_timeTIMESTAMP
- Emergency arrival time
- provider_seen_timeTIMESTAMP
- Time a provider first saw the patient (emergency)
- departure_timeTIMESTAMP
- Time the patient left the emergency department
- dispositionVARCHAR
- Where the patient went next, such as home or admitted
- attending_idINTEGER
- Attending provider
- payer_idINTEGER
- Payer for this encounter
- plannedBOOLEAN
- Whether an admission was planned
First rows
| encounter_id | patient_id | encounter_type | facility | department | admit_date | discharge_date | arrival_time | provider_seen_time | departure_time | disposition | attending_id | payer_id | planned |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 50410 | 1001 | outpatient | Cedar Ridge Clinics | Primary Care | 2026-03-03 | 2026-03-03 | home | 6 | 3 | false | |||
| 50411 | 1001 | emergency | Cedar Ridge Medical Center | Emergency Department | 2026-05-19 | 2026-05-19 | 2026-05-19 09:28:00 | 2026-05-19 11:44:00 | 2026-05-19 18:09:00 | admitted | 4 | 3 | false |
| 50412 | 1001 | observation | Lakeside Community Hospital | Cardiology | 2026-05-19 | 2026-05-19 | home | 3 | 3 | false | |||
| 50413 | 1002 | outpatient | Cedar Ridge Clinics | Primary Care | 2026-02-14 | 2026-02-14 | home | 8 | 1 | false | |||
| 50414 | 1002 | outpatient | Cedar Ridge Clinics | Primary Care | 2026-01-08 | 2026-01-08 | home | 8 | 1 | false |
diagnoses699 rows
ICD-10-CM diagnosis codes on each encounter.
- encounter_idINTEGER
- Encounter
- seqINTEGER
- Order on the encounter; 1 is the principal or first-listed diagnosis
- icd10_codeVARCHAR
- ICD-10-CM code
- descriptionVARCHAR
- Official code title
- is_principalBOOLEAN
- Whether it is the principal diagnosis
First rows
| encounter_id | seq | icd10_code | description | is_principal |
|---|---|---|---|---|
| 50410 | 1 | K21.9 | Gastro-esophageal reflux disease without esophagitis | true |
| 50411 | 1 | R55 | Syncope and collapse | true |
| 50412 | 1 | R55 | Syncope and collapse | true |
| 50412 | 2 | I48.91 | Unspecified atrial fibrillation | false |
| 50413 | 1 | J44.9 | Chronic obstructive pulmonary disease, unspecified | true |
procedures24 rows
ICD-10-PCS procedure codes on inpatient stays.
- encounter_idINTEGER
- Encounter
- seqINTEGER
- Order on the encounter
- code_systemVARCHAR
- Code system (ICD-10-PCS)
- procedure_codeVARCHAR
- Procedure code
- descriptionVARCHAR
- Official code title
- procedure_dateDATE
- Date of the procedure
First rows
| encounter_id | seq | code_system | procedure_code | description | procedure_date |
|---|---|---|---|---|---|
| 50483 | 1 | ICD-10-PCS | 10E0XZZ | Delivery of Products of Conception, External Approach | 2026-05-17 |
| 50510 | 1 | ICD-10-PCS | 10E0XZZ | Delivery of Products of Conception, External Approach | 2026-05-30 |
| 50512 | 1 | ICD-10-PCS | 10E0XZZ | Delivery of Products of Conception, External Approach | 2026-01-31 |
| 50531 | 1 | ICD-10-PCS | 10E0XZZ | Delivery of Products of Conception, External Approach | 2026-02-01 |
| 50558 | 1 | ICD-10-PCS | 10E0XZZ | Delivery of Products of Conception, External Approach | 2026-05-19 |
labs497 rows
Laboratory results with their reference ranges.
- lab_idINTEGER
- Result number
- patient_idINTEGER
- Patient
- encounter_idINTEGER
- Encounter, when the test was part of one
- test_codeVARCHAR
- The health system's own test code
- test_nameVARCHAR
- Test name
- result_valueDOUBLE
- Result
- unitVARCHAR
- Unit of the result
- ref_lowDOUBLE
- Bottom of the normal range
- ref_highDOUBLE
- Top of the normal range
- collected_atTIMESTAMP
- When the sample was collected
First rows
| lab_id | patient_id | encounter_id | test_code | test_name | result_value | unit | ref_low | ref_high | collected_at |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1001 | 50412 | CR-WBC | White blood cell count | 13.2 | 10^3/uL | 4.5 | 11 | 2026-05-19 18:11:00 |
| 2 | 1001 | 50412 | CR-NA | Sodium | 142 | mmol/L | 135 | 145 | 2026-05-19 14:23:00 |
| 3 | 1001 | 50412 | CR-K | Potassium | 4.3 | mmol/L | 3.5 | 5.1 | 2026-05-19 13:02:00 |
| 4 | 1001 | 50412 | CR-CREAT | Creatinine | 2.2 | mg/dL | 0.6 | 1.3 | 2026-05-19 16:45:00 |
| 5 | 1002 | 50418 | CR-WBC | White blood cell count | 19.3 | 10^3/uL | 4.5 | 11 | 2026-02-17 07:31:00 |
medications134 rows
Medication list entries.
- med_idINTEGER
- Entry number
- patient_idINTEGER
- Patient
- encounter_idINTEGER
- Encounter, when the entry came from one (empty in this extract)
- drug_nameVARCHAR
- Drug
- doseVARCHAR
- Dose
- routeVARCHAR
- Route, such as PO (by mouth) or inhaled
- frequencyVARCHAR
- How often it is taken
- start_dateDATE
- Start date
- end_dateDATE
- End date (empty while active)
- statusVARCHAR
- active, completed or discontinued
First rows
| med_id | patient_id | encounter_id | drug_name | dose | route | frequency | start_date | end_date | status |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1002 | tiotropium | 18 mcg | inhaled | daily | 2026-01-31 | active | ||
| 2 | 1002 | albuterol | 90 mcg | inhaled | every 4 hours as needed | 2026-01-31 | active | ||
| 3 | 1003 | amoxicillin | 500 mg | PO | three times daily | 2026-01-19 | 2026-01-29 | completed | |
| 4 | 1004 | metformin | 500 mg | PO | twice daily | 2026-02-28 | active | ||
| 5 | 1006 | metformin | 500 mg | PO | twice daily | 2026-01-30 | active |
appointments544 rows
Clinic appointments and what happened to each.
- appointment_idINTEGER
- Appointment number
- patient_idINTEGER
- Patient
- provider_idINTEGER
- Provider
- departmentVARCHAR
- Clinic department
- appointment_dateDATE
- Date of the appointment
- booked_dateDATE
- Date it was booked
- statusVARCHAR
- completed, scheduled, no-show or cancelled
First rows
| appointment_id | patient_id | provider_id | department | appointment_date | booked_date | status |
|---|---|---|---|---|---|---|
| 70000 | 1001 | 6 | Primary Care | 2026-03-03 | 2026-01-23 | completed |
| 70001 | 1001 | 6 | Primary Care | 2026-07-13 | 2026-06-23 | scheduled |
| 70002 | 1001 | 12 | Pulmonology | 2026-05-01 | 2026-04-16 | no-show |
| 70003 | 1001 | 6 | Primary Care | 2026-07-05 | 2026-06-19 | scheduled |
| 70004 | 1002 | 8 | Primary Care | 2026-02-14 | 2026-01-13 | completed |
claims466 rows
One insurance claim per encounter.
- claim_idINTEGER
- Claim number
- encounter_idINTEGER
- Encounter
- payer_idINTEGER
- Payer
- claim_typeVARCHAR
- professional or institutional
- billed_amountDECIMAL(10,2)
- Amount billed, in US dollars
- allowed_amountDECIMAL(10,2)
- Amount the payer agreed to
- paid_amountDECIMAL(10,2)
- Amount the payer paid
- statusVARCHAR
- paid, pending or denied
- denial_reasonVARCHAR
- Why a claim was denied
- submitted_dateDATE
- Date submitted
- adjudicated_dateDATE
- Date the payer decided
First rows
| claim_id | encounter_id | payer_id | claim_type | billed_amount | allowed_amount | paid_amount | status | denial_reason | submitted_date | adjudicated_date |
|---|---|---|---|---|---|---|---|---|---|---|
| 901542 | 50410 | 3 | professional | 423.89 | 202.85 | 172.95 | paid | 2026-03-07 | 2026-04-14 | |
| 901543 | 50411 | 3 | professional | 4970.4 | 2777.58 | 2646.92 | paid | 2026-05-23 | 2026-06-20 | |
| 901544 | 50412 | 3 | institutional | 5657.25 | 3162.11 | 2781.85 | paid | 2026-05-21 | 2026-06-08 | |
| 901545 | 50413 | 1 | professional | 317.4 | 99.62 | 96.21 | paid | 2026-02-22 | 2026-04-07 | |
| 901546 | 50414 | 1 | professional | 434.57 | 147.18 | 131.55 | paid | 2026-01-10 | 2026-01-30 |
Questions
Is any of this real patient data?
No. Every patient, provider, visit and amount is invented, so there is no protected health information in it. Only the code lists are real: ICD-10-CM diagnosis and ICD-10-PCS procedure codes with their official titles.
Why are some values missing?
On purpose, the way they are in real extracts: an outpatient visit has no arrival time, an open stay has no discharge date, and a pending claim has no paid amount yet.
More datasets
Retail sales dataset
Weekly sales by store and category, promotions and stock checks for a grocery chain.
SQL sample database: Kestrel online store
Products, customers, orders, employees, suppliers, tickets and web events in 17 tables.
Shipping and logistics dataset
Freight shipments with promised and delivered dates, and their status events.
Customer churn dataset
Subscribers, cancellations, weekly workouts and an A/B test of an annual offer.
Employee and HR dataset
Employees, exits, salaries, recruiting, headcount and an engagement survey.