bertverhees / sct-snapshot-rest-api

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SNOMED CT Snapshot REST API Build Status Code Climate

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

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

License:Apache License 2.0


Languages

Language:JavaScript 93.1%Language:API Blueprint 6.6%Language:Shell 0.2%Language:HTML 0.1%Language:CSS 0.1%