Sha256: f3aae3a5e263c46475e70ac849bb0edbd9e2ba8e0ec912ab0d4cf5c09e38f724

Contents?: true

Size: 499 Bytes

Versions: 150

Compression:

Stored size: 499 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/transplants"

module Renalware
  module Transplants
    # Presenter formatting a single patient for use behind any MDM Patients listing.
    class MDMPatientPresenter < Renalware::MDMPatientPresenter
      def last_operation_on
        Transplants::RecipientOperation
          .for_patient(__getobj__)
          .order(performed_on: :desc)
          .limit(1)
          .pluck(:performed_on)
          .first
      end
    end
  end
end

Version data entries

150 entries across 150 versions & 1 rubygems

Version Path
renalware-core-2.0.147 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.146 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.145 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.144 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.143 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.142 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.141 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.140 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.139 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.138 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.137 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.136 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.135 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.134 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.133 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.132 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.131 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.130 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.129 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.128 app/presenters/renalware/transplants/mdm_patient_presenter.rb