Sha256: cc20d4b3056d3594a0287b771e71d415ed3b35c548fa1580db10e3d82f2eaec9
Contents?: true
Size: 608 Bytes
Versions: 142
Compression:
Stored size: 608 Bytes
Contents
# frozen_string_literal: true # 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
142 entries across 142 versions & 1 rubygems