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

Version Path
renalware-core-2.0.8 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.7 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.5 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.4 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.3 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.2 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.1 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc11 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/letters/patient_listener.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/letters/patient_listener.rb