Sha256: 1d849612073c9c50e516bf531fbaf4921439c0d4444d0086163ff5225bb72946

Contents?: true

Size: 371 Bytes

Versions: 21

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

module Renalware
  module Patients
    class PatientSearch
      def self.call(params)
        Renalware::Patient
          .includes(current_modality: [:description])
          .search(params[:patient_search]).tap do |search|
            search.sorts = %w(family_name_case_insensitive given_name)
          end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
renalware-core-2.0.64 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.63 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.62 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.61 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.60 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.58 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.57 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.56 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.55 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.54 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.53 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.52 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.51 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.50 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.48 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.47 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.46 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.45 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.44 app/models/renalware/patients/patient_search.rb
renalware-core-2.0.43 app/models/renalware/patients/patient_search.rb