Class: Renalware::PD::ExitSiteInfectionDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
app/drops/renalware/pd/exit_site_infection_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(esi) ⇒ ExitSiteInfectionDrop

Returns a new instance of ExitSiteInfectionDrop.



12
13
14
# File 'app/drops/renalware/pd/exit_site_infection_drop.rb', line 12

def initialize(esi)
  @esi = esi
end

Instance Method Details

#dateObject



20
21
22
# File 'app/drops/renalware/pd/exit_site_infection_drop.rb', line 20

def date
  I18n.l(diagnosis_date)
end

#organismsObject



16
17
18
# File 'app/drops/renalware/pd/exit_site_infection_drop.rb', line 16

def organisms
  esi.infection_organisms.map(&:to_s).join(", ")
end