Skip to content

Rest API for SNOMED CT Snapshot views, powered by Node.js, Express & MongoDB

License

Notifications You must be signed in to change notification settings

dmarkwell/sct-snapshot-rest-api

 
 

Repository files navigation

SNOMED CT Snapshot REST API Build Status Code Climate Join the chat at https://gitter.im/IHTSDO/sct-snapshot-rest-api

Lightweight mongo server with a rest API for SNOMED CT Snapshot views, powered by the MEAN stack, http://mean.io/, (Node.js, Express & MongoDB).

The minimum version of Node.js to be used is v4.4.2 onwards and has been tested on v5 and v7.10.0.

How to install

Clone this project into the server, by using:

git clone https://github.com/IHTSDO/sct-snapshot-rest-api.git

In the "sct-snapshot-rest-api" folder use Node.js to install all dependencies:

sct-snapshot-rest-api: $ npm install

And then run the server:

sct-snapshot-rest-api: $ node app.js

IMPORTANT: This API needs to have local access to the MongoDB server where the terminology data has been loaded into. The SNOMED CT data for the mongo instance can be obtained via your local National Resource Center (info in http://www.ihtsdo.org/members).

Once you have the SNOMED CT Files in RF2 format (standard release files) you can create a JSON file for importing into Mongo using this project:

https://github.com/IHTSDO/rf2-to-json-conversion

Access the server

The server will start listening automatically on port 3000. You can test a REST call by goint to a Web Browser and navigating to this link:

http://127.0.0.1:3000/snomed/en-edition/v20160131/concepts/404684003

This call will retrieve the data for the concept Clinical Finding (finding), idenfied by the SCTID 404684003, in the International edition (en-edition) for the January 2016 release (v20160131).

REST API docs

Browse the interactive documentation of the REST API here:

http://docs.snomedctsnapshotapi.apiary.io/

NOTES:

The server will attempt to write a pid file at: /var/sct-snapshot-rest-api.pid to change this location please set the environment variable PID_FILE for example (windows): set PID_FILE=c:\temp\sct-snapshot-rest-api.pid

About

Rest API for SNOMED CT Snapshot views, powered by Node.js, Express & MongoDB

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 93.5%
  • API Blueprint 6.2%
  • Other 0.3%