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

Version Path
renalware-core-2.0.0.pre.rc11 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc10 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc9 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc8 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc7 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc6 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc5 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc4 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc3 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.rc1 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.beta12 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.beta11 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.beta10 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.beta9 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.beta8 spec/support/patients_spec_helper.rb
renalware-core-2.0.0.pre.beta7 spec/support/patients_spec_helper.rb