add has/belongs to relationships to models

AdminUser
  has_many appointments
  has_many patients, through appointments

Patient
  has_many appointments
  has_many procedures, through appointments

Appointment
  belongs_to patient
  belongs_to procedure

Procedure
  has_many appointments
  has_many patients, through appointments