Sha256: a8a221e3ee73ddefda83122544d39d3648560f53670021f5918edbcd2b4c83a2

Contents?: true

Size: 1.47 KB

Versions: 6

Compression:

Stored size: 1.47 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, only: [:index, :new, :create, :edit, :update], controller: "problems/notes"
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
renalware-core-2.0.123 config/routes/patients.rb
renalware-core-2.0.121 config/routes/patients.rb
renalware-core-2.0.120 config/routes/patients.rb
renalware-core-2.0.119 config/routes/patients.rb
renalware-core-2.0.118 config/routes/patients.rb
renalware-core-2.0.117 config/routes/patients.rb