Sha256: 9bb50c82236e2faab8511ac2063e2b01ace9cde2349ddb8db329d2ec5e8f48c2

Contents?: true

Size: 577 Bytes

Versions: 35

Compression:

Stored size: 577 Bytes

Contents

# A Liquid 'Drop' - a safe, read-only presenter compatible with Liquid templates.
# We use Liquid templates for one-off hospital-specific views or print-outs.
require_dependency "renalware/pd"

module Renalware
  module PD
    class ExitSiteInfectionDrop < Liquid::Drop
      delegate :outcome, :diagnosis_date, to: :esi

      def initialize(esi)
        @esi = esi
      end

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

      def date
        I18n.l(diagnosis_date)
      end

      private

      attr_reader :esi
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
renalware-core-2.0.16 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.15 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.14 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.13 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.12 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.11 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.9 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.8 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.7 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.5 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.4 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.3 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.2 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.1 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.0 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.0.pre.rc13 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.0.pre.rc11 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.0.pre.rc10 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.0.pre.rc9 app/drops/renalware/pd/exit_site_infection_drop.rb
renalware-core-2.0.0.pre.rc8 app/drops/renalware/pd/exit_site_infection_drop.rb