Sha256: 17358225041a64da9d3069d54c50ab02270ffe69de33ceb5d4d6e75dbef0bbdb

Contents?: true

Size: 519 Bytes

Versions: 18

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module HD
    class AdministerPrescriptionDropdownComponent < ApplicationComponent
      include DropdownButtonHelper
      include PresenterHelper
      pattr_initialize [:patient!]

      def prescriptions_to_give_on_hd
        @prescriptions_to_give_on_hd ||= begin
          prescriptions = patient.prescriptions.includes([:drug]).to_be_administered_on_hd
          present(prescriptions, Medications::PrescriptionPresenter)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.1.0 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.167 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.166 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.165 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.164 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.163 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.162 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.161 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.160 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.159 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.158 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.157 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.156 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.155 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.153 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.152 app/components/renalware/hd/administer_prescription_dropdown_component.rb
renalware-core-2.0.151 app/components/renalware/hd/administer_prescription_dropdown_component.rb