Coder Social home page Coder Social logo

nlpie-research / umls-to-snomed-icd10-mapper Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 9 KB

UMLS to SNOMED CT and ICD-10 mapping tool: A Python script for generating JSON files containing mappings between UMLS CUIs and SNOMED CT or ICD-10 codes using the UMLS Metathesaurus. Supports exact match, broad relations, and parent-child hierarchy mapping methods.

Python 100.00%
converter icd-10 snomed-ct umls umls-to-icd umls-to-snomed

umls-to-snomed-icd10-mapper's Introduction

UMLS to SNOMED CT and ICD-10 Mapper

This Python script maps UMLS codes to SNOMED CT and ICD-10 codes using the UMLS Metathesaurus. The program generates JSON files containing the mappings based on one of the following methods: exact match (EXACT), broad relations (RO), or parent-child hierarchy relations (PAR_CHD). The output will consist of two JSON files for each method, one for SNOMED CT mappings and another for ICD-10 mappings.

Prerequisites

To run this program, you need to request access to the UMLS Metathesaurus from the National Library of Medicine. Once you have access, download the MRCONSO.RRF and MRREL.RRF files and place them in a directory on your local machine. For EXACT matches you would only need MRCONSO.RRF.

Configuration

In the umls_mapping_tool.py file, set the UMLS_KB_PATH variable to the path of the directory where you have placed the MRCONSO.RRF and MRREL.RRF files:

UMLS_KB_PATH = "/path/to/your/directory/"

Usage

To run the script, execute the umls_mapping_tool.py file in your Python environment:

python umls_mapping_tool.py

By default, the script will use the EXACT mapping method. To change the mapping method, modify the method variable in the script:

method = "RO"  # Choose method: "RO", "PAR_CHD", or "EXACT"

The script will generate two JSON files for the specified method. For example, if you choose the EXACT method, the output files will be named cui_to_snomed_EXACT.json and cui_to_icd10_EXACT.json.

umls-to-snomed-icd10-mapper's People

Contributors

omidrohanian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

alejo760

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.