Sha256: 0bca64a04f9cde43a804b3652556bfa55a70da816f422e32b073c4537441de76
Contents?: true
Size: 559 Bytes
Versions: 149
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true 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
149 entries across 149 versions & 1 rubygems