Sha256: 05a7901bf364d214a390ce85486ab9df7fda0fb154a6c67746bcff1a03475c27

Contents?: true

Size: 507 Bytes

Versions: 8

Compression:

Stored size: 507 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/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

8 entries across 8 versions & 1 rubygems

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