Dataset Preview
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 10 new columns ({'Unnamed: 9', 'tools', 'bed_number', 'patient_id', 'room_id', 'attendee', 'hospital_inventory', 'assigned_at', 'discharged_at', 'Unnamed: 10'}) and 8 missing columns ({'location_storage_id', 'details', 'item_type', 'quantity_available', 'quantity_total', 'location_description', 'item_name', 'expiry_date'}).

This happened while the csv dataset builder was generating data using

hf://datasets/diamondgible2/Hospital-Resource-And-Patient-Management-Dataset/occupancy.csv (at revision 944498c47564d03ffd8cc5e9ef3a90e90a99259d)

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 "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 643, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              id: int64
              room_id: int64
              bed_number: int64
              patient_id: int64
              attendee: string
              assigned_at: string
              discharged_at: string
              tools: string
              hospital_inventory: string
              Unnamed: 9: double
              Unnamed: 10: double
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1562
              to
              {'id': Value(dtype='int64', id=None), 'item_name': Value(dtype='string', id=None), 'item_type': Value(dtype='string', id=None), 'quantity_total': Value(dtype='int64', id=None), 'quantity_available': Value(dtype='int64', id=None), 'location_storage_id': Value(dtype='int64', id=None), 'location_description': Value(dtype='string', id=None), 'details': Value(dtype='string', id=None), 'expiry_date': Value(dtype='string', id=None)}
              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 1436, 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 1053, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1742, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1873, 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 10 new columns ({'Unnamed: 9', 'tools', 'bed_number', 'patient_id', 'room_id', 'attendee', 'hospital_inventory', 'assigned_at', 'discharged_at', 'Unnamed: 10'}) and 8 missing columns ({'location_storage_id', 'details', 'item_type', 'quantity_available', 'quantity_total', 'location_description', 'item_name', 'expiry_date'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/diamondgible2/Hospital-Resource-And-Patient-Management-Dataset/occupancy.csv (at revision 944498c47564d03ffd8cc5e9ef3a90e90a99259d)
              
              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.

id
int64
item_name
string
item_type
string
quantity_total
int64
quantity_available
int64
location_storage_id
int64
location_description
string
details
string
expiry_date
string
1
Blood Type O- 1
blood_unit
1
1
20,015
Laboratory Storage
Hospital inventory: Blood Type O-
05-08-2025
2
Blood Type A+ 2
blood_unit
1
1
20,007
Pharmaceutical Storage
Hospital inventory: Blood Type A+
21-03-2026
3
Oxygen Tank 3
oxygen_tank
1
1
20,046
Medical Equipment Storage
Hospital inventory: Oxygen Tank
null
4
Blood Type A+ 4
blood_unit
1
1
20,030
Laboratory Storage
Hospital inventory: Blood Type A+
19-03-2026
5
Blood Type O- 5
blood_unit
1
1
20,030
Laboratory Storage
Hospital inventory: Blood Type O-
17-08-2025
6
Blood Type O- 6
blood_unit
1
1
20,028
Surgical Supplies Storage
Hospital inventory: Blood Type O-
21-12-2025
7
Medical Supplies 7
misc_equipment
1
1
20,050
Laboratory Storage
Hospital inventory: Medical Supplies
null
8
Blood Type O- 8
blood_unit
1
1
20,023
Surgical Supplies Storage
Hospital inventory: Blood Type O-
16-11-2025
9
Blood Type O- 9
blood_unit
1
1
20,040
Laboratory Storage
Hospital inventory: Blood Type O-
05-12-2025
10
Oxygen Tank 10
oxygen_tank
1
1
20,045
Laboratory Storage
Hospital inventory: Oxygen Tank
null
11
Medical Supplies 11
misc_equipment
1
1
20,022
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
12
Medical Supplies 12
misc_equipment
1
1
20,024
Emergency Equipment Storage
Hospital inventory: Medical Supplies
null
13
Oxygen Tank 13
oxygen_tank
1
1
20,018
Surgical Supplies Storage
Hospital inventory: Oxygen Tank
null
14
Blood Type A+ 14
blood_unit
1
1
20,014
Emergency Equipment Storage
Hospital inventory: Blood Type A+
12-08-2025
15
Oxygen Tank 15
oxygen_tank
1
1
20,048
Surgical Supplies Storage
Hospital inventory: Oxygen Tank
null
16
Blood Type A+ 16
blood_unit
1
1
20,043
Surgical Supplies Storage
Hospital inventory: Blood Type A+
21-08-2025
17
Oxygen Tank 17
oxygen_tank
1
1
20,041
Medical Equipment Storage
Hospital inventory: Oxygen Tank
null
18
Medical Supplies 18
misc_equipment
1
1
20,003
Surgical Supplies Storage
Hospital inventory: Medical Supplies
null
19
Blood Type O- 19
blood_unit
1
1
20,050
Laboratory Storage
Hospital inventory: Blood Type O-
16-07-2025
20
Blood Type A+ 20
blood_unit
1
1
20,001
Medical Equipment Storage
Hospital inventory: Blood Type A+
15-12-2025
21
Blood Type A+ 21
blood_unit
1
1
20,023
Surgical Supplies Storage
Hospital inventory: Blood Type A+
21-04-2026
22
Blood Type O- 22
blood_unit
1
1
20,012
Pharmaceutical Storage
Hospital inventory: Blood Type O-
31-12-2025
23
Oxygen Tank 23
oxygen_tank
1
1
20,010
Laboratory Storage
Hospital inventory: Oxygen Tank
null
24
Blood Type A+ 24
blood_unit
1
1
20,050
Laboratory Storage
Hospital inventory: Blood Type A+
03-06-2026
25
Blood Type O- 25
blood_unit
1
1
20,043
Surgical Supplies Storage
Hospital inventory: Blood Type O-
21-12-2025
26
Oxygen Tank 26
oxygen_tank
1
1
20,049
Emergency Equipment Storage
Hospital inventory: Oxygen Tank
null
27
Blood Type O- 27
blood_unit
1
1
20,025
Laboratory Storage
Hospital inventory: Blood Type O-
10-01-2026
28
Oxygen Tank 28
oxygen_tank
1
1
20,024
Emergency Equipment Storage
Hospital inventory: Oxygen Tank
null
29
Blood Type A+ 29
blood_unit
1
1
20,008
Surgical Supplies Storage
Hospital inventory: Blood Type A+
23-02-2026
30
Oxygen Tank 30
oxygen_tank
1
1
20,013
Surgical Supplies Storage
Hospital inventory: Oxygen Tank
null
31
Medical Supplies 31
misc_equipment
1
1
20,005
Laboratory Storage
Hospital inventory: Medical Supplies
null
32
Blood Type A+ 32
blood_unit
1
1
20,046
Medical Equipment Storage
Hospital inventory: Blood Type A+
09-04-2026
33
Medical Supplies 33
misc_equipment
1
1
20,008
Surgical Supplies Storage
Hospital inventory: Medical Supplies
null
34
Oxygen Tank 34
oxygen_tank
1
1
20,009
Emergency Equipment Storage
Hospital inventory: Oxygen Tank
null
35
Blood Type A+ 35
blood_unit
1
1
20,015
Laboratory Storage
Hospital inventory: Blood Type A+
10-02-2026
36
Medical Supplies 36
misc_equipment
1
1
20,025
Laboratory Storage
Hospital inventory: Medical Supplies
null
37
Medical Supplies 37
misc_equipment
1
1
20,046
Medical Equipment Storage
Hospital inventory: Medical Supplies
null
38
Oxygen Tank 38
oxygen_tank
1
1
20,007
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
39
Oxygen Tank 39
oxygen_tank
1
1
20,037
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
40
Blood Type O- 40
blood_unit
1
1
20,049
Emergency Equipment Storage
Hospital inventory: Blood Type O-
28-07-2025
41
Medical Supplies 41
misc_equipment
1
1
20,050
Laboratory Storage
Hospital inventory: Medical Supplies
null
42
Oxygen Tank 42
oxygen_tank
1
1
20,027
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
43
Blood Type A+ 43
blood_unit
1
1
20,034
Emergency Equipment Storage
Hospital inventory: Blood Type A+
26-09-2025
44
Oxygen Tank 44
oxygen_tank
1
1
20,002
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
45
Medical Supplies 45
misc_equipment
1
1
20,012
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
46
Blood Type O- 46
blood_unit
1
1
20,045
Laboratory Storage
Hospital inventory: Blood Type O-
13-11-2025
47
Blood Type O- 47
blood_unit
1
1
20,007
Pharmaceutical Storage
Hospital inventory: Blood Type O-
05-10-2025
48
Medical Supplies 48
misc_equipment
1
1
20,005
Laboratory Storage
Hospital inventory: Medical Supplies
null
49
Oxygen Tank 49
oxygen_tank
1
1
20,036
Medical Equipment Storage
Hospital inventory: Oxygen Tank
null
50
Oxygen Tank 50
oxygen_tank
1
1
20,044
Emergency Equipment Storage
Hospital inventory: Oxygen Tank
null
51
Oxygen Tank 51
oxygen_tank
1
1
20,041
Medical Equipment Storage
Hospital inventory: Oxygen Tank
null
52
Medical Supplies 52
misc_equipment
1
1
20,042
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
53
Blood Type A+ 53
blood_unit
1
1
20,044
Emergency Equipment Storage
Hospital inventory: Blood Type A+
07-05-2026
54
Oxygen Tank 54
oxygen_tank
1
1
20,029
Emergency Equipment Storage
Hospital inventory: Oxygen Tank
null
55
Medical Supplies 55
misc_equipment
1
1
20,042
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
56
Oxygen Tank 56
oxygen_tank
1
1
20,017
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
57
Medical Supplies 57
misc_equipment
1
1
20,001
Medical Equipment Storage
Hospital inventory: Medical Supplies
null
58
Oxygen Tank 58
oxygen_tank
1
1
20,022
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
59
Blood Type A+ 59
blood_unit
1
1
20,048
Surgical Supplies Storage
Hospital inventory: Blood Type A+
28-05-2026
60
Blood Type O- 60
blood_unit
1
1
20,048
Surgical Supplies Storage
Hospital inventory: Blood Type O-
29-05-2026
61
Blood Type O- 61
blood_unit
1
1
20,042
Pharmaceutical Storage
Hospital inventory: Blood Type O-
14-07-2025
62
Medical Supplies 62
misc_equipment
1
1
20,005
Laboratory Storage
Hospital inventory: Medical Supplies
null
63
Blood Type A+ 63
blood_unit
1
1
20,042
Pharmaceutical Storage
Hospital inventory: Blood Type A+
31-05-2026
64
Oxygen Tank 64
oxygen_tank
1
1
20,043
Surgical Supplies Storage
Hospital inventory: Oxygen Tank
null
65
Blood Type O- 65
blood_unit
1
1
20,009
Emergency Equipment Storage
Hospital inventory: Blood Type O-
22-04-2026
66
Oxygen Tank 66
oxygen_tank
1
1
20,036
Medical Equipment Storage
Hospital inventory: Oxygen Tank
null
67
Blood Type A+ 67
blood_unit
1
1
20,027
Pharmaceutical Storage
Hospital inventory: Blood Type A+
04-04-2026
68
Medical Supplies 68
misc_equipment
1
1
20,017
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
69
Blood Type O- 69
blood_unit
1
1
20,003
Surgical Supplies Storage
Hospital inventory: Blood Type O-
14-05-2026
70
Oxygen Tank 70
oxygen_tank
1
1
20,032
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
71
Oxygen Tank 71
oxygen_tank
1
1
20,038
Surgical Supplies Storage
Hospital inventory: Oxygen Tank
null
72
Oxygen Tank 72
oxygen_tank
1
1
20,031
Medical Equipment Storage
Hospital inventory: Oxygen Tank
null
73
Blood Type O- 73
blood_unit
1
1
20,006
Medical Equipment Storage
Hospital inventory: Blood Type O-
06-07-2025
74
Medical Supplies 74
misc_equipment
1
1
20,031
Medical Equipment Storage
Hospital inventory: Medical Supplies
null
75
Oxygen Tank 75
oxygen_tank
1
1
20,050
Laboratory Storage
Hospital inventory: Oxygen Tank
null
76
Oxygen Tank 76
oxygen_tank
1
1
20,038
Surgical Supplies Storage
Hospital inventory: Oxygen Tank
null
77
Blood Type O- 77
blood_unit
1
1
20,009
Emergency Equipment Storage
Hospital inventory: Blood Type O-
11-07-2025
78
Oxygen Tank 78
oxygen_tank
1
1
20,050
Laboratory Storage
Hospital inventory: Oxygen Tank
null
79
Blood Type O- 79
blood_unit
1
1
20,011
Medical Equipment Storage
Hospital inventory: Blood Type O-
09-12-2025
80
Oxygen Tank 80
oxygen_tank
1
1
20,050
Laboratory Storage
Hospital inventory: Oxygen Tank
null
81
Blood Type O- 81
blood_unit
1
1
20,007
Pharmaceutical Storage
Hospital inventory: Blood Type O-
11-10-2025
82
Blood Type A+ 82
blood_unit
1
1
20,043
Surgical Supplies Storage
Hospital inventory: Blood Type A+
10-10-2025
83
Medical Supplies 83
misc_equipment
1
1
20,017
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
84
Blood Type O- 84
blood_unit
1
1
20,028
Surgical Supplies Storage
Hospital inventory: Blood Type O-
07-11-2025
85
Blood Type O- 85
blood_unit
1
1
20,036
Medical Equipment Storage
Hospital inventory: Blood Type O-
19-01-2026
86
Medical Supplies 86
misc_equipment
1
1
20,043
Surgical Supplies Storage
Hospital inventory: Medical Supplies
null
87
Oxygen Tank 87
oxygen_tank
1
1
20,005
Laboratory Storage
Hospital inventory: Oxygen Tank
null
88
Blood Type A+ 88
blood_unit
1
1
20,050
Laboratory Storage
Hospital inventory: Blood Type A+
27-07-2025
89
Oxygen Tank 89
oxygen_tank
1
1
20,027
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
90
Blood Type O- 90
blood_unit
1
1
20,005
Laboratory Storage
Hospital inventory: Blood Type O-
25-03-2026
91
Medical Supplies 91
misc_equipment
1
1
20,015
Laboratory Storage
Hospital inventory: Medical Supplies
null
92
Medical Supplies 92
misc_equipment
1
1
20,002
Pharmaceutical Storage
Hospital inventory: Medical Supplies
null
93
Medical Supplies 93
misc_equipment
1
1
20,014
Emergency Equipment Storage
Hospital inventory: Medical Supplies
null
94
Blood Type A+ 94
blood_unit
1
1
20,037
Pharmaceutical Storage
Hospital inventory: Blood Type A+
13-10-2025
95
Oxygen Tank 95
oxygen_tank
1
1
20,002
Pharmaceutical Storage
Hospital inventory: Oxygen Tank
null
96
Blood Type A+ 96
blood_unit
1
1
20,006
Medical Equipment Storage
Hospital inventory: Blood Type A+
15-02-2026
97
Blood Type O- 97
blood_unit
1
1
20,003
Surgical Supplies Storage
Hospital inventory: Blood Type O-
13-05-2026
98
Medical Supplies 98
misc_equipment
1
1
20,024
Emergency Equipment Storage
Hospital inventory: Medical Supplies
null
99
Blood Type O- 99
blood_unit
1
1
20,009
Emergency Equipment Storage
Hospital inventory: Blood Type O-
31-08-2025
100
Medical Supplies 100
misc_equipment
1
1
20,036
Medical Equipment Storage
Hospital inventory: Medical Supplies
null
End of preview.

Hospital Resource & Patient Management Dataset

This synthetic dataset contains comprehensive information related to hospital operations, including inventory, occupancy, patient records, room assignments, storage facilities, tools, and user profiles. It is structured into multiple CSV files, each representing a specific aspect of hospital management:

  • hospital_inventory.csv: Details of medical supplies and equipment available in the hospital.
  • occupancy.csv: Information on room occupancy, including patient assignments and availability.
  • patient_records.csv: Records of patients, including medical history and treatment details.
  • rooms.csv: Data on hospital rooms, their types, and capacities.
  • storage_rooms.csv: Information on storage facilities for medical supplies and equipment.
  • tools.csv: List of tools and devices used in hospital operations.
  • users.csv: Profiles of hospital staff and patients, including contact details, emergency contacts, and roles.

Table Relationships

The dataset includes interconnected tables to represent the relationships between different entities in the hospital:

  1. Patient Records and Rooms:

    • Each patient in patient_records.csv is assigned to a room in rooms.csv.
    • The room_number field in patient_records.csv corresponds to the room_number field in rooms.csv.
  2. Staff and Rooms:

    • Staff members in users.csv are assigned to specific rooms for patient care or management.
    • The staff_type field in users.csv indicates the role (e.g., nurse, doctor) and their association with rooms.
  3. Inventory and Storage Rooms:

    • Medical supplies and equipment in hospital_inventory.csv are stored in locations specified in storage_rooms.csv.
    • The location field in hospital_inventory.csv maps to the storage_room_id field in storage_rooms.csv.
  4. Tools and Usage:

    • Tools listed in tools.csv are used by staff members in users.csv and are associated with specific rooms in rooms.csv.
    • The tool_id field in tools.csv links to the tool_usage field in occupancy.csv.
  5. Occupancy and Patient Records:

    • The occupancy.csv table tracks room usage and patient assignments, linking patient_id from patient_records.csv to room_number in rooms.csv.

Applications

This dataset is ideal for:

  • Healthcare Analytics: Analyze patient flow, staff workload, and resource utilization.
  • Machine Learning: Predict patient outcomes, optimize room assignments, and forecast inventory needs.
  • Operational Research: Improve hospital efficiency and reduce costs through data-driven insights.

It is suitable for research and analysis in healthcare management, resource optimization, and operational efficiency. It provides anonymized and structured data that can be used for machine learning, statistical modeling, and other data-driven applications.

License

This dataset is provided under an open license for research and educational purposes. Please ensure proper attribution when using this dataset.

Downloads last month
37