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

Version Path
renalware-core-2.0.0.pre.beta11 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta10 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta9 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta8 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta7 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta6 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta5 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.0.pre.beta4 app/drops/renalware/pd/patient_drop.rb