Class: Renalware::Renal::PatientDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
app/drops/renalware/renal/patient_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(patient) ⇒ PatientDrop

Returns a new instance of PatientDrop.



10
11
12
# File 'app/drops/renalware/renal/patient_drop.rb', line 10

def initialize(patient)
  @patient = Renal.cast_patient(patient)
end

Instance Method Details

#profile_prd_descriptionObject



14
15
16
# File 'app/drops/renalware/renal/patient_drop.rb', line 14

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