Sha256: fc3e5a4a5194a24aa653cac6a488946f732bec58dd9809e8dd0568bb0eae14da

Contents?: true

Size: 576 Bytes

Versions: 9

Compression:

Stored size: 576 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    class CurrentObservationResultsController < Pathology::BaseController
      before_action :load_patient

      def index
        table_view = CurrentObservationResults::HTMLTableView.new(view_context)
        presenter = CurrentObservationResults::Presenter.new
        service = ViewCurrentObservationResults.new(@patient, presenter)
        service.call

        render :index, locals: {
          rows: presenter.view_model,
          table: table_view
        }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc1 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta12 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta11 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta10 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta9 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta8 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta7 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta6 app/controllers/renalware/pathology/current_observation_results_controller.rb
renalware-core-2.0.0.pre.beta5 app/controllers/renalware/pathology/current_observation_results_controller.rb