Class: Renalware::HD::AdministerPrescriptionDropdownComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Renalware::HD::AdministerPrescriptionDropdownComponent
- Includes:
- PresenterHelper, DropdownButtonHelper
- Defined in:
- app/components/renalware/hd/administer_prescription_dropdown_component.rb
Instance Method Summary collapse
Methods included from PresenterHelper
Methods included from DropdownButtonHelper
Methods inherited from ApplicationComponent
Instance Method Details
#prescriptions_to_give_on_hd ⇒ Object
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 |