Coder Social home page Coder Social logo

icd10data-scraper's Introduction

icd10data-scraper

Load ICD codes and find appopriate synonyms for a code data can be found at: http://icd10data.com/

Requirements:

This web app scrapes icd10data and lazily stores codes and appropriate synonyms in a local mongo db

You must run:

 conda create -n icd_scraper python=3.6
 source activate icd_scraper
 pip install -r requirements.txt

Usage:

Code->synonyms mapping

Run the app:

source activate icd_scraper
python run.py

Get a code's synonyms:

 $ curl http://localhost:8080/code/<code>

Given a list of codes in codes.txt:

 $ for i in `cat codes.txt`; do curl http://localhost:8080/code/$i ; done

Scrapper

Load codes into a database - optional, but will prepopulate all codes (the speed here can be improved):

Start Mongo db locally (Mac)

brew install mongodb
brew tap homebrew/services
brew services start mongodb
source activate icd_scraper
python scraper.py

Export data from Mongo to a JSON file

mongoexport --host localhost --db icdcodes --collection ICDCode --type=json --out ~/Downloads/icdcodes.json

Backup

mongodump --collection ICDCode --db icdcodes --out ~/Downloads/mongo_backup/

data_scraper.py

Load ICD codes and find fields like code, name, subclass, synonyms, applicableTo, ClinicalInfos, DRGCodes, etc
This program will scrapes icd10data and stores fields in a local file

python data_scraper.py

drg_codes_scraper.py

Load DRG codes and find fields like code, name, Related Groups List codes. Data can be found at : https://www.icd10data.com/ICD10CM/DRG
This program will scrapes DRG data and stores fileds in a local file

icd10data-scraper's People

Contributors

eugsokolov avatar antoniuswang avatar yuanzhaoyz avatar

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.