Datasets:
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 1 new columns ({'name_he'})
This happened while the json dataset builder was generating data using
hf://datasets/nadavWeisler/medcode-vocabularies/icd9.json (at revision 2bf02ab5b2aaea186d746537b19e771ae738b3ec), [/tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/atc5.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/atc5.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/cvx.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/cvx.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/hcpcs.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/hcpcs.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd10.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd10.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd9.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd9.json)], ['hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/atc5.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/cvx.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/hcpcs.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd10.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd9.json']
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
code: string
name_en: string
name_he: string
to
{'code': Value('string'), 'name_en': Value('string')}
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 1 new columns ({'name_he'})
This happened while the json dataset builder was generating data using
hf://datasets/nadavWeisler/medcode-vocabularies/icd9.json (at revision 2bf02ab5b2aaea186d746537b19e771ae738b3ec), [/tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/atc5.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/atc5.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/cvx.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/cvx.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/hcpcs.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/hcpcs.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd10.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd10.json), /tmp/hf-datasets-cache/medium/datasets/76142018241095-config-parquet-and-info-nadavWeisler-medcode-voca-dc442666/hub/datasets--nadavWeisler--medcode-vocabularies/snapshots/2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd9.json (origin=hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd9.json)], ['hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/atc5.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/cvx.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/hcpcs.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd10.json', 'hf://datasets/nadavWeisler/medcode-vocabularies@2bf02ab5b2aaea186d746537b19e771ae738b3ec/icd9.json']
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 | name_en string |
|---|---|
A01AA01 | Sodium fluoride |
A01AA02 | Sodium monofluorophosphate |
A01AA03 | Olaflur |
A01AA04 | Stannous fluoride |
A01AA30 | Combinations |
A01AA51 | Sodium fluoride, combinations |
A01AB02 | Hydrogen peroxide |
A01AB03 | Chlorhexidine |
A01AB04 | Amphotericin B |
A01AB05 | Polynoxylin |
A01AB06 | Domiphen |
A01AB07 | Oxyquinoline |
A01AB08 | Neomycin |
A01AB09 | Miconazole |
A01AB10 | Natamycin |
A01AB11 | Various |
A01AB12 | Hexetidine |
A01AB13 | Tetracycline |
A01AB14 | Benzoxonium chloride |
A01AB15 | Tibezonium iodide |
A01AB16 | Mepartricin |
A01AB17 | Metronidazole |
A01AB18 | Clotrimazole |
A01AB19 | Sodium perborate |
A01AB21 | Chlortetracycline |
A01AB22 | Doxycycline |
A01AB23 | Minocycline |
A01AB24 | Octenidine |
A01AB25 | Oxytetracycline |
A01AB53 | Chlorhexidine and cetylpyridinium |
A01AC01 | Triamcinolone |
A01AC02 | Dexamethasone |
A01AC03 | Hydrocortisone |
A01AC04 | Prednisolone |
A01AC54 | Prednisolone, combinations |
A01AD01 | Epinephrine |
A01AD02 | Benzydamine |
A01AD05 | Acetylsalicylic acid |
A01AD06 | Adrenalone |
A01AD07 | Amlexanox |
A01AD08 | Becaplermin |
A01AD11 | Various |
A02AA01 | Magnesium carbonate |
A02AA02 | Magnesium oxide |
A02AA03 | Magnesium peroxide |
A02AA04 | Magnesium hydroxide |
A02AA05 | Magnesium silicate |
A02AA10 | Combinations |
A02AB01 | Aluminium hydroxide |
A02AB02 | Algeldrate |
A02AB03 | Aluminium phosphate |
A02AB04 | Dihydroxialumini sodium carbonate |
A02AB05 | Aluminium acetoacetate |
A02AB06 | Aloglutamol |
A02AB07 | Aluminium glycinate |
A02AB10 | Combinations |
A02AC01 | Calcium carbonate |
A02AC02 | Calcium silicate |
A02AC10 | Combinations |
A02AD01 | Ordinary salt combinations |
A02AD02 | Magaldrate |
A02AD03 | Almagate |
A02AD04 | Hydrotalcite |
A02AD05 | Almasilate |
A02AF01 | Magaldrate and antiflatulents |
A02AF02 | Ordinary salt combinations and antiflatulents |
A02BA01 | Cimetidine |
A02BA02 | Ranitidine |
A02BA03 | Famotidine |
A02BA04 | Nizatidine |
A02BA05 | Niperotidine |
A02BA06 | Roxatidine |
A02BA07 | Ranitidine bismuth citrate |
A02BA08 | Lafutidine |
A02BA51 | Cimetidine, combinations |
A02BA53 | Famotidine, combinations |
A02BB01 | Misoprostol |
A02BB02 | Enprostil |
A02BC01 | Omeprazole |
A02BC02 | Pantoprazole |
A02BC03 | Lansoprazole |
A02BC04 | Rabeprazole |
A02BC05 | Esomeprazole |
A02BC06 | Dexlansoprazole |
A02BC07 | Dexrabeprazole |
A02BC08 | Vonoprazan |
A02BC09 | Tegoprazan |
A02BC10 | Fexuprazan |
A02BC11 | Ilaprazole |
A02BC51 | Omeprazole, combinations |
A02BC53 | Lansoprazole, combinations |
A02BC54 | Rabeprazole, combinations |
A02BD01 | Omeprazole, amoxicillin and metronidazole |
A02BD02 | Lansoprazole, tetracycline and metronidazole |
A02BD03 | Lansoprazole, amoxicillin and metronidazole |
A02BD04 | Pantoprazole, amoxicillin and clarithromycin |
A02BD05 | Omeprazole, amoxicillin and clarithromycin |
A02BD06 | Esomeprazole, amoxicillin and clarithromycin |
A02BD07 | Lansoprazole, amoxicillin and clarithromycin |
A02BD08 | Bismuth subcitrate, tetracycline and metronidazole |
End of preview.
MedCode Vocabularies
Structured biomedical terminology datasets powering MedCodeTranslator — an open-source biomedical terminology retrieval platform.
Dataset Description
A collection of standardised medical code systems in a unified JSON format, ready for use in retrieval, search indexing, NLP pipelines, and clinical terminology mapping.
Included Vocabularies
Only freely redistributable datasets are hosted here. Restricted schemes (LOINC, ICD-11, CPT) are bundled as small curated subsets in the app.
| File | Scheme | Records | License | Source |
|---|---|---|---|---|
icd10.json |
ICD-10-CM | 74,260 | Public domain (US federal) | CMS 2025 tabular-order ZIP |
icd9.json |
ICD-9-CM | 14,567 | Public domain (US federal) | CMS ICD-9-CM v32 XLSX |
atc5.json |
ATC level-5 | 5,579 | CC BY-SA 4.0 | ChEMBL / EBI API |
hcpcs.json |
HCPCS Level II | 8,303 | Public domain (US federal) | CMS via NLM Clinical Tables API |
cvx.json |
CVX | 289 | Public domain (US federal) | CDC IIS Standards |
Not included (license required):
- LOINC — © Regenstrief Institute. Free but requires registration
- ICD-11 — © WHO. Requires API credentials
- CPT — © AMA. Proprietary
Schema
Each file contains a JSON array of objects:
[
{ "code": "F20.0", "name_en": "Paranoid schizophrenia" },
{ "code": "F20.1", "name_en": "Disorganized schizophrenia" }
]
Fields:
code— the official terminology code (string)name_en— English description (string)name_he— Hebrew description (string, optional — present only where available)
Usage
import requests
url = "https://huggingface.co/datasets/nadavweisler/medcode-vocabularies/resolve/main/icd10.json"
data = requests.get(url).json()
print(f"Loaded {len(data)} ICD-10 codes")
# Loaded 74260 ICD-10 codes
from datasets import load_dataset
ds = load_dataset("nadavweisler/medcode-vocabularies", data_files="icd10.json", split="train")
print(ds[0])
# {'code': 'A00', 'name_en': 'Cholera', 'name_he': None}
Data Sources & Licenses
| Scheme | Source | License |
|---|---|---|
| ICD-10-CM | CMS | Public domain (US federal) |
| ICD-9-CM | CMS | Public domain (US federal) |
| ATC5 | ChEMBL/EBI | CC BY-SA 4.0 |
| HCPCS | CMS via NLM | Public domain (US federal) |
| CVX | CDC | Public domain (US federal) |
Citation
@misc{medcodetranslator2025,
title={MedCodeTranslator: Open-source Biomedical Terminology Retrieval},
author={Weisler, Nadav},
year={2025},
url={https://github.com/nadavWeisler/MedCodeTranslator}
}
- Downloads last month
- 33