Sha256: 74f26f90978d9378186aa4ff83cb7171f1804967feafd41c2a505be21cc0cc31

Contents?: true

Size: 537 Bytes

Versions: 142

Compression:

Stored size: 537 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/renal"

module Renalware
  module Renal
    class PatientDrop < Liquid::Drop
      def initialize(patient)
        @patient = Renal.cast_patient(patient)
      end

      def profile_prd_description
        patient.profile&.prd_description&.to_s
      end

      private

      attr_reader :patient
    end
  end
end

Version data entries

142 entries across 142 versions & 1 rubygems

Version Path
renalware-core-2.0.62 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.61 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.60 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.58 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.57 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.56 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.55 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.54 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.53 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.52 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.51 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.50 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.48 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.47 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.46 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.45 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.44 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.43 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.42 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.41 app/drops/renalware/renal/patient_drop.rb