Sha256: 85bd9a6e9b30cfe08075e3bc052573ecd3302a193ebe053da3791987571bce9d

Contents?: true

Size: 1.43 KB

Versions: 23

Compression:

Stored size: 1.43 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
  resources :abridgements, only: :index
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, controller: "problems/notes"
  end

  namespace :surveys do
    resource :dashboard, only: :show
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
renalware-core-2.0.146 config/routes/patients.rb
renalware-core-2.0.145 config/routes/patients.rb
renalware-core-2.0.144 config/routes/patients.rb
renalware-core-2.0.143 config/routes/patients.rb
renalware-core-2.0.142 config/routes/patients.rb
renalware-core-2.0.141 config/routes/patients.rb
renalware-core-2.0.140 config/routes/patients.rb
renalware-core-2.0.139 config/routes/patients.rb
renalware-core-2.0.138 config/routes/patients.rb
renalware-core-2.0.137 config/routes/patients.rb
renalware-core-2.0.136 config/routes/patients.rb
renalware-core-2.0.135 config/routes/patients.rb
renalware-core-2.0.134 config/routes/patients.rb
renalware-core-2.0.133 config/routes/patients.rb
renalware-core-2.0.132 config/routes/patients.rb
renalware-core-2.0.131 config/routes/patients.rb
renalware-core-2.0.130 config/routes/patients.rb
renalware-core-2.0.129 config/routes/patients.rb
renalware-core-2.0.128 config/routes/patients.rb
renalware-core-2.0.127 config/routes/patients.rb