Class: Renalware::Letters::Part::RecentPathologyResults

Inherits:
Renalware::Letters::Part show all
Defined in:
app/models/renalware/letters/part/recent_pathology_results.rb

Instance Attribute Summary

Attributes inherited from Renalware::Letters::Part

#event, #letter, #patient

Instance Method Summary collapse

Methods inherited from Renalware::Letters::Part

#initialize

Constructor Details

This class inherits a constructor from Renalware::Letters::Part

Instance Method Details

#resultsObject



16
17
18
19
20
21
22
23
24
# File 'app/models/renalware/letters/part/recent_pathology_results.rb', line 16

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_pathObject



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

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