Class: Renalware::Renal::RegistryPreflightChecksController

Inherits:
BaseController show all
Includes:
Concerns::Pageable
Defined in:
app/controllers/renalware/renal/registry_preflight_checks_controller.rb

Defined Under Namespace

Modules: WithHDUnit Classes: BasePresenter, DeathsPresenter, MissingESRFPresenter, PatientsPresenter

Instance Method Summary collapse

Methods inherited from BaseController

#patient

Instance Method Details

#deathsObject



58
59
60
61
62
63
64
65
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 58

def deaths
  authorize_action
  query = build_query(query_params)
  render locals: {
    patients: patients_for(query),
    query: query.search
  }
end

#missing_esrfObject



67
68
69
70
71
72
73
74
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 67

def missing_esrf
  authorize_action
  query = build_query(params.fetch(:q, {}))
  render locals: {
    patients: patients_for(query),
    query: query.search
  }
end

#patientsObject



49
50
51
52
53
54
55
56
# File 'app/controllers/renalware/renal/registry_preflight_checks_controller.rb', line 49

def patients
  authorize_action
  query = build_query(query_params)
  render locals: {
    patients: patients_for(query),
    query: query.search
  }
end