Sha256: 87cc4a4987be43e4fd3899bc1754f26cf69ab95094f7f61eddb56fbd04aa108a
Contents?: true
Size: 528 Bytes
Versions: 27
Compression:
Stored size: 528 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 PatientDrop < Liquid::Drop def initialize(patient) @patient = PD.cast_patient(patient) end def exit_site_infections patient.exit_site_infections.map{ |esi| ExitSiteInfectionDrop.new(esi) } end private attr_reader :patient end end end
Version data entries
27 entries across 27 versions & 1 rubygems