Skip to content

pradeepvemulakonda/Snomed

Repository files navigation

Snomed - Python

For a Groovy version => https://github.com/pradeepvemulakonda/snomed-groovy

Wiki => https://github.com/pradeepvemulakonda/Snomed/wiki

Environment: mac(any linux or windows env) with python 3.6.1 and py2neo 3.1.2. Use a virtual environment to avoid any conflicts or errors.

CreateCreate a Neo4j database to import Snomed drug files and provide a REST interface to access the data.

For information reg Neo4j please visit http://neo4j.com/

Application is written in python and accepts a Snomed-CT zip file. The data from Snomed-CT around 3 miliion rows of TDV files will be uploaded to the graph database Neo4j.

Neo4j is a NoSql graph database which has a rich query capabilities which makes it ideal for decesion support and BI.

Prepare files to be uploaded to Neo4j
  • Use Neo4j version 3.2.1
  • update the config.ini file in the config folder as required. Only update the zip folder path.
  • Run the run_snomed_upload.py
  • the updated concepts and relationship files with the term and description type id is present in the results folder.
  • the script uploads concepts, synonyms and relations into a neo4j instance.
  • The graph database url should be specified in config.ini file.
  • The entire script takes about ~ 2 hours to upload a snomed snapshot into a new neo4j database.
  • Update of the Snomed Concepts is done using threads.
  • Update of Relationships is done using a single thread as Neo4j is throwing deadlock exceptions if we process the relations in parallel.

About

Create a Neo4j database to import AMT/Snomed drug files and provide a REST interface to access the data

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published