Module: Renalware::Letters::LetterPathology
- Extended by:
- ActiveSupport::Concern
- Included in:
- DraftLetter, ReviseLetter
- Defined in:
- app/models/concerns/renalware/letters/letter_pathology.rb
Defined Under Namespace
Classes: FilteredObservationSet
Instance Method Summary collapse
-
#build_pathology_snapshot(patient) ⇒ Object
Update a letter’s pathology snapshot to the current point in time.
Instance Method Details
#build_pathology_snapshot(patient) ⇒ Object
Update a letter’s pathology snapshot to the current point in time
36 37 38 39 40 41 |
# File 'app/models/concerns/renalware/letters/letter_pathology.rb', line 36 def build_pathology_snapshot(patient) FilteredObservationSet.new( observation_set: patient.current_observation_set, codes: Renalware::Letters::RelevantObservationDescription.all.map(&:code) ).to_h end |