Sha256: a4c0b04b313290a249d2eea6b7d5c07a4e4c78339f364f983651c0ad88009214

Contents?: true

Size: 513 Bytes

Versions: 13

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/patients"
require "attr_extras"

module Renalware
  module Patients
    class ClearPatientUKRDCData
      pattr_initialize [:patient!, :by!]

      def self.call(**args)
        new(**args).call
      end

      def call
        patient.send_to_rpv = false
        patient.rpv_decision_on = Time.zone.today
        patient.rpv_recorded_by = by.to_s
        patient.skip_death_validations = true
        patient.save_by!(by)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.146 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.145 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.144 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.143 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.142 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.141 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.140 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.139 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.138 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.137 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.136 app/models/renalware/patients/clear_patient_ukrdc_data.rb
renalware-core-2.0.135 app/models/renalware/patients/clear_patient_ukrdc_data.rb