/radsearch

A rails/sphinx based radiology report search web page

Primary LanguageRubyGNU General Public License v3.0GPL-3.0

radsearch
http://github.com/mwarnock/radsearch/tree/master
A web-based ruby on rails application for searching  

LICENSE
Released under the latest version of the Gnu Public License
See LICENSE file for more information

REQUIREMENTS
ruby on rails 2.1.2
sphinx 0.9.8-rc1 - http://www.sphinxsearch.com/
mysql

BUNDLED SOFTWARE
ultrasphinx rails plugin - http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html

REQUIRED GEMS
 - chronic (req by ultrasphinx)
 - rest_open_uri (required for hipaa_filter plugin, which is currently inactive)

INSTALL INSTRUCTIONS
1. Install rails and necessary gems
2. Download and compile sphinx - make sure you have the mysql development headers
3. Setup your mysql database.  
  - copy config/database.yml.dist to config/database.yml and edit to reflect your
    desired mysql configuration
  - rake db:create to create all the necessary databases
  - rake db:schema:load to load database schema from db/schema.rb
4. Load the test data provided: db/test_data.sql
  - mysql -u <username> -p
  - use radsearch;
  - source db/test_data.sql;
5. Finalize sphinx using ultrasphinx rake tasks:
   rake ultrasphinx:configure
   rake ultrasphinx:index
   rake ultrasphinx:daemon:start (must be run as root, or sudo)
6. You will want to set up a cron job to call rake ultrasphinx:index nightly 
  - this should also be done as root
7. Customize authentication and hipaa audit trail logging in application.rb
8. The default user/pass is admin/password