Sha256: 84608529883b01a33c930e56de4450e60455d0da1eef42bb4076f0ac6641ea06
Contents?: true
Size: 463 Bytes
Versions: 16
Compression:
Stored size: 463 Bytes
Contents
module PatientsSpecHelper def set_modality(patient:, modality_description:, started_on: Time.zone.today, by: Renalware::User.first) Renalware::Modalities::ChangePatientModality .new(patient: patient, user: by) .call( description: modality_description, started_on: started_on ) patient.reload # need to do this in order for current_modality to be set end end
Version data entries
16 entries across 16 versions & 1 rubygems