Class: Renalware::Letters::Part::Allergies
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Renalware::Letters::Part::Allergies
- Defined in:
- app/models/renalware/letters/part/allergies.rb
Instance Attribute Summary collapse
-
#allergy_status ⇒ Object
readonly
Returns the value of attribute allergy_status.
Instance Method Summary collapse
-
#initialize(patient, _letter, _event = Event::Unknown.new) ⇒ Allergies
constructor
A new instance of Allergies.
- #to_partial_path ⇒ Object
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_status ⇒ Object (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_path ⇒ Object
17 18 19 |
# File 'app/models/renalware/letters/part/allergies.rb', line 17 def to_partial_path "renalware/letters/parts/allergies" end |