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.40 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.39 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.38 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.37 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.36 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.35 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.34 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.33 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.32 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.31 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.30 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.28 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.27 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.26 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.25 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.24 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.23 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.22 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.21 app/drops/renalware/renal/patient_drop.rb
renalware-core-2.0.20 app/drops/renalware/renal/patient_drop.rb