Dataset Preview
Full Screen
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 4 new columns ({'sub_header', 'description', 'cpt_code', 'code_type'}) and 4 missing columns ({'SHORT_DESCRIPTION', 'CODE', 'LONG_DESCRIPTION', 'NF EXCL'}).

This happened while the csv dataset builder was generating data using

hf://datasets/mozay22/medical_code_mapping/cpt_codes_consolidated.csv (at revision c38ed532ab9b9914f2f8d6e0726b23132e94cdec)

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 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, 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 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              cpt_code: string
              sub_header: string
              description: string
              code_type: string
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 739
              to
              {'CODE': Value(dtype='string', id=None), 'SHORT_DESCRIPTION': Value(dtype='string', id=None), 'LONG_DESCRIPTION': Value(dtype='string', id=None), 'NF EXCL': 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 1321, 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 935, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, 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 1882, 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 2013, 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 4 new columns ({'sub_header', 'description', 'cpt_code', 'code_type'}) and 4 missing columns ({'SHORT_DESCRIPTION', 'CODE', 'LONG_DESCRIPTION', 'NF EXCL'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/mozay22/medical_code_mapping/cpt_codes_consolidated.csv (at revision c38ed532ab9b9914f2f8d6e0726b23132e94cdec)
              
              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.

CODE
string
SHORT_DESCRIPTION
string
LONG_DESCRIPTION
string
NF EXCL
null
A000
Cholera due to Vibrio cholerae 01, biovar cholerae
Cholera due to Vibrio cholerae 01, biovar cholerae
null
A001
Cholera due to Vibrio cholerae 01, biovar eltor
Cholera due to Vibrio cholerae 01, biovar eltor
null
A009
Cholera, unspecified
Cholera, unspecified
null
A0100
Typhoid fever, unspecified
Typhoid fever, unspecified
null
A0101
Typhoid meningitis
Typhoid meningitis
null
A0102
Typhoid fever with heart involvement
Typhoid fever with heart involvement
null
A0103
Typhoid pneumonia
Typhoid pneumonia
null
A0104
Typhoid arthritis
Typhoid arthritis
null
A0105
Typhoid osteomyelitis
Typhoid osteomyelitis
null
A0109
Typhoid fever with other complications
Typhoid fever with other complications
null
A011
Paratyphoid fever A
Paratyphoid fever A
null
A012
Paratyphoid fever B
Paratyphoid fever B
null
A013
Paratyphoid fever C
Paratyphoid fever C
null
A014
Paratyphoid fever, unspecified
Paratyphoid fever, unspecified
null
A020
Salmonella enteritis
Salmonella enteritis
null
A021
Salmonella sepsis
Salmonella sepsis
null
A0220
Localized salmonella infection, unspecified
Localized salmonella infection, unspecified
null
A0221
Salmonella meningitis
Salmonella meningitis
null
A0222
Salmonella pneumonia
Salmonella pneumonia
null
A0223
Salmonella arthritis
Salmonella arthritis
null
A0224
Salmonella osteomyelitis
Salmonella osteomyelitis
null
A0225
Salmonella pyelonephritis
Salmonella pyelonephritis
null
A0229
Salmonella with other localized infection
Salmonella with other localized infection
null
A028
Other specified salmonella infections
Other specified salmonella infections
null
A029
Salmonella infection, unspecified
Salmonella infection, unspecified
null
A030
Shigellosis due to Shigella dysenteriae
Shigellosis due to Shigella dysenteriae
null
A031
Shigellosis due to Shigella flexneri
Shigellosis due to Shigella flexneri
null
A032
Shigellosis due to Shigella boydii
Shigellosis due to Shigella boydii
null
A033
Shigellosis due to Shigella sonnei
Shigellosis due to Shigella sonnei
null
A038
Other shigellosis
Other shigellosis
null
A039
Shigellosis, unspecified
Shigellosis, unspecified
null
A040
Enteropathogenic Escherichia coli infection
Enteropathogenic Escherichia coli infection
null
A041
Enterotoxigenic Escherichia coli infection
Enterotoxigenic Escherichia coli infection
null
A042
Enteroinvasive Escherichia coli infection
Enteroinvasive Escherichia coli infection
null
A043
Enterohemorrhagic Escherichia coli infection
Enterohemorrhagic Escherichia coli infection
null
A044
Other intestinal Escherichia coli infections
Other intestinal Escherichia coli infections
null
A045
Campylobacter enteritis
Campylobacter enteritis
null
A046
Enteritis due to Yersinia enterocolitica
Enteritis due to Yersinia enterocolitica
null
A047
Enterocolitis due to Clostridium difficile
Enterocolitis due to Clostridium difficile
null
A0471
Enterocolitis due to Clostridium difficile, recurrent
Enterocolitis due to Clostridium difficile, recurrent
null
A0472
Enterocolitis d/t Clostridium difficile, not spcf as recur
Enterocolitis due to Clostridium difficile, not specified as recurrent
null
A048
Other specified bacterial intestinal infections
Other specified bacterial intestinal infections
null
A049
Bacterial intestinal infection, unspecified
Bacterial intestinal infection, unspecified
null
A050
Foodborne staphylococcal intoxication
Foodborne staphylococcal intoxication
null
A051
Botulism food poisoning
Botulism food poisoning
null
A052
Foodborne Clostridium perfringens intoxication
Foodborne Clostridium perfringens [Clostridium welchii] intoxication
null
A053
Foodborne Vibrio parahaemolyticus intoxication
Foodborne Vibrio parahaemolyticus intoxication
null
A054
Foodborne Bacillus cereus intoxication
Foodborne Bacillus cereus intoxication
null
A055
Foodborne Vibrio vulnificus intoxication
Foodborne Vibrio vulnificus intoxication
null
A058
Other specified bacterial foodborne intoxications
Other specified bacterial foodborne intoxications
null
A059
Bacterial foodborne intoxication, unspecified
Bacterial foodborne intoxication, unspecified
null
A060
Acute amebic dysentery
Acute amebic dysentery
null
A061
Chronic intestinal amebiasis
Chronic intestinal amebiasis
null
A062
Amebic nondysenteric colitis
Amebic nondysenteric colitis
null
A063
Ameboma of intestine
Ameboma of intestine
null
A064
Amebic liver abscess
Amebic liver abscess
null
A065
Amebic lung abscess
Amebic lung abscess
null
A066
Amebic brain abscess
Amebic brain abscess
null
A067
Cutaneous amebiasis
Cutaneous amebiasis
null
A0681
Amebic cystitis
Amebic cystitis
null
A0682
Other amebic genitourinary infections
Other amebic genitourinary infections
null
A0689
Other amebic infections
Other amebic infections
null
A069
Amebiasis, unspecified
Amebiasis, unspecified
null
A070
Balantidiasis
Balantidiasis
null
A071
Giardiasis [lambliasis]
Giardiasis [lambliasis]
null
A072
Cryptosporidiosis
Cryptosporidiosis
null
A073
Isosporiasis
Isosporiasis
null
A074
Cyclosporiasis
Cyclosporiasis
null
A078
Other specified protozoal intestinal diseases
Other specified protozoal intestinal diseases
null
A079
Protozoal intestinal disease, unspecified
Protozoal intestinal disease, unspecified
null
A080
Rotaviral enteritis
Rotaviral enteritis
null
A0811
Acute gastroenteropathy due to Norwalk agent
Acute gastroenteropathy due to Norwalk agent
null
A0819
Acute gastroenteropathy due to other small round viruses
Acute gastroenteropathy due to other small round viruses
null
A082
Adenoviral enteritis
Adenoviral enteritis
null
A0831
Calicivirus enteritis
Calicivirus enteritis
null
A0832
Astrovirus enteritis
Astrovirus enteritis
null
A0839
Other viral enteritis
Other viral enteritis
null
A084
Viral intestinal infection, unspecified
Viral intestinal infection, unspecified
null
A088
Other specified intestinal infections
Other specified intestinal infections
null
A09
Infectious gastroenteritis and colitis, unspecified
Infectious gastroenteritis and colitis, unspecified
null
A150
Tuberculosis of lung
Tuberculosis of lung
null
A154
Tuberculosis of intrathoracic lymph nodes
Tuberculosis of intrathoracic lymph nodes
null
A155
Tuberculosis of larynx, trachea and bronchus
Tuberculosis of larynx, trachea and bronchus
null
A156
Tuberculous pleurisy
Tuberculous pleurisy
null
A157
Primary respiratory tuberculosis
Primary respiratory tuberculosis
null
A158
Other respiratory tuberculosis
Other respiratory tuberculosis
null
A159
Respiratory tuberculosis unspecified
Respiratory tuberculosis unspecified
null
A170
Tuberculous meningitis
Tuberculous meningitis
null
A171
Meningeal tuberculoma
Meningeal tuberculoma
null
A1781
Tuberculoma of brain and spinal cord
Tuberculoma of brain and spinal cord
null
A1782
Tuberculous meningoencephalitis
Tuberculous meningoencephalitis
null
A1783
Tuberculous neuritis
Tuberculous neuritis
null
A1789
Other tuberculosis of nervous system
Other tuberculosis of nervous system
null
A179
Tuberculosis of nervous system, unspecified
Tuberculosis of nervous system, unspecified
null
A1801
Tuberculosis of spine
Tuberculosis of spine
null
A1802
Tuberculous arthritis of other joints
Tuberculous arthritis of other joints
null
A1803
Tuberculosis of other bones
Tuberculosis of other bones
null
A1809
Other musculoskeletal tuberculosis
Other musculoskeletal tuberculosis
null
A1810
Tuberculosis of genitourinary system, unspecified
Tuberculosis of genitourinary system, unspecified
null
A1811
Tuberculosis of kidney and ureter
Tuberculosis of kidney and ureter
null
End of preview.
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
36