Sha256: 6145872657b443aaf88ad7f8819618695af622b1aeed977bbc6496376f8372a8

Contents?: true

Size: 1.48 KB

Versions: 15

Compression:

Stored size: 1.48 KB

Contents

# frozen_string_literal: true

namespace :patients do
  get "mdms/:scope", to: "mdms#show", as: :mdms
  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, :destroy]

  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

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.1.1 config/routes/patients.rb
renalware-core-2.1.0 config/routes/patients.rb
renalware-core-2.0.167 config/routes/patients.rb
renalware-core-2.0.166 config/routes/patients.rb
renalware-core-2.0.165 config/routes/patients.rb
renalware-core-2.0.164 config/routes/patients.rb
renalware-core-2.0.163 config/routes/patients.rb
renalware-core-2.0.162 config/routes/patients.rb
renalware-core-2.0.161 config/routes/patients.rb
renalware-core-2.0.160 config/routes/patients.rb
renalware-core-2.0.159 config/routes/patients.rb
renalware-core-2.0.158 config/routes/patients.rb
renalware-core-2.0.157 config/routes/patients.rb
renalware-core-2.0.156 config/routes/patients.rb
renalware-core-2.0.155 config/routes/patients.rb