Class: Renalware::Letters::Part::ClinicalObservations
Constant Summary
collapse
- OBSERVATION_ATTRS =
%i(bp weight height bmi urine_blood urine_protein).freeze
- OBSERVATION_UNITS =
{ weight: :kg, height: :m }.freeze
Instance Attribute Summary
#event, #letter, #patient
Instance Method Summary
collapse
#attr_name
#initialize
Instance Method Details
#each_observation ⇒ Object
14
15
16
17
18
19
|
# File 'app/models/renalware/letters/part/clinical_observations.rb', line 14
def each_observation
observations.each do |arr|
label, result, unit_of_measurement = arr
yield(label, result, unit_of_measurement)
end
end
|
#to_partial_path ⇒ Object
21
22
23
|
# File 'app/models/renalware/letters/part/clinical_observations.rb', line 21
def to_partial_path
"renalware/letters/parts/clinical_observations"
end
|