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.1.1 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.1.0 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.167 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.166 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.165 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.164 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.163 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.162 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.161 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.160 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.159 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.158 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.157 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.156 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.155 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.153 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/transplants/mdm_patient_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/transplants/mdm_patient_presenter.rb