Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 3 new columns ({'event_type', 'event_day', 'event_detail'}) and 28 missing columns ({'disease_type', 'pfs_days', 'pfs_event', 'adi_percentile', 'censoring_reason', 'os_days', 'smoking_pack_years', 'stage_idx_at_dx', 'diagnosis_date', 'best_overall_response', 'treatment_arm_1L', 'age_at_dx', 'response_day_from_dx', 'os_event', 'last_contact_days', 'ecog_ps_baseline', 'staging_system', 'insurance_type', 'bmi_at_dx', 'education_level', 'cci_at_dx', 'sex', 'race_ethnicity', 'death_cause', 'cohort_label', 'stage_at_dx', 'smoking_ever', 'progression_day_from_dx'}).

This happened while the csv dataset builder was generating data using

hf://datasets/xpertsystems/hlt004-sample/heart_failure/hlt004_events.csv (at revision 1117b6df6facc78fe7e37247823cdbd6a5272cfb), [/tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_baseline.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_baseline.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_events.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_events.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_longitudinal.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_longitudinal.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_baseline.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_baseline.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_events.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_events.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_longitudinal.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_longitudinal.csv)]

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1800, in _prepare_split_single
                  writer.write_table(table)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 765, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 773, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              patient_id: string
              event_type: string
              event_day: int64
              event_detail: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 741
              to
              {'patient_id': Value('string'), 'disease_type': Value('string'), 'cohort_label': Value('string'), 'staging_system': Value('string'), 'diagnosis_date': Value('string'), 'age_at_dx': Value('int64'), 'sex': Value('string'), 'race_ethnicity': Value('string'), 'ecog_ps_baseline': Value('int64'), 'smoking_ever': Value('bool'), 'smoking_pack_years': Value('float64'), 'bmi_at_dx': Value('float64'), 'cci_at_dx': Value('int64'), 'insurance_type': Value('string'), 'adi_percentile': Value('float64'), 'education_level': Value('string'), 'stage_at_dx': Value('string'), 'stage_idx_at_dx': Value('int64'), 'os_days': Value('int64'), 'os_event': Value('int64'), 'pfs_days': Value('int64'), 'pfs_event': Value('int64'), 'censoring_reason': Value('string'), 'death_cause': Value('string'), 'last_contact_days': Value('int64'), 'treatment_arm_1L': Value('string'), 'best_overall_response': Value('string'), 'response_day_from_dx': Value('float64'), 'progression_day_from_dx': Value('float64')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1347, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
                  builder.download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 882, in download_and_prepare
                  self._download_and_prepare(
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 943, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1646, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1802, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 3 new columns ({'event_type', 'event_day', 'event_detail'}) and 28 missing columns ({'disease_type', 'pfs_days', 'pfs_event', 'adi_percentile', 'censoring_reason', 'os_days', 'smoking_pack_years', 'stage_idx_at_dx', 'diagnosis_date', 'best_overall_response', 'treatment_arm_1L', 'age_at_dx', 'response_day_from_dx', 'os_event', 'last_contact_days', 'ecog_ps_baseline', 'staging_system', 'insurance_type', 'bmi_at_dx', 'education_level', 'cci_at_dx', 'sex', 'race_ethnicity', 'death_cause', 'cohort_label', 'stage_at_dx', 'smoking_ever', 'progression_day_from_dx'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/xpertsystems/hlt004-sample/heart_failure/hlt004_events.csv (at revision 1117b6df6facc78fe7e37247823cdbd6a5272cfb), [/tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_baseline.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_baseline.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_events.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_events.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_longitudinal.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/heart_failure/hlt004_longitudinal.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_baseline.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_baseline.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_events.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_events.csv), /tmp/hf-datasets-cache/medium/datasets/84758904603198-config-parquet-and-info-xpertsystems-hlt004-sampl-8999ed08/hub/datasets--xpertsystems--hlt004-sample/snapshots/1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_longitudinal.csv (origin=hf://datasets/xpertsystems/hlt004-sample@1117b6df6facc78fe7e37247823cdbd6a5272cfb/nsclc/hlt004_longitudinal.csv)]
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

patient_id
string
disease_type
string
cohort_label
string
staging_system
string
diagnosis_date
string
age_at_dx
int64
sex
string
race_ethnicity
string
ecog_ps_baseline
int64
smoking_ever
bool
smoking_pack_years
float64
bmi_at_dx
float64
cci_at_dx
int64
insurance_type
string
adi_percentile
float64
education_level
string
stage_at_dx
string
stage_idx_at_dx
int64
os_days
int64
os_event
int64
pfs_days
int64
pfs_event
int64
censoring_reason
string
death_cause
string
last_contact_days
int64
treatment_arm_1L
string
best_overall_response
string
response_day_from_dx
float64
progression_day_from_dx
float64
HLT004-0000001
heart_failure
Heart Failure
NYHA Class I-IV
2016-12-29
75
Male
Hispanic_Latino
0
true
6.1
34
1
Uninsured
48.8
HS_Diploma
NYHA_IV
3
448
1
37
1
death
disease
448
lvad
PR
49
null
HLT004-0000002
heart_failure
Heart Failure
NYHA Class I-IV
2014-04-04
59
Female
White
1
false
0
19.6
0
Commercial
25.2
Less_than_HS
NYHA_III
2
576
1
576
1
death
disease
576
ivabradine
PR
41
null
HLT004-0000003
heart_failure
Heart Failure
NYHA Class I-IV
2023-05-19
81
Male
Black_AA
1
false
0
25.9
0
Medicare
24.9
Bachelors_Plus
NYHA_II
1
1,825
0
974
1
administrative
censored
1,825
gdmt_core
PD
null
974
HLT004-0000004
heart_failure
Heart Failure
NYHA Class I-IV
2023-02-28
83
Female
White
0
true
16
33.3
2
Medicare
13.7
Bachelors_Plus
NYHA_III
2
1,125
0
1,125
0
lost_to_follow_up
censored
1,125
gdmt_core
SD
null
791
HLT004-0000005
heart_failure
Heart Failure
NYHA Class I-IV
2015-09-23
48
Female
White
0
true
41
25.3
1
Medicare
65.3
Bachelors_Plus
NYHA_II
1
1,825
0
1,106
1
administrative
censored
1,825
lvad
PD
null
1,106
HLT004-0000006
heart_failure
Heart Failure
NYHA Class I-IV
2017-02-10
56
Male
White
0
false
0
19.1
1
Commercial
89
Less_than_HS
NYHA_II
1
155
1
155
0
death
other_cause
155
gdmt_core
PR
54
null
HLT004-0000007
heart_failure
Heart Failure
NYHA Class I-IV
2021-06-02
73
Male
White
2
false
0
33.2
3
Commercial
74.1
HS_Diploma
NYHA_II
1
772
0
772
0
lost_to_follow_up
censored
772
lvad
SD
null
565
HLT004-0000008
heart_failure
Heart Failure
NYHA Class I-IV
2020-08-08
68
Male
Black_AA
1
true
23.1
36.1
1
Medicare
15.9
Less_than_HS
NYHA_IV
3
66
0
52
1
lost_to_follow_up
censored
66
ivabradine
PR
52
null
HLT004-0000009
heart_failure
Heart Failure
NYHA Class I-IV
2019-10-24
71
Female
Hispanic_Latino
0
true
37.7
28.8
1
Commercial
69.3
Bachelors_Plus
NYHA_IV
3
351
1
126
1
death
disease
351
gdmt_core
PR
67
null
HLT004-0000010
heart_failure
Heart Failure
NYHA Class I-IV
2023-11-20
61
Female
White
2
false
0
16.9
0
Medicare
12.7
Some_College
NYHA_III
2
1,414
0
551
1
lost_to_follow_up
censored
1,414
lvad
PR
55
null
HLT004-0000011
heart_failure
Heart Failure
NYHA Class I-IV
2020-04-17
82
Male
White
1
true
34
33.5
1
Medicare
15.6
Some_College
NYHA_I
0
1,758
1
1,758
0
death
other_cause
1,758
gdmt_core
PR
62
null
HLT004-0000012
heart_failure
Heart Failure
NYHA Class I-IV
2020-09-09
81
Female
White
1
true
3.7
18.8
3
Medicare
61.4
Some_College
NYHA_II
1
68
1
68
0
death
other_cause
68
lvad
PR
82
null
HLT004-0000013
heart_failure
Heart Failure
NYHA Class I-IV
2019-01-07
72
Male
Hispanic_Latino
3
true
10.8
31
2
Medicare
25.1
HS_Diploma
NYHA_II
1
596
1
596
1
death
disease
596
lvad
SD
null
430
HLT004-0000014
heart_failure
Heart Failure
NYHA Class I-IV
2019-04-01
85
Female
White
0
false
0
23.6
1
Commercial
23.2
Some_College
NYHA_IV
3
253
1
253
1
death
disease
253
gdmt_core
SD
null
152
HLT004-0000015
heart_failure
Heart Failure
NYHA Class I-IV
2016-11-28
77
Female
Black_AA
0
false
0
21.9
1
Uninsured
67.5
Less_than_HS
NYHA_I
0
1,108
1
1,108
1
death
other_cause
1,108
ivabradine
PR
56
null
HLT004-0000016
heart_failure
Heart Failure
NYHA Class I-IV
2019-03-17
61
Female
White
1
false
0
26.4
1
Commercial
13.6
Some_College
NYHA_I
0
836
1
836
1
death
disease
836
ivabradine
PR
74
null
HLT004-0000017
heart_failure
Heart Failure
NYHA Class I-IV
2023-03-06
76
Female
White
0
false
0
28
0
Medicare
68.9
Bachelors_Plus
NYHA_III
2
1,312
0
318
1
lost_to_follow_up
censored
1,312
lvad
PD
null
318
HLT004-0000018
heart_failure
Heart Failure
NYHA Class I-IV
2017-10-07
60
Female
Black_AA
1
false
0
25.1
0
Commercial
50.4
Some_College
NYHA_II
1
863
1
793
1
death
other_cause
863
ivabradine
PR
51
null
HLT004-0000019
heart_failure
Heart Failure
NYHA Class I-IV
2015-05-02
82
Male
Black_AA
0
false
0
32.7
0
Commercial
79.1
HS_Diploma
NYHA_III
2
1,016
1
642
1
death
disease
1,016
ivabradine
SD
null
439
HLT004-0000020
heart_failure
Heart Failure
NYHA Class I-IV
2019-12-30
71
Male
White
0
false
0
26.3
1
Commercial
73.1
Bachelors_Plus
NYHA_I
0
468
1
468
1
death
disease
468
lvad
CR
87
null
HLT004-0000021
heart_failure
Heart Failure
NYHA Class I-IV
2021-11-05
69
Male
Hispanic_Latino
0
false
0
35.2
1
Medicare
59.1
Some_College
NYHA_III
2
50
0
50
0
lost_to_follow_up
censored
50
gdmt_core
SD
null
44
HLT004-0000022
heart_failure
Heart Failure
NYHA Class I-IV
2023-08-01
63
Male
NHOPI
1
false
0
30.8
0
Commercial
45.9
HS_Diploma
NYHA_I
0
598
1
598
0
death
other_cause
598
ivabradine
PR
31
null
HLT004-0000023
heart_failure
Heart Failure
NYHA Class I-IV
2019-06-02
86
Female
White
0
true
52.2
24.8
1
Medicare
25.1
HS_Diploma
NYHA_I
0
1,825
0
142
1
administrative
censored
1,825
gdmt_core
PR
86
null
HLT004-0000024
heart_failure
Heart Failure
NYHA Class I-IV
2021-11-16
70
Female
White
0
false
0
23.7
0
Commercial
44.4
Some_College
NYHA_II
1
1,825
0
329
1
administrative
censored
1,825
ivabradine
PR
37
null
HLT004-0000025
heart_failure
Heart Failure
NYHA Class I-IV
2016-07-03
66
Female
White
2
false
0
18.9
0
Commercial
86.1
HS_Diploma
NYHA_II
1
1,269
1
1,240
1
death
disease
1,269
ivabradine
CR
75
null
HLT004-0000026
heart_failure
Heart Failure
NYHA Class I-IV
2018-03-29
67
Male
Hispanic_Latino
0
true
5
30.9
4
Medicare
56.5
Less_than_HS
NYHA_III
2
673
0
338
1
lost_to_follow_up
censored
673
lvad
SD
null
273
HLT004-0000027
heart_failure
Heart Failure
NYHA Class I-IV
2018-03-10
78
Female
White
1
false
0
26.9
2
Medicare
72.6
HS_Diploma
NYHA_I
0
253
0
253
0
lost_to_follow_up
censored
253
ivabradine
CR
73
null
HLT004-0000028
heart_failure
Heart Failure
NYHA Class I-IV
2017-04-28
76
Male
White
0
true
19.8
15
1
Medicare
55.8
HS_Diploma
NYHA_I
0
801
0
801
0
lost_to_follow_up
censored
801
gdmt_core
PR
39
null
HLT004-0000029
heart_failure
Heart Failure
NYHA Class I-IV
2021-02-26
76
Male
White
1
true
16.5
25.8
1
Medicare
36.6
Some_College
NYHA_III
2
333
1
333
1
death
disease
333
lvad
PR
60
null
HLT004-0000030
heart_failure
Heart Failure
NYHA Class I-IV
2022-10-30
77
Female
Hispanic_Latino
0
false
0
23.5
4
Medicare
31.6
Some_College
NYHA_II
1
1,249
1
1,249
0
death
other_cause
1,249
lvad
PR
88
null
HLT004-0000031
heart_failure
Heart Failure
NYHA Class I-IV
2017-04-07
95
Female
White
1
true
17.2
38.9
3
Medicare
39.4
HS_Diploma
NYHA_III
2
616
1
616
1
death
other_cause
616
lvad
PR
52
null
HLT004-0000032
heart_failure
Heart Failure
NYHA Class I-IV
2015-05-11
67
Female
Black_AA
0
false
0
18.5
2
Medicare
30.3
Some_College
NYHA_III
2
151
1
151
1
death
disease
151
lvad
SD
null
120
HLT004-0000033
heart_failure
Heart Failure
NYHA Class I-IV
2022-04-01
65
Male
White
2
false
0
20.2
0
Medicaid
60.1
HS_Diploma
NYHA_I
0
485
1
485
1
death
disease
485
ivabradine
CR
67
null
HLT004-0000034
heart_failure
Heart Failure
NYHA Class I-IV
2022-06-28
62
Female
Asian
3
false
0
36
0
Commercial
4.5
HS_Diploma
NYHA_III
2
1,167
1
232
1
death
disease
1,167
lvad
PR
52
null
HLT004-0000035
heart_failure
Heart Failure
NYHA Class I-IV
2023-05-06
79
Male
White
0
true
1
37.5
1
Medicare
51.2
HS_Diploma
NYHA_II
1
983
1
983
0
death
other_cause
983
gdmt_core
SD
null
754
HLT004-0000036
heart_failure
Heart Failure
NYHA Class I-IV
2016-07-20
85
Female
White
0
true
65.6
24.5
2
Commercial
37.6
Bachelors_Plus
NYHA_II
1
906
1
563
1
death
other_cause
906
gdmt_core
PR
40
null
HLT004-0000037
heart_failure
Heart Failure
NYHA Class I-IV
2021-03-09
70
Female
Hispanic_Latino
0
true
10.1
25.2
0
Medicaid
77.1
Bachelors_Plus
NYHA_I
0
45
1
45
0
death
other_cause
45
lvad
PR
49
null
HLT004-0000038
heart_failure
Heart Failure
NYHA Class I-IV
2021-02-25
61
Male
Asian
1
true
10
32.9
1
Medicare
39.9
Some_College
NYHA_III
2
983
1
927
1
death
disease
983
lvad
PD
null
927
HLT004-0000039
heart_failure
Heart Failure
NYHA Class I-IV
2021-11-23
62
Male
White
0
false
0
15
2
Uninsured
57.8
Less_than_HS
NYHA_III
2
1,123
1
661
1
death
disease
1,123
gdmt_core
PR
81
null
HLT004-0000040
heart_failure
Heart Failure
NYHA Class I-IV
2022-01-21
79
Male
White
2
false
0
17.6
2
Commercial
50.2
HS_Diploma
NYHA_II
1
1,095
1
1,095
1
death
disease
1,095
gdmt_core
PR
79
null
HLT004-0000041
heart_failure
Heart Failure
NYHA Class I-IV
2023-07-09
80
Female
Hispanic_Latino
2
true
24.5
27.4
1
Medicare
41.7
HS_Diploma
NYHA_IV
3
1,064
1
43
1
death
disease
1,064
lvad
CR
47
null
HLT004-0000042
heart_failure
Heart Failure
NYHA Class I-IV
2018-10-08
78
Male
Hispanic_Latino
2
false
0
38.7
3
Commercial
42.8
Bachelors_Plus
NYHA_II
1
484
0
484
0
lost_to_follow_up
censored
484
gdmt_core
CR
31
null
HLT004-0000043
heart_failure
Heart Failure
NYHA Class I-IV
2014-10-05
64
Female
White
1
true
3.3
26.4
0
Medicare
21.9
Less_than_HS
NYHA_IV
3
366
1
167
1
death
disease
366
gdmt_core
PD
null
167
HLT004-0000044
heart_failure
Heart Failure
NYHA Class I-IV
2015-12-03
74
Female
White
4
true
16.2
29.7
1
Medicare
17.3
Bachelors_Plus
NYHA_III
2
39
1
39
1
death
other_cause
39
gdmt_core
SD
null
30
HLT004-0000045
heart_failure
Heart Failure
NYHA Class I-IV
2022-11-11
73
Female
Hispanic_Latino
0
true
2.3
36.1
2
Medicare
41.2
Some_College
NYHA_IV
3
92
1
92
1
death
disease
92
gdmt_core
PR
64
null
HLT004-0000046
heart_failure
Heart Failure
NYHA Class I-IV
2022-06-11
74
Male
Hispanic_Latino
1
false
0
42.2
0
Commercial
35
Some_College
NYHA_IV
3
502
1
380
1
death
disease
502
gdmt_core
SD
null
322
HLT004-0000047
heart_failure
Heart Failure
NYHA Class I-IV
2014-02-10
82
Female
Hispanic_Latino
0
false
0
25.5
1
Medicare
39.8
Bachelors_Plus
NYHA_IV
3
151
1
144
1
death
disease
151
lvad
SD
null
118
HLT004-0000048
heart_failure
Heart Failure
NYHA Class I-IV
2017-09-03
74
Male
White
3
true
38.8
29
4
Medicare
39.7
Less_than_HS
NYHA_I
0
1,591
1
1,591
1
death
disease
1,591
ivabradine
PR
88
null
HLT004-0000049
heart_failure
Heart Failure
NYHA Class I-IV
2016-06-13
80
Female
White
1
false
0
40.4
1
Medicaid
64.9
Bachelors_Plus
NYHA_III
2
1,274
0
970
1
lost_to_follow_up
censored
1,274
ivabradine
CR
53
null
HLT004-0000050
heart_failure
Heart Failure
NYHA Class I-IV
2017-03-16
72
Female
Hispanic_Latino
2
false
0
19.7
2
Medicaid
50.2
Less_than_HS
NYHA_III
2
198
1
198
1
death
disease
198
lvad
PD
null
198
HLT004-0000051
heart_failure
Heart Failure
NYHA Class I-IV
2020-05-20
75
Female
Hispanic_Latino
0
false
0
35.5
0
Medicaid
13.3
Bachelors_Plus
NYHA_III
2
116
0
116
0
lost_to_follow_up
censored
116
ivabradine
PR
38
null
HLT004-0000052
heart_failure
Heart Failure
NYHA Class I-IV
2019-02-05
79
Female
Hispanic_Latino
3
true
25
22.8
0
VA
26.6
Some_College
NYHA_II
1
1,825
0
1,825
0
administrative
censored
1,825
lvad
PR
55
null
HLT004-0000053
heart_failure
Heart Failure
NYHA Class I-IV
2018-10-22
54
Male
White
1
true
12.8
29.7
0
Medicare
54.8
Less_than_HS
NYHA_IV
3
89
1
89
1
death
disease
89
ivabradine
PD
null
89
HLT004-0000054
heart_failure
Heart Failure
NYHA Class I-IV
2018-05-08
68
Male
White
1
false
0
27.6
3
Uninsured
40.8
Bachelors_Plus
NYHA_II
1
1,076
1
1,076
1
death
disease
1,076
ivabradine
PD
null
1,076
HLT004-0000055
heart_failure
Heart Failure
NYHA Class I-IV
2020-05-30
66
Male
Hispanic_Latino
3
true
35
23.2
1
Commercial
6.5
Less_than_HS
NYHA_II
1
45
0
45
0
lost_to_follow_up
censored
45
lvad
PR
88
null
HLT004-0000056
heart_failure
Heart Failure
NYHA Class I-IV
2020-10-29
64
Male
White
1
false
0
23
1
Uninsured
41.7
HS_Diploma
NYHA_II
1
1,077
0
213
1
lost_to_follow_up
censored
1,077
lvad
SD
null
183
HLT004-0000057
heart_failure
Heart Failure
NYHA Class I-IV
2014-06-08
68
Male
AIAN
1
false
0
30.8
1
Medicare
48.9
Bachelors_Plus
NYHA_II
1
1,397
1
1,397
1
death
disease
1,397
lvad
PR
59
null
HLT004-0000058
heart_failure
Heart Failure
NYHA Class I-IV
2015-05-16
89
Male
White
1
true
13.5
35.3
1
Commercial
57.5
Some_College
NYHA_III
2
445
1
445
1
death
other_cause
445
lvad
CR
30
null
HLT004-0000059
heart_failure
Heart Failure
NYHA Class I-IV
2017-05-30
61
Male
Black_AA
0
false
0
28.3
1
Commercial
60.1
Bachelors_Plus
NYHA_I
0
914
0
914
0
lost_to_follow_up
censored
914
gdmt_core
SD
null
580
HLT004-0000060
heart_failure
Heart Failure
NYHA Class I-IV
2018-05-10
83
Male
Hispanic_Latino
0
false
0
29.5
5
Commercial
50.7
Some_College
NYHA_III
2
542
0
542
0
lost_to_follow_up
censored
542
lvad
SD
null
438
HLT004-0000061
heart_failure
Heart Failure
NYHA Class I-IV
2023-12-16
51
Male
White
0
false
0
32.6
2
Medicare
3.8
Some_College
NYHA_III
2
839
1
794
1
death
disease
839
lvad
CR
56
null
HLT004-0000062
heart_failure
Heart Failure
NYHA Class I-IV
2022-11-29
67
Female
White
0
false
0
23.1
0
VA
63.8
HS_Diploma
NYHA_II
1
650
0
330
1
lost_to_follow_up
censored
650
gdmt_core
SD
null
286
HLT004-0000063
heart_failure
Heart Failure
NYHA Class I-IV
2020-06-26
73
Female
Black_AA
2
false
0
33.7
1
Uninsured
11.9
HS_Diploma
NYHA_III
2
1,694
1
299
1
death
other_cause
1,694
lvad
PR
88
null
HLT004-0000064
heart_failure
Heart Failure
NYHA Class I-IV
2014-05-12
79
Male
White
1
false
0
34.2
1
VA
16.1
Bachelors_Plus
NYHA_II
1
1,015
1
1,015
1
death
other_cause
1,015
gdmt_core
SD
null
807
HLT004-0000065
heart_failure
Heart Failure
NYHA Class I-IV
2015-01-03
80
Male
White
1
false
0
45.2
1
Commercial
61.6
Less_than_HS
NYHA_III
2
1,459
1
594
1
death
disease
1,459
gdmt_core
PR
72
null
HLT004-0000066
heart_failure
Heart Failure
NYHA Class I-IV
2018-07-28
81
Male
Black_AA
1
false
0
26.8
3
Commercial
55.5
Some_College
NYHA_IV
3
499
1
499
1
death
disease
499
lvad
SD
null
344
HLT004-0000067
heart_failure
Heart Failure
NYHA Class I-IV
2019-11-13
67
Female
Asian
1
false
0
26.3
2
Medicare
9.8
HS_Diploma
NYHA_II
1
1,825
0
1,310
1
administrative
censored
1,825
gdmt_core
PD
null
1,310
HLT004-0000068
heart_failure
Heart Failure
NYHA Class I-IV
2020-08-07
66
Male
White
1
true
120
33.9
1
Medicaid
34.7
HS_Diploma
NYHA_III
2
567
1
410
1
death
disease
567
ivabradine
PD
null
410
HLT004-0000069
heart_failure
Heart Failure
NYHA Class I-IV
2015-06-03
82
Male
White
3
true
4.5
34.2
1
Commercial
56.9
Some_College
NYHA_II
1
1,214
0
974
1
lost_to_follow_up
censored
1,214
ivabradine
SD
null
795
HLT004-0000070
heart_failure
Heart Failure
NYHA Class I-IV
2022-11-15
69
Male
White
3
true
2.7
25.8
2
Medicare
48.6
Bachelors_Plus
NYHA_III
2
867
1
747
1
death
disease
867
lvad
PR
75
null
HLT004-0000071
heart_failure
Heart Failure
NYHA Class I-IV
2018-12-06
56
Male
White
1
false
0
26.6
1
Medicare
45.3
Bachelors_Plus
NYHA_III
2
740
0
206
1
lost_to_follow_up
censored
740
ivabradine
SD
null
125
HLT004-0000072
heart_failure
Heart Failure
NYHA Class I-IV
2019-12-08
58
Male
White
0
false
0
32.5
2
Commercial
21.7
Bachelors_Plus
NYHA_II
1
1,825
0
831
1
administrative
censored
1,825
lvad
CR
50
null
HLT004-0000073
heart_failure
Heart Failure
NYHA Class I-IV
2014-05-24
60
Female
White
1
false
0
24
0
Commercial
54
HS_Diploma
NYHA_III
2
1,545
0
359
1
lost_to_follow_up
censored
1,545
lvad
PD
null
359
HLT004-0000074
heart_failure
Heart Failure
NYHA Class I-IV
2022-03-29
77
Female
Black_AA
1
true
8.4
26.6
3
Medicare
53.6
Some_College
NYHA_II
1
539
0
539
0
lost_to_follow_up
censored
539
ivabradine
PR
83
null
HLT004-0000075
heart_failure
Heart Failure
NYHA Class I-IV
2019-06-06
73
Female
White
1
false
0
29.7
1
Medicare
79.3
Less_than_HS
NYHA_II
1
860
0
850
1
lost_to_follow_up
censored
860
lvad
PR
47
null
HLT004-0000076
heart_failure
Heart Failure
NYHA Class I-IV
2016-03-23
80
Female
Asian
1
false
0
35.3
2
Medicaid
18.7
Bachelors_Plus
NYHA_IV
3
280
1
138
1
death
disease
280
lvad
PD
null
138
HLT004-0000077
heart_failure
Heart Failure
NYHA Class I-IV
2017-03-09
66
Female
White
1
true
6.2
25.4
1
Medicaid
35.7
HS_Diploma
NYHA_I
0
1,568
1
1,130
1
death
disease
1,568
ivabradine
SD
null
800
HLT004-0000078
heart_failure
Heart Failure
NYHA Class I-IV
2017-07-11
73
Male
White
0
false
0
17.7
2
Medicaid
45.1
Some_College
NYHA_III
2
349
1
349
1
death
disease
349
lvad
CR
36
null
HLT004-0000079
heart_failure
Heart Failure
NYHA Class I-IV
2014-04-09
79
Female
Hispanic_Latino
0
false
0
17.2
1
Commercial
41.6
HS_Diploma
NYHA_II
1
55
1
55
1
death
other_cause
55
ivabradine
PR
51
null
HLT004-0000080
heart_failure
Heart Failure
NYHA Class I-IV
2023-06-01
68
Female
Hispanic_Latino
1
false
0
21.3
0
Commercial
60.2
Bachelors_Plus
NYHA_III
2
651
1
651
1
death
disease
651
gdmt_core
SD
null
450
HLT004-0000081
heart_failure
Heart Failure
NYHA Class I-IV
2022-01-09
77
Male
White
0
true
9.2
21
2
Medicare
34.5
Bachelors_Plus
NYHA_III
2
599
1
599
1
death
other_cause
599
gdmt_core
CR
45
null
HLT004-0000082
heart_failure
Heart Failure
NYHA Class I-IV
2022-11-08
64
Female
White
0
false
0
28.1
2
Medicare
38.7
Bachelors_Plus
NYHA_II
1
793
1
377
1
death
other_cause
793
ivabradine
PR
89
null
HLT004-0000083
heart_failure
Heart Failure
NYHA Class I-IV
2017-07-14
67
Male
White
1
false
0
21.7
1
Commercial
28.8
Less_than_HS
NYHA_II
1
1,661
0
142
1
lost_to_follow_up
censored
1,661
gdmt_core
PR
35
null
HLT004-0000084
heart_failure
Heart Failure
NYHA Class I-IV
2019-07-30
67
Male
White
1
false
0
24.7
3
Commercial
76.5
Bachelors_Plus
NYHA_II
1
1,656
0
869
1
lost_to_follow_up
censored
1,656
ivabradine
SD
null
761
HLT004-0000085
heart_failure
Heart Failure
NYHA Class I-IV
2018-07-31
57
Female
White
0
false
0
24.3
0
Commercial
43.1
HS_Diploma
NYHA_IV
3
169
0
169
0
lost_to_follow_up
censored
169
gdmt_core
SD
null
143
HLT004-0000086
heart_failure
Heart Failure
NYHA Class I-IV
2018-10-02
77
Female
White
1
false
0
26.4
3
Medicare
21.4
HS_Diploma
NYHA_II
1
871
0
871
0
lost_to_follow_up
censored
871
ivabradine
PD
null
871
HLT004-0000087
heart_failure
Heart Failure
NYHA Class I-IV
2019-11-20
66
Female
White
2
true
13.7
37.3
3
Commercial
45.6
HS_Diploma
NYHA_II
1
8
1
8
0
death
other_cause
8
gdmt_core
SD
null
7
HLT004-0000088
heart_failure
Heart Failure
NYHA Class I-IV
2018-07-05
72
Male
White
0
false
0
33.2
2
Medicare
16.6
HS_Diploma
NYHA_III
2
1,065
1
1,065
1
death
other_cause
1,065
lvad
CR
80
null
HLT004-0000089
heart_failure
Heart Failure
NYHA Class I-IV
2021-09-23
77
Male
Asian
2
false
0
29.2
1
Medicare
55.9
Some_College
NYHA_II
1
374
0
374
0
lost_to_follow_up
censored
374
ivabradine
PD
null
374
HLT004-0000090
heart_failure
Heart Failure
NYHA Class I-IV
2014-08-03
77
Female
Black_AA
3
false
0
26.2
3
Commercial
46.1
HS_Diploma
NYHA_II
1
458
1
458
1
death
disease
458
gdmt_core
PD
null
458
HLT004-0000091
heart_failure
Heart Failure
NYHA Class I-IV
2015-12-05
79
Male
White
1
true
19.5
26.4
1
Medicare
53.1
HS_Diploma
NYHA_II
1
1,606
1
1,167
1
death
disease
1,606
ivabradine
PR
77
null
HLT004-0000092
heart_failure
Heart Failure
NYHA Class I-IV
2022-12-02
70
Female
White
1
false
0
31.1
0
Medicare
22.9
Some_College
NYHA_II
1
76
1
76
1
death
other_cause
76
ivabradine
PR
66
null
HLT004-0000093
heart_failure
Heart Failure
NYHA Class I-IV
2022-10-26
66
Male
White
0
false
0
32.7
1
Medicare
35.3
Bachelors_Plus
NYHA_III
2
935
1
341
1
death
disease
935
ivabradine
PR
65
null
HLT004-0000094
heart_failure
Heart Failure
NYHA Class I-IV
2022-03-06
71
Male
White
3
true
52.4
23.5
1
Medicare
48.8
Some_College
NYHA_IV
3
328
1
328
1
death
disease
328
ivabradine
SD
null
230
HLT004-0000095
heart_failure
Heart Failure
NYHA Class I-IV
2017-09-07
51
Male
Hispanic_Latino
1
false
0
29.3
1
Medicare
18.5
Some_College
NYHA_IV
3
386
1
298
1
death
disease
386
gdmt_core
PR
49
null
HLT004-0000096
heart_failure
Heart Failure
NYHA Class I-IV
2018-07-24
54
Female
Hispanic_Latino
3
true
8.1
16.5
1
Commercial
31.9
HS_Diploma
NYHA_IV
3
477
1
275
1
death
disease
477
lvad
SD
null
220
HLT004-0000097
heart_failure
Heart Failure
NYHA Class I-IV
2014-04-03
56
Male
Hispanic_Latino
1
false
0
30.4
0
Medicare
15.1
Bachelors_Plus
NYHA_II
1
1,399
1
917
1
death
other_cause
1,399
ivabradine
SD
null
585
HLT004-0000098
heart_failure
Heart Failure
NYHA Class I-IV
2016-10-16
60
Male
NHOPI
0
false
0
33.8
2
Medicaid
47.3
Less_than_HS
NYHA_II
1
264
0
264
0
lost_to_follow_up
censored
264
gdmt_core
SD
null
212
HLT004-0000099
heart_failure
Heart Failure
NYHA Class I-IV
2021-04-05
76
Male
NHOPI
0
true
7.8
27.4
5
Commercial
57.2
HS_Diploma
NYHA_III
2
1,270
0
827
1
lost_to_follow_up
censored
1,270
lvad
CR
50
null
HLT004-0000100
heart_failure
Heart Failure
NYHA Class I-IV
2017-06-05
61
Male
Asian
1
false
0
40.4
2
Medicare
6.3
Less_than_HS
NYHA_IV
3
635
1
359
1
death
disease
635
ivabradine
PR
51
null
End of preview.

HLT-004 — Synthetic Disease Progression Dataset (Sample Preview)

A free, schema-identical preview of the full HLT-004 commercial product from XpertSystems.ai.

A fully synthetic longitudinal disease progression dataset combining patient-level baseline records, visit-level biomarker trajectories, and structured event logs across two clinically distinct disease modules: NSCLC (oncology survival) and Heart Failure (chronic cardiovascular progression). Calibrated to SEER 5-year survival, AJCC TNM 8th Edition staging, NYHA Functional Classification, RECIST 1.1 response criteria, CTCAE v5.0 adverse events, and Fine-Gray competing-risk survival outcomes.

⚠️ PRIVACY & SYNTHETIC NATURE Every record in this dataset is 100% synthetic. No real patient data, no PHI, no re-identifiable records. Stage-specific survival distributions and treatment response rates match published SEER / clinical trial benchmarks but the patients are computationally generated.


What's in this sample

Two disease modules, each with three CSVs:

nsclc/ — Non-Small Cell Lung Cancer (TNM 8th Edition staging)

File Rows Cols Description
hlt004_baseline.csv 400 37 Patient-level: demographics, ECOG PS, CCI, stage at dx, OS/PFS, death cause, 1L treatment arm, best overall response (CR/PR/SD/PD)
hlt004_longitudinal.csv 3,323 33 Visit-level: ~8.3 visits/patient × 5yr follow-up; CEA biomarker trajectory, labs, AEs, on-treatment flag, RECIST per imaging visit
hlt004_events.csv 1,943 4 Event log: diagnosis / treatment_start_1L / treatment_end_1L / response_assessment / progression / os_endpoint

heart_failure/ — Heart Failure (NYHA Class I-IV)

File Rows Cols Description
hlt004_baseline.csv 400 37 Patient-level: demographics, ECOG-equivalent ambulation, CCI, NYHA Class at dx, OS/PFS-equivalent, death cause, 1L therapy arm (GDMT/Ivabradine/LVAD)
hlt004_longitudinal.csv 4,502 33 Visit-level: ~11.3 visits/patient over 5yr; NT-proBNP biomarker, labs, AEs
hlt004_events.csv 1,969 4 Event log analogous to NSCLC structure

Total: ~12,500 rows across 8 CSVs + 2 generator summaries = ~2.2 MB.


Schema highlights

Baseline (37 columns, patient-level)

Identity: patient_id, disease_type, diagnosis_date

Demographics: age_at_dx, sex, race_ethnicity, bmi_baseline, smoking_ever, pack_years, insurance_type

Clinical scoring: ecog_ps_baseline (0-4), cci_at_dx (Charlson Comorbidity Index), stage_at_dx, stage_idx_at_dx (numeric)

Survival (Fine-Gray competing risk): os_days, os_event (death/censored), pfs_days, pfs_event, censoring_reason, death_cause, last_contact_days

Treatment: treatment_arm_1L (regimen code), best_overall_response (CR/PR/SD/PD per RECIST 1.1), response_day_from_dx, progression_day_from_dx

Longitudinal (33 columns, visit-level)

Visit metadata: patient_id, visit_id, visit_number, visit_date, days_from_dx, visit_type (baseline/imaging/routine_lab/urgent/hospitalization)

Disease state: stage_current, stage_idx_current, stage_changed_flag (Markov transitions)

Biomarker (disease-specific): NSCLC → cea_value (CEA, ng/mL); HF → ntprobnp_value (NT-proBNP, pg/mL); plus *_units

Treatment state: on_treatment_flag, treatment_line, treatment_arm

RECIST 1.1: recist_response_visit (CR/PR/SD/PD/N/A per imaging visit, derived from marker change)

Labs (10 panels): wbc, hgb, plt, anc, creatinine, bun, alt, ast, albumin, bilirubin

Adverse events (CTCAE v5.0): ae_count_grade1, ae_count_grade2, ae_count_grade3, ae_count_grade4

Events (4 columns, sparse event log)

patient_id, event_type ∈ {diagnosis, treatment_start_1L, treatment_end_1L, response_assessment, progression, os_endpoint}, event_day (days from dx), event_detail


Coverage

2 fully-calibrated disease modules demonstrated:

  • NSCLC (oncology) — TNM 8th Edition, SEER-calibrated OS by stage, CEA biomarker, 4 treatment regimens (Carboplatin/Pemetrexed/Pembrolizumab, Carboplatin/Paclitaxel, Pembrolizumab mono, Docetaxel 2L)
  • Heart Failure (chronic CV) — NYHA Class I-IV, 3 treatment lines (GDMT, Ivabradine add-on, LVAD)

Survival modeling:

  • Weibull-distributed time-to-event with shape parameter 1.2
  • Stage-specific median OS calibrated to SEER (NSCLC) and Pocock et al. 2013 (HF)
  • Competing-risk death cause assignment (Fine-Gray framework)
  • Administrative censoring at follow-up end

Biomarker dynamics:

  • Gaussian-process trajectories with stage-mean drift
  • Response-driven dips (CR/PR) and progression-driven rises
  • Disease-specific markers calibrated to clinical literature

Stage transitions:

  • Markov-chain time-inhomogeneous transitions
  • Stage 1→2→3→4 progression probabilities tied to PFS days

Adverse events:

  • CTCAE v5.0 grade 1-4 counts per visit
  • On-treatment elevation, ECOG-driven baseline rates

Missing data:

  • MAR rate 10% + MCAR rate 2% applied to biomarker/lab columns

Calibration source story

The full HLT-004 generator anchors all distributions to authoritative oncology and cardiology references:

  • SEER (Surveillance, Epidemiology, End Results) Program — 5-year overall survival benchmarks by cancer stage (NSCLC Stage I=63%, II=37%, III=15%, IV=6%)
  • AJCC TNM 8th Edition (2017) — Cancer staging anatomical definitions
  • NYHA Functional Classification (1994 update) — Heart Failure stages I-IV with associated 1-year mortality 5%/15%/30%/50%
  • Roche et al. (2020) Lancet — Advanced NSCLC median OS 10-14 months with platinum chemotherapy
  • Pocock et al. (2013) — MAGGIC heart failure risk model; chronic HF mortality predictors
  • RECIST 1.1 (Eisenhauer et al. 2009) — Response Evaluation Criteria In Solid Tumors
  • CTCAE v5.0 (NCI) — Common Terminology Criteria for Adverse Events
  • Fine & Gray (1999) — Competing risk regression for cause-specific mortality
  • CONSORT 2010 — Longitudinal data hygiene conventions

Sample-scale validation scorecard

Metric Observed Target Tolerance Status Source
NSCLC overall mortality rate 76.5% 77% ±10% ✅ PASS Roche et al. (2020)
NSCLC median OS (months) 13.8 12.0 ±4.0 ✅ PASS SEER 2021
HF overall mortality rate 62.5% 63% ±10% ✅ PASS Pocock et al. (2013)
HF median OS (months) 19.5 18.0 ±6.0 ✅ PASS Pocock et al. (2013)
RECIST response categories 4 4 ✅ PASS RECIST 1.1
TNM stage diversity 4 4 ✅ PASS AJCC TNM 8th
Longitudinal temporal monotonicity 100% 100% ±2% ✅ PASS CONSORT
PFS ≤ OS invariant 100% 100% ±2% ✅ PASS Fine & Gray (1999)
Event log completeness 100% 100% ±5% ✅ PASS Data hygiene
Missing data rate 11.8% 12% ±6% ✅ PASS MAR 10% + MCAR 2%

Grade: A+ (100/100) — verified across 6 random seeds (42, 7, 123, 2024, 99, 1).


Loading examples

Pandas

import pandas as pd

base = pd.read_csv("nsclc/hlt004_baseline.csv")
long = pd.read_csv("nsclc/hlt004_longitudinal.csv")
events = pd.read_csv("nsclc/hlt004_events.csv")

print(f"Patients: {len(base)}")
print(f"Visits: {len(long)}")
print(f"Events: {len(events)}")

# Survival by stage
print("\nNSCLC OS by stage (event rate, median OS days):")
for stage, grp in base.groupby("stage_at_dx"):
    events_only = grp[grp["os_event"] == 1]
    if len(events_only):
        print(f"  {stage}: n={len(grp)}  "
              f"event_rate={grp['os_event'].mean():.2%}  "
              f"median_os={events_only['os_days'].median():.0f}d")

Hugging Face Datasets

from datasets import load_dataset

ds = load_dataset("xpertsystems/hlt004-sample", data_files={
    "nsclc_baseline":      "nsclc/hlt004_baseline.csv",
    "nsclc_longitudinal":  "nsclc/hlt004_longitudinal.csv",
    "nsclc_events":        "nsclc/hlt004_events.csv",
    "hf_baseline":         "heart_failure/hlt004_baseline.csv",
    "hf_longitudinal":     "heart_failure/hlt004_longitudinal.csv",
    "hf_events":           "heart_failure/hlt004_events.csv",
})
print(ds)

Kaplan-Meier survival curve

import pandas as pd
import matplotlib.pyplot as plt
# Optional: pip install lifelines
from lifelines import KaplanMeierFitter

base = pd.read_csv("nsclc/hlt004_baseline.csv")
fig, ax = plt.subplots(figsize=(8, 5))
for stage, grp in base.groupby("stage_at_dx"):
    kmf = KaplanMeierFitter()
    kmf.fit(grp["os_days"], event_observed=grp["os_event"], label=stage)
    kmf.plot_survival_function(ax=ax)
ax.set_xlabel("Days from diagnosis"); ax.set_ylabel("Overall Survival")
ax.set_title("NSCLC OS by TNM Stage")
plt.show()

Time-varying covariate Cox model

import pandas as pd
from lifelines import CoxTimeVaryingFitter

long = pd.read_csv("nsclc/hlt004_longitudinal.csv")
base = pd.read_csv("nsclc/hlt004_baseline.csv")[["patient_id", "os_days", "os_event"]]

# Build start/stop format for time-varying biomarker
long_sorted = long.sort_values(["patient_id", "days_from_dx"])
long_sorted["start"] = long_sorted.groupby("patient_id")["days_from_dx"].shift(0)
long_sorted["stop"] = long_sorted.groupby("patient_id")["days_from_dx"].shift(-1)
long_sorted = long_sorted.merge(base, on="patient_id")
long_sorted["event_at_stop"] = (long_sorted["stop"] >= long_sorted["os_days"]) & (long_sorted["os_event"] == 1)
long_sorted = long_sorted.dropna(subset=["stop", "cea_value"])

ctv = CoxTimeVaryingFitter()
ctv.fit(long_sorted[["patient_id", "start", "stop", "event_at_stop", "cea_value"]]
        .rename(columns={"event_at_stop": "event"}),
        id_col="patient_id", event_col="event", start_col="start", stop_col="stop")
ctv.print_summary()

Suggested use cases

  • Survival modeling — Cox proportional hazards, Kaplan-Meier, accelerated failure time, parametric survival (Weibull, log-normal, log-logistic)
  • Time-varying covariate analysis — joint longitudinal-survival models using biomarker trajectories
  • Competing-risk regression — Fine-Gray subdistribution hazard models on death_cause field
  • Stage transition modeling — multi-state Markov models on stage_current evolution
  • Biomarker trajectory clustering — latent class growth analysis on CEA / NT-proBNP series
  • Treatment effect estimation — propensity score / inverse probability weighting from observational treatment_arm_1L assignment
  • RECIST response prediction — predict CR/PR/SD/PD from baseline + early biomarker dynamics
  • Adverse event hazard modeling — predict Grade 3+ AE onset from on-treatment patient state
  • Missing data methodology — develop MAR/MCAR/MNAR imputation strategies on flagged data
  • ML model pretraining — pretrain healthcare survival models before fine-tuning on real registry data (SEER, CIBMTR, etc.)

Sample vs. full product

Aspect This sample Full HLT-004 product
Disease modules 2 (NSCLC + HF) 4 fully-calibrated + 11 templated (15 total)
Patients per disease 400 10,000+ (default) up to 100K
Follow-up window 5 years Configurable 1-15 years
Schema identical identical
Calibration identical identical
License CC-BY-NC-4.0 Commercial license

The full product includes:

  • All 4 fully-calibrated diseases: NSCLC, Heart Failure, CKD, and Breast Cancer (after stage-distribution fix)
  • 11 additional disease modules (Colorectal, Prostate, Ovarian, COPD, T2DM Progressive, Multiple Sclerosis, Alzheimer's, Hepatocellular Carcinoma, AML, Rheumatoid Arthritis, HIV/AIDS) — these currently use NSCLC defaults as templates pending per-disease calibration
  • Up to 100K patients per disease for production-grade model training
  • Configurable follow-up windows up to 15 years

Contact us for the full product and calibration roadmap.


Limitations & honest disclosures

  • Sample is preview-only. 400 patients per disease × 5yr follow-up is enough to demonstrate schema, calibration, and survival shape, but is not statistically sufficient for serious prognostic model training, especially for rare death-cause analysis or biomarker discovery. Use the full product (10K+ patients per disease) for serious work.
  • Two disease modules in this sample, not all 15. The full HLT-004 catalogue lists 15 disease keys, but currently only 4 (NSCLC, Heart Failure, CKD, Breast Cancer) have per-disease calibration; the remaining 11 use NSCLC defaults as placeholder templates. This sample includes the 2 most-requested modules (NSCLC for oncology, Heart Failure for chronic CV).
  • breast_cancer module has a known stage-distribution normalization bug in the current generator release (stage_dist_dx sums to 0.94 instead of 1.0, causing a NumPy ValueError when sampling). This is a single one-line fix in the generator's catalogue but is not yet patched in the version distributed with this sample. We excluded breast_cancer from this preview rather than patch around it. Will be addressed in the next generator release.
  • Visit-level recist_response_visit is change-detection, not best-response. RECIST 1.1 best response per patient is in baseline.csv → best_overall_response. The visit-level field compares consecutive biomarker readings to flag changes during follow-up; it rarely yields "CR" since CR requires lesion disappearance (not capturable from a single marker comparison). Use best_overall_response for cohort-level response analysis.
  • Biomarker trajectories are simulation, not real labs. Stage-specific drift and response/progression-driven trajectories follow published clinical patterns (CEA elevation with NSCLC progression, NT-proBNP elevation with HF decompensation) but do NOT capture the full noise structure, batch effects, or measurement variability of real lab data. Use for ML algorithm development; validate on real registry data.
  • Treatment assignment is propensity-weighted, not randomized. Treatment arms are assigned based on stage, ECOG PS, CCI, and insurance — a non-randomized mechanism reflecting real-world prescribing. Causal effect estimation requires propensity score adjustment, IPW, or G-methods.
  • Stage transitions are Markov, not informative. Stage changes follow a memoryless transition kernel; the full real-world progression dynamics include informative censoring patterns not captured here.
  • Death causes are simplified. death_cause field includes the primary cause; real death certificates have ICD-10 underlying + contributing causes which are not in this sample.
  • CCI (Charlson) score is baseline only. Real comorbidity index evolves over follow-up; the sample treats it as fixed at diagnosis.

Ethical use guidance

This dataset is designed for:

  • Survival analysis methodology development
  • Healthcare ML model pretraining
  • Educational use in oncology biostatistics and HF outcomes research
  • Synthetic data validation methodology research
  • ETL pipeline testing for clinical registries (SEER-conformant schemas)

This dataset is not appropriate for:

  • Making decisions about real individual patients
  • Clinical prognosis claims of any kind
  • Drug efficacy or treatment comparisons in regulatory submissions
  • Training models that produce real clinical recommendations
  • Discriminatory analyses on protected demographic groups

Companion datasets in the Healthcare vertical

  • HLT-001 — Synthetic Patient Population (5K patients × 79 cols, CDC/NHANES calibrated)
  • HLT-002 — Synthetic EHR Dataset (4K encounters + FHIR R4 bundles)
  • HLT-003 — Synthetic Clinical Trial Dataset (3 endpoint types + power sweep)
  • HLT-004 — Synthetic Disease Progression Dataset (you are here)

Use HLT-001 → HLT-004 together for population → encounter → trial → longitudinal-progression healthcare ML workflows.


Citation

If you use this dataset, please cite:

@dataset{xpertsystems_hlt004_sample_2026,
  author       = {XpertSystems.ai},
  title        = {HLT-004 Synthetic Disease Progression Dataset (Sample Preview)},
  year         = 2026,
  publisher    = {Hugging Face},
  url          = {https://huggingface.co/datasets/xpertsystems/hlt004-sample}
}

Contact

Sample License: CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0) Full product License: Commercial — please contact for pricing.

Downloads last month
5