Sha256: 3189d7059ad44abc2647fe64233666531975c72691fcbe305ae623fdabbc9218

Contents?: true

Size: 1.35 KB

Versions: 38

Compression:

Stored size: 1.35 KB

Contents

# frozen_string_literal: true

namespace :patients do
  resources :primary_care_physicians
  resources :practices, only: [] do
    collection do
      get :search
    end
    resources :primary_care_physicians,
              only: :index,
              controller: "practices/primary_care_physicians"
  end
end

resources :bookmarks, controller: "patients/bookmarks", only: [:destroy, :index]
resource :dashboard, only: :show, controller: "dashboard/dashboards"
resource :worryboard, only: :show, controller: "patients/worryboard"
resources :deaths, only: :index, as: :patient_deaths

resources :patients, except: [:destroy], controller: "patients/patients" do
  collection do
    get :search
  end

  resource :clinical_summary, only: :show, controller: "patients/clinical_summaries"
  resource :death, only: [:edit, :update]
  resource :primary_care_physician,
           controller: "patients/primary_care_physician",
           only: [:edit, :update]

  resources :bookmarks, only: :create, controller: "patients/bookmarks"
  resources :alerts, only: [:new, :create, :destroy], controller: "patients/alerts"
  resource :worry, only: [:create, :destroy], controller: "patients/worry"

  # Problems
  resources :problems, controller: "problems/problems" do
    post :sort, on: :collection
    resources :notes, only: [:index, :new, :create], controller: "problems/notes"
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
renalware-core-2.0.111 config/routes/patients.rb
renalware-core-2.0.110 config/routes/patients.rb
renalware-core-2.0.109 config/routes/patients.rb
renalware-core-2.0.108 config/routes/patients.rb
renalware-core-2.0.106 config/routes/patients.rb
renalware-core-2.0.105 config/routes/patients.rb
renalware-core-2.0.104 config/routes/patients.rb
renalware-core-2.0.103 config/routes/patients.rb
renalware-core-2.0.102 config/routes/patients.rb
renalware-core-2.0.101 config/routes/patients.rb
renalware-core-2.0.100 config/routes/patients.rb
renalware-core-2.0.99 config/routes/patients.rb
renalware-core-2.0.98 config/routes/patients.rb
renalware-core-2.0.97 config/routes/patients.rb
renalware-core-2.0.96 config/routes/patients.rb
renalware-core-2.0.95 config/routes/patients.rb
renalware-core-2.0.94 config/routes/patients.rb
renalware-core-2.0.93 config/routes/patients.rb
renalware-core-2.0.92 config/routes/patients.rb
renalware-core-2.0.91 config/routes/patients.rb