Sha256: f0d0583c630d4c0acdc6ab453583a6c19d85b119d8db58de263ed278e6ee2f20
Contents?: true
Size: 559 Bytes
Versions: 55
Compression:
Stored size: 559 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 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
55 entries across 55 versions & 1 rubygems