GithubHelp home page GithubHelp logo

ukeiam / de.uke.iam.automapping Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.45 MB

Automatic mapping into SNOMED-CT

License: GNU General Public License v3.0

Dockerfile 1.30% Python 39.52% Jupyter Notebook 59.18%

de.uke.iam.automapping's Introduction

de.uke.iam.automapping

Automatic mapping of German medical-related terms into SNOMED-CT.


Currently, this repository is under development for code quality improvement.

About

This repository contains the source code used in the development of our mapping approach between German medical phrases and The Observational Medical Outcomes Partnership (OMOP) concepts.

Compared to the current standard (USAGI) our approach performs slightly better. Its main advantage lies in the automatic processing of German phrases to English OMOP concept suggestions, operating without the need for human intervention.

Example of the result after translation and mapping (column names in USAGI format)

Getting Started

Prerequisites

This project utilizes Docker for providing an OS-independent development and integration experience. We highly recommend using Visual Studio Code and the associated "Development Container" which allows direct access to an environment and shell with pre-installed Python, corresponding packages, and a specialized IDE experience. However, running Docker standalone is also possible by using the Dockerfile in the devcontainer folder.

Usage

  1. Clone repository (we recommend using Visual Studio Clone)
  1. Reopen the Repository in the Docker container
  1. Download OMOP CDM files from [Athena] (https://athena.ohdsi.org/search-terms/start) with SNOMED CT vocabulary

  2. From Downloaded Archiv put files: CONCEPT.csv, CONCEPT_SYNONYM.csv, and VOCABULARY.csv in a folder with the repository

  3. Open example pipeline and replace variables with yours (path to files)

Variable Name Description
data_file Path to Excel file with your data(should contain columns with id and name)
abbreviation_file Path to Excel file with german medical abbreviation and descriptions
concept_file Path to the file CONCEPT.csv from Athena
synonym_file Path to the file CONCEPT_SYNONYM.csv from Athena
vocabulary_file Path to the file VOCABULARY.csv from Athena
  1. Run updated pipeline

Directory Structure

|- data_example/    (folder with data used in the pipeline)
    |- example_data.xlsx    (example of data used to run the pipeline)
    |- german_abbreviation.xlsx    (table with German medical abbreviations and their description)
    |- mapping.csv    (a result from the pipeline)  
|- notebooks/
    |- pipeline.ipynb   (Jupyter Notebook with an example of how to run source code)
|- src
    |- automapping/    (source code)
        |- concept.py       (object to keep concept)
        |- concepts.py
        |- detection.py     (object to create a data frame with predictions)
        |- language.py
        |- m5.py   (integration with internal application)
        |- loader.py        (file with data loading)
        |- prediction.py    (object with keep predictions)
        |- preprocessor.py   (abbreviation replacement and nlp preprocessing)
        |- translator.py    (translation with Hugging Face model from German to English)
        |- mapper.py        (object with TF-idf model)
        |- sample.py    (object with a sample of the given data)
    config.yaml (config for flask application)
    flask_application_endpoint_swagger.py   (integration of this pipeline with internal application)

License

This project is licensed under the GPL-3.0 license. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.

See LICENSE for more information.

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.