Sha256: cdca926df08a441b048a85400c77caa59cc394dc117c713a84e140caebd47b1f
Contents?: true
Size: 478 Bytes
Versions: 27
Compression:
Stored size: 478 Bytes
Contents
require_dependency "renalware/medications" module Renalware module Medications class TerminateAllPatientPrescriptions attr_reader :patient, :by def self.call(patient:, by:) new(patient, by).call end def initialize(patient, by) @patient = patient @by = by end def call patient.prescriptions.each do |prescription| prescription.terminate(by: by).save! end end end end end
Version data entries
27 entries across 27 versions & 1 rubygems