Skip to content

willh/hackday2013

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#NHS Hackday 2013

Introduction

BEST - Bedside Event Safety Tool

A mobile friendly web site for patients and families to report safety concerns.

Doctors, nurses and hospital staff often don't notice or have time to fix problems that patients and families see in wards and medical facilities everyday. This web site gives them an quick and easy way to report these issues and have them recorded as structured data which can be analysed and used to improve conditiions.

By identifying commonly reported issues hospitals can target areas for improvement, helping patient care and saving time and money from being wasted on reoccuring incidents.

Application Flow

Main Application
    Submit Feedback
        Incident Feeedback Type
        Incident Feedback Details
        General Feedback
        Overall Summary
    About the App
    Urgent Contact

Administration
    Incident List
        Incident Detail
        Location Type Breakdown

Colophon

####Application Language#### Ruby

####Web Framework#### Sinatra

####Data Persistence#### PostreSQL

####Data Mapping#### DataMapper

####Web UI#### Twitter Bootstrap

####Data Visualisation#### D3.js

Data Model

A feedback object is created and saved when an incident is reported using the application. The feedback object currently has the following flat structure:

Property               Type
______________________________________________
id                     Incrementing ID integer
location               String
date                   DateTime
time_of_day            String
type                   String
incident_points        Array of String
incident_comments      Text
good_points            Array of String
bad_points             Array of String
general_comments       Text
severity               String
safety                 String
happened_before        String
told_us                String
how_important_safety   String
apologised             String
satisfied              String
would_recommend        String

Deploying to Heroku

Download and install the Heroku toolkit and run the following commands.

Login and create the app:
> heroku login
> heroku create
Add the postgres addon and set the DB URL as DATABASE_URL environment variable
> heroku addons:add heroku-postgresql
> heroku pg:promote HEROKU_POSTGRESQL_MYDBFROMPREVCOMMAND_URL
Deploy the app to heroku
> git push heroku master

About

NHS Hackday 2013

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published