-
-
Save Virksaabnavjot/4e87620b389039e020b46d34cf0507cf to your computer and use it in GitHub Desktop.
Ruby on Rails Tutorial: Developing a Demonstration Application | |
https://www.youtube.com/watch?v=7Vj0u_q-iEw |
$ rake db:migrate
in apps/model/Pat.rb
class Pat < ActiveRecord::Base
validates :appointment, :uniqueness => { :message => "appointment already taken" }
validates :name, :presence => true
validates :dob, :presence => true
validates :condition, :presence => true
end
root 'pats#new'
Devise Steps
Open the �le development.rb from the con�g ! environments
config.action_mailer.default_url_options = { host: ENV['IP'],
port: ENV['PORT'] }
doctors profile
rails g scaffold doctor firstname:string lastname:string address:string user:references phone:string
http://www.rymcmahon.com/articles/2
for searcg func
SQLite
log in by hitting rails dbconsole
.tables
PRAGMA table_info(doctors);
generating scaffold for the decorator
rails g scaffold Transfer firstname:string lastname:string firm:string cost:decimal detail:string age:integer
for printing functionality
<%= link_to "Print", '#', class: "btn btn-primary", onclick: 'window.print();return false;' %>
Undetermined - Patient is awaiting physician and/or assessment.
Good - Vital signs are stable and within normal limits. Patient is conscious and comfortable. Indicators are excellent.
Fair - Vital signs are stable and within normal limits. Patient is conscious, but may be uncomfortable. Indicators are favorable.
Serious - Vital signs may be unstable and not within normal limits. Patient is acutely ill. Indicators are questionable.
Critical - Vital signs are unstable and not within normal limits. Patient may be unconscious. Indicators are unfavorable.
Treated and Released – This could mean the patient was sent home or to another facility.
Confirming patient deaths – We will report or confirm a patient’s death only after signed consent from next of kin.