Class: Renalware::Letters::Part::RecentPathologyResults
Instance Attribute Summary
#event, #letter, #patient
Instance Method Summary
collapse
#initialize
Instance Method Details
#results ⇒ Object
17
18
19
20
21
22
23
24
25
|
# File 'app/models/renalware/letters/part/recent_pathology_results.rb', line 17
def results
@results ||= begin
snapshot = letter.pathology_snapshot.dup
return if snapshot.blank?
groups = group_snapshot_by_code_and_date(snapshot)
format_groups_into_string(groups)
end
end
|
#to_partial_path ⇒ Object
13
14
15
|
# File 'app/models/renalware/letters/part/recent_pathology_results.rb', line 13
def to_partial_path
"renalware/letters/parts/recent_pathology_results"
end
|