Giter Site home page Giter Site logo

davidosvaldoperez / sct-snapshot-rest-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ihtsdo/sct-snapshot-rest-api

0.0 1.0 0.0 10.49 MB

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

License: Apache License 2.0

JavaScript 91.99% CSS 0.06% HTML 0.08% API Blueprint 7.72% Shell 0.15%

sct-snapshot-rest-api's Introduction

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

sct-snapshot-rest-api's People

Contributors

alopezo avatar rorydavidson avatar gitter-badger avatar cngshow avatar

Watchers

 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.