Sha256: d115ae9985fc191194f625cbec38bfbd48a0043aed5243170f1fc85abcff202d

Contents?: true

Size: 1.82 KB

Versions: 28

Compression:

Stored size: 1.82 KB

Contents

# frozen_string_literal: true

resources :patients, only: [] do
  namespace :hd do
    resource :mdm, only: :show, controller: "mdm"
    resource :dashboard, only: :show
    resource :protocol,
             only: :show,
             constraints: { format: /(pdf)/ },
             defaults: { format: :pdf }
    resource :preference_set, only: [:edit, :update]
    resource :current_profile,
             only: [:show, :edit, :update],
             path: "/profiles/current",
             controller: "current_profile"
    resources :historical_profiles,
              only: [:index, :show],
              path: "/profiles/historical"
    resources :sessions
  end
end

namespace :hd do
  scope format: true, constraints: { format: :json } do
    get "patients_dialysing_at_unit" => "patients#dialysing_at_unit"
    get "patients_dialysing_at_hospital" => "patients#dialysing_at_hospital"
  end

  resources :transmission_logs, only: [:show, :index]
  resources :cannulation_types, except: :show
  resources :dialysers, except: :show
  resources :dialysates, except: :show
  resource :ongoing_sessions, only: :show
  resources :mdm_patients, only: :index
  resources :mdm_patients, only: :index
  constraints(named_filter: /(on_worryboard)/) do
    get "mdm_patients/:named_filter", to: "mdm_patients#index", as: :filtered_mdm_patients
  end
  resources :unmet_preferences, only: :index
  resources :units, only: [] do
    resources :stations do
      post :sort, on: :collection
    end
    resources :diaries, only: [:index, :show]
    get "diaries/:year/:week_number/edit", to: "diaries#edit", as: :edit_diary
  end
  resources :diaries, only: [] do
    resources :slots, except: :show, controller: :diary_slots
    get "slots/day/:day_of_week/period/:diurnal_period_code_id/station/:station_id",
        to: "diary_slots#show",
        as: :refresh_slot
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
renalware-core-2.0.105 config/routes/hd.rb
renalware-core-2.0.104 config/routes/hd.rb
renalware-core-2.0.103 config/routes/hd.rb
renalware-core-2.0.102 config/routes/hd.rb
renalware-core-2.0.101 config/routes/hd.rb
renalware-core-2.0.100 config/routes/hd.rb
renalware-core-2.0.99 config/routes/hd.rb
renalware-core-2.0.98 config/routes/hd.rb
renalware-core-2.0.97 config/routes/hd.rb
renalware-core-2.0.96 config/routes/hd.rb
renalware-core-2.0.95 config/routes/hd.rb
renalware-core-2.0.94 config/routes/hd.rb
renalware-core-2.0.93 config/routes/hd.rb
renalware-core-2.0.92 config/routes/hd.rb
renalware-core-2.0.91 config/routes/hd.rb
renalware-core-2.0.90 config/routes/hd.rb
renalware-core-2.0.89 config/routes/hd.rb
renalware-core-2.0.88 config/routes/hd.rb
renalware-core-2.0.87 config/routes/hd.rb
renalware-core-2.0.86 config/routes/hd.rb