Country or region and language

    Choose your country or region and your language.

    Suggested for you

      All countries and regions

        Choose your character

        It shows in the top bar and on your profile. Change it any time.

        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

        CSV files, one per table

        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.

        1. Count encounters by type and month, and the share of emergency visits that end in admission (disposition).
        2. Find 30-day readmissions: inpatient stays that start within 30 days of the same patient's last discharge.
        3. Work out the no-show rate by department from appointments.
        4. Compare billed, allowed and paid amounts in claims by payer, and list the denial reasons.
        5. Flag lab results outside ref_low and ref_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_idpayer_namepayer_type
        1MedicareMedicare
        2State MedicaidMedicaid
        3Bluepine Health PlanCommercial
        4Summit MutualCommercial
        5Harborline InsuranceCommercial

        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_idprovider_namespecialtydepartment
        1Amara OkaforHospital MedicineInpatient Medicine
        2Lucas BrennanHospital MedicineInpatient Medicine
        3Priya RamanCardiologyCardiology
        4Tomas IbarraEmergency MedicineEmergency Department
        5Hannah WeissEmergency MedicineEmergency 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_idmrnfirst_namelast_namebirth_datesexzippayer_idpcp_id
        1001CR439952MateoNovak1991-09-23M5031236
        1002CR939435MariaNguyen1950-02-04F5061318
        1003CR607251RobertQuinn1992-11-04M5042136
        1004CR848292EstherFoster1965-01-22F5061336
        1005CR532799LuisPatel1949-07-16M5031217

        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_idpatient_idencounter_typefacilitydepartmentadmit_datedischarge_datearrival_timeprovider_seen_timedeparture_timedispositionattending_idpayer_idplanned
        504101001outpatientCedar Ridge ClinicsPrimary Care2026-03-032026-03-03home63false
        504111001emergencyCedar Ridge Medical CenterEmergency Department2026-05-192026-05-192026-05-19 09:28:002026-05-19 11:44:002026-05-19 18:09:00admitted43false
        504121001observationLakeside Community HospitalCardiology2026-05-192026-05-19home33false
        504131002outpatientCedar Ridge ClinicsPrimary Care2026-02-142026-02-14home81false
        504141002outpatientCedar Ridge ClinicsPrimary Care2026-01-082026-01-08home81false

        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_idseqicd10_codedescriptionis_principal
        504101K21.9Gastro-esophageal reflux disease without esophagitistrue
        504111R55Syncope and collapsetrue
        504121R55Syncope and collapsetrue
        504122I48.91Unspecified atrial fibrillationfalse
        504131J44.9Chronic obstructive pulmonary disease, unspecifiedtrue

        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_idseqcode_systemprocedure_codedescriptionprocedure_date
        504831ICD-10-PCS10E0XZZDelivery of Products of Conception, External Approach2026-05-17
        505101ICD-10-PCS10E0XZZDelivery of Products of Conception, External Approach2026-05-30
        505121ICD-10-PCS10E0XZZDelivery of Products of Conception, External Approach2026-01-31
        505311ICD-10-PCS10E0XZZDelivery of Products of Conception, External Approach2026-02-01
        505581ICD-10-PCS10E0XZZDelivery of Products of Conception, External Approach2026-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_idpatient_idencounter_idtest_codetest_nameresult_valueunitref_lowref_highcollected_at
        1100150412CR-WBCWhite blood cell count13.210^3/uL4.5112026-05-19 18:11:00
        2100150412CR-NASodium142mmol/L1351452026-05-19 14:23:00
        3100150412CR-KPotassium4.3mmol/L3.55.12026-05-19 13:02:00
        4100150412CR-CREATCreatinine2.2mg/dL0.61.32026-05-19 16:45:00
        5100250418CR-WBCWhite blood cell count19.310^3/uL4.5112026-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_idpatient_idencounter_iddrug_namedoseroutefrequencystart_dateend_datestatus
        11002tiotropium18 mcginhaleddaily2026-01-31active
        21002albuterol90 mcginhaledevery 4 hours as needed2026-01-31active
        31003amoxicillin500 mgPOthree times daily2026-01-192026-01-29completed
        41004metformin500 mgPOtwice daily2026-02-28active
        51006metformin500 mgPOtwice daily2026-01-30active

        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_idpatient_idprovider_iddepartmentappointment_datebooked_datestatus
        7000010016Primary Care2026-03-032026-01-23completed
        7000110016Primary Care2026-07-132026-06-23scheduled
        70002100112Pulmonology2026-05-012026-04-16no-show
        7000310016Primary Care2026-07-052026-06-19scheduled
        7000410028Primary Care2026-02-142026-01-13completed

        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_idencounter_idpayer_idclaim_typebilled_amountallowed_amountpaid_amountstatusdenial_reasonsubmitted_dateadjudicated_date
        901542504103professional423.89202.85172.95paid2026-03-072026-04-14
        901543504113professional4970.42777.582646.92paid2026-05-232026-06-20
        901544504123institutional5657.253162.112781.85paid2026-05-212026-06-08
        901545504131professional317.499.6296.21paid2026-02-222026-04-07
        901546504141professional434.57147.18131.55paid2026-01-102026-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

        Free practice datasets

        Your Work Gym account

        Save your progress and pick up on another device. Your browser's progress comes with you.

        New accounts get 12 hours of full access: every course, unit, project and exam. The clock starts when you open your first lesson.

        Plan your practice from a job ad or syllabus

        Have a referral code?

        or

        You can keep practicing without an account.

        Change your plan

        Checking the price

        Help and feedback

        Ask a question, tell us what is not working, or share an idea. We reply by email.

        What is it about?

        We use it only to reply to you.