Sha256: 37cc966422af4ce51b22f4ad428f1a66d9771064ea9056c870fd822635369482
Contents?: true
Size: 529 Bytes
Versions: 8
Compression:
Stored size: 529 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
8 entries across 8 versions & 1 rubygems