Sha256: 8711e538ab99f88953143d6a39789fded3b96605ee81098fb7dfe7a15051e0a5

Contents?: true

Size: 1.02 KB

Versions: 21

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

resources :patients, only: [] do
  resources :prescriptions, controller: "medications/prescriptions", except: [:destroy]
  namespace :medications do
    namespace :home_delivery do
      resources :events, only: [:new, :create, :edit, :update, :show]
      # resources :prescriptions,
      #           only: [:index],
      #           constraints: { format: /(pdf)/ },
      #           defaults: { format: :pdf }
    end
    resources :prescriptions, only: [] do
      resource :termination, only: [:new, :create]
    end
  end
end

namespace :medications do
  # medications_esa_prescriptions => /medications/esa_prescriptions
  resources :esa_prescriptions,
            only: :index,
            drug_type_name: :esa,
            controller: "drug_types/prescriptions"
  namespace :home_delivery do
    constraints(named_filter: /#{Renalware::Medications::Delivery::DRUG_TYPE_FILTERS.join("|")}/) do
      get "prescriptions/:named_filter", to: "prescriptions#index", as: :prescriptions
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
renalware-core-2.1.1 config/routes/medications.rb
renalware-core-2.1.0 config/routes/medications.rb
renalware-core-2.0.167 config/routes/medications.rb
renalware-core-2.0.166 config/routes/medications.rb
renalware-core-2.0.165 config/routes/medications.rb
renalware-core-2.0.164 config/routes/medications.rb
renalware-core-2.0.163 config/routes/medications.rb
renalware-core-2.0.162 config/routes/medications.rb
renalware-core-2.0.161 config/routes/medications.rb
renalware-core-2.0.160 config/routes/medications.rb
renalware-core-2.0.159 config/routes/medications.rb
renalware-core-2.0.158 config/routes/medications.rb
renalware-core-2.0.157 config/routes/medications.rb
renalware-core-2.0.156 config/routes/medications.rb
renalware-core-2.0.155 config/routes/medications.rb
renalware-core-2.0.153 config/routes/medications.rb
renalware-core-2.0.152 config/routes/medications.rb
renalware-core-2.0.151 config/routes/medications.rb
renalware-core-2.0.149 config/routes/medications.rb
renalware-core-2.0.148 config/routes/medications.rb