DataBrighten

    Sample healthcare data

    1,000 × 11rows × columns in the 1,000-row file

    Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.

    textnumberdateyes/no
    Largest file10,000rows; also 100 and 1,000
    Columns11with a data dictionary below
    Dates2024-01-02 – 2024-12-31range in the file
    LicenceCC0synthetic, free for any use

    What is in it

    Each row is one fictional hospital stay in 2024: admission and discharge dates, length of stay, age, sex, ward, admission type, insurance type, billed charges and whether the patient came back within 30 days. No real patients or hospitals; the numbers are made up for practice.

    More practice tables like this one: all 14 newer sample datasets.

    First rows

    point at a column to light it up

    patient_idtextadmission_datedatedischarge_datedatelength_of_staynumberagenumbersextextdepartmenttextadmission_typetextinsurancetexttotal_chargesnumberreadmitted_30dyes/no
    PT800012024-08-082024-08-16844MSurgeryEmergencyMedicaid45894.62FALSE
    PT800022024-10-222024-10-29750FGeneral MedicineUrgentPrivate24619.37FALSE
    PT800032024-07-232024-07-2859MPediatricsEmergencyPrivate23136.61TRUE
    PT800042024-03-072024-03-09247FSurgeryUrgentSelf-pay17956.7FALSE
    PT800052024-02-062024-02-07115MPediatricsElectivePrivate3810.9FALSE
    PT800062024-04-122024-04-18660FOrthopedicsElectiveMedicare53817.4FALSE
    PT800072024-07-112024-07-16517MPediatricsElectiveMedicaid13154.48FALSE
    PT800082024-08-232024-08-29650MOrthopedicsEmergencyMedicare55314.7FALSE
    PT800092024-11-062024-11-11557FSurgeryEmergencyMedicaid29598.78FALSE
    PT800102024-07-162024-07-22657MGeneral MedicineUrgentPrivate26808.1FALSE

    Average length of stay by ward

    days, 1,000-row file

    Neurology6.1Surgery5.5Cardiology5.0General Medicine4.8Orthopedics4.3Pediatrics3.3Maternity2.9
    Show as a table
    departmentvalue
    Neurology6.1
    Surgery5.5
    Cardiology5.0
    General Medicine4.8
    Orthopedics4.3
    Pediatrics3.3
    Maternity2.9
    Source: DataBrighten synthetic data (seed 42), computed from the file you can download here.

    Data dictionary

    ColumnTypeMeaning
    patient_idtextFictional patient number (no real patients)
    admission_datedateAdmitted (2024)
    discharge_datedateDischarged
    length_of_stayintegerdischarge_date - admission_date, in days
    ageintegerAge at admission
    sextextF or M
    departmenttextWard that admitted the patient
    admission_typetextEmergency, Urgent or Elective
    insurancetextMedicare, Medicaid, Private or Self-pay
    total_chargesdecimalBilled charges (USD, fictional)
    readmitted_30dbooleanReadmitted within 30 days (TRUE/FALSE)

    Practice questions

    answers checked in SQL and in Python

    Average length of stay by ward (days)?

    Neurology 6.1; Surgery 5.5; Cardiology 5.0; General Medicine 4.8; Orthopedics 4.3; Pediatrics 3.3; Maternity 2.9

    Excel

    =AVERAGEIF(G:G,"Surgery",D:D)

    SQL

    SELECT department, ROUND(AVG(length_of_stay),1) AS los FROM hospital_patients GROUP BY department ORDER BY los DESC, department

    File: hospital-patients-1000

    30-day readmission rate?

    7.2%

    Excel

    =COUNTIF(K:K,TRUE)/1000

    SQL

    SELECT ROUND(100.0*SUM(readmitted_30d)/COUNT(*),1) FROM hospital_patients

    File: hospital-patients-1000

    Admissions by insurance type?

    Private 453; Medicare 245; Medicaid 229; Self-pay 73

    Excel

    =COUNTIF(I:I,"Medicare")

    SQL

    SELECT insurance, COUNT(*) AS n FROM hospital_patients GROUP BY insurance ORDER BY n DESC, insurance

    File: hospital-patients-1000