Sample encounters data
Patient visits, hospital admissions, and healthcare encounters
Free to download, no account needed for the 1k-row files below.
A free account gets you up to 10k rows; the larger files are on the paid plans.
This is synthetic data: it looks realistic and refers to nobody, so it
carries none of the data-protection risk of copying production records into a test system.
Downloads
| Size | Format | Locale |
|---|---|---|
| 1k rows | csv | de_DE en_GB en_US es_ES fr_FR ja_JP |
| 1k rows | jsonl | de_DE en_GB en_US es_ES fr_FR ja_JP |
| 1k rows | parquet | de_DE en_GB en_US es_ES fr_FR ja_JP |
| 10k rows | csv | free account (6 locales) |
| 10k rows | jsonl | free account (6 locales) |
| 10k rows | parquet | free account (6 locales) |
| 100k rows | csv | Basic plan (6 locales) |
| 100k rows | jsonl | Basic plan (6 locales) |
| 100k rows | parquet | Basic plan (6 locales) |
| 500k rows | csv | Basic plan (2 locales) |
| 500k rows | jsonl | Basic plan (2 locales) |
| 500k rows | parquet | Basic plan (2 locales) |
| 1M rows | csv | Pro plan (2 locales) |
| 1M rows | jsonl | Pro plan (2 locales) |
Columns
| Column | Type | |
|---|---|---|
id | id | always set |
encounter_id | sequence | always set |
patient_id | foreign_key | always set |
encounter_type | weighted_choice | always set |
encounter_class | weighted_choice | always set |
facility_name | weighted_choice | always set |
department | weighted_choice | always set |
attending_physician | name | always set |
attending_npi | regex | always set |
admission_date | datetime | always set |
discharge_date | datetime | optional |
length_of_stay_days | distribution_integer | optional |
chief_complaint | weighted_choice | always set |
admission_source | weighted_choice | always set |
discharge_disposition | weighted_choice | optional |
priority | weighted_choice | always set |
service_type | weighted_choice | always set |
room_number | regex | optional |
bed_number | choice | optional |
total_charges | distribution_float | always set |
status | weighted_choice | always set |
created_at | datetime | always set |
updated_at | datetime | always set |
Related tables — they join
These tables are generated together, so the keys below match across files. Download the same size, format and locale of each and a JOIN returns rows, not nothing.
| Table | Join on |
|---|---|
| Claims | claims.encounter_id → encounters.id |
| Diagnoses | diagnoses.encounter_id → encounters.id |
| Patients | encounters.patient_id → patients.id |
| Prescriptions | prescriptions.encounter_id → encounters.id |
Need more rows, or your own columns?
Paid plans
Basic £15/month. Datasets up to 500,000 rows and generation up to 100,000.
Pro £39/month. Datasets up to 10,000,000 rows and generation up to 1,000,000.
Generation builds this table, or a schema of your own, at the row count and locale you choose.