summaryrefslogtreecommitdiff
path: root/rvh/app/models/patient.rb
blob: ce7f17dc346cd6846f35509f1652f55e9d4a43d1 (plain)
1
2
3
4
5
6
7
class Patient < ApplicationRecord
  belongs_to :account
  belongs_to :physician, class_name: Physician.name, foreign_key: :physician_id
  belongs_to :referring_physician, class_name: Physician.name, foreign_key: :referring_physician_id
  has_one :bed
  has_many :treatments
end