Giter Site home page Giter Site logo

fhir-genomics-2's Introduction

Reference API server of SMART Genomics

How to use it

  1. Install dependency with

    # python 2.7
    # this might require previledge (e.g. sudo)
    # or use virtualenv instead (recommended)
    $ pip install -r requirements.txt
    

    Install PostgreSQL. Currently we use PostgresSQL for development, and our script setup_db.py is written specifically for Postgre. Contributions to support MySQL are welcomed.

  2. Edit config.py. Fill in settings for database, host, etc. as you desire. See comments in config.py for detailed instructions.

  3. Optional: load your version of FHIR spec with the script load_spec.py, which will update fhir/fhir_spec.py. Please read comments in load_spec.py carefully before using it. The specification for Connectathon 11 can be downloaded at: http://www.hl7.org/fhir/2016Jan/downloads.html

  4. If you haven't created the database you specified in config.py, simply use command below to create it

    $ python setup_db.py
    
  5. Load sample data with

    $ python load_example.py
    
  6. To run with gunicorn do

    $ python server.py run
    
  7. Alternatively you can use flask's debug instance like this

    $ python server.py run --debug
    
  8. To wipe out the database (for debugging or whatever reason), do

    $ python server.py clear
    

If you find this useful, please cite the following paper: Alterovitz G, Warner J, Zhang P, Chen Y, Ullman-Cullere M, Kreda D, Kohane IS. SMART on FHIR Genomics: facilitating standardized clinico-genomic apps. Journal of the American Medical Informatics Association: JAMIA. 2015;22(6):1173-8. doi: 10.1093/jamia/ocv045. PubMed PMID: 26198304. http://www.ncbi.nlm.nih.gov/pubmed/26198304

For more information (including papers, slides, videos, and tutorials on getting started), please email Gil Alterovitz at [email protected]

fhir-genomics-2's People

Contributors

hemingyao avatar mdmintz avatar

Watchers

Gaston Fiore avatar James Cloos 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.