Class: Renalware::Letters::Part::Allergies

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/models/renalware/letters/part/allergies.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(patient, _letter, _event = Event::Unknown.new) ⇒ Allergies

Returns a new instance of Allergies.



11
12
13
14
15
# File 'app/models/renalware/letters/part/allergies.rb', line 11

def initialize(patient, _letter, _event = Event::Unknown.new)
  patient = ::Renalware::Clinical.cast_patient(patient.__getobj__)
  @allergy_status = patient.allergy_status
  super(patient.allergies)
end

Instance Attribute Details

#allergy_statusObject (readonly)

Returns the value of attribute allergy_status.



9
10
11
# File 'app/models/renalware/letters/part/allergies.rb', line 9

def allergy_status
  @allergy_status
end

Instance Method Details

#to_partial_pathObject



17
18
19
# File 'app/models/renalware/letters/part/allergies.rb', line 17

def to_partial_path
  "renalware/letters/parts/allergies"
end