Sha256: 48a90ad2a073046dd27ead418d76733ab903bcad980ad62ff5cfad38c968d98e

Contents?: true

Size: 560 Bytes

Versions: 87

Compression:

Stored size: 560 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

87 entries across 87 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.1.0 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.167 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.166 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.165 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.164 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.163 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.162 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.161 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.160 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.159 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.158 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.157 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.156 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.155 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.153 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.152 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.151 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.149 app/drops/renalware/pd/patient_drop.rb
renalware-core-2.0.148 app/drops/renalware/pd/patient_drop.rb