Class: Renalware::HD::AdministerPrescriptionDropdownComponent

Inherits:
ApplicationComponent
  • Object
show all
Includes:
PresenterHelper, DropdownButtonHelper
Defined in:
app/components/renalware/hd/administer_prescription_dropdown_component.rb

Instance Method Summary collapse

Methods included from PresenterHelper

#present

Methods included from DropdownButtonHelper

#dropdown_btn_item

Methods inherited from ApplicationComponent

#policy, #renalware

Instance Method Details

#prescriptions_to_give_on_hdObject



10
11
12
13
14
15
# File 'app/components/renalware/hd/administer_prescription_dropdown_component.rb', line 10

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