Sha256: ffa51f8d0583a4cf3c182878244ec95214a9e1d6ee3baf6b279df5d08e81fa25
Contents?: true
Size: 528 Bytes
Versions: 20
Compression:
Stored size: 528 Bytes
Contents
module Renalware module Letters class PatientListener def patient_modality_changed_to_death(patient:, modality:, actor:) # Using update_columns here (bypassing validation) because currently, once the Death # modality is assigned, attempting to update the patient triggers validation # on cause_of_death which will at this stage be missing. patient.update_columns( cc_on_all_letters: false, cc_decision_on: modality.started_on ) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems