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

Version Path
renalware-core-2.0.77 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.76 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.75 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.74 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.73 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.72 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.71 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.70 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.69 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.68 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.67 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.64 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.63 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.62 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.61 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.60 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.58 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.57 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.56 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.55 app/drops/renalware/pd/patient_drop.rb