Class: Renalware::BaseController

Inherits:
ApplicationController show all
Includes:
Pundit, Concerns::DeviseControllerMethods
Defined in:
app/controllers/renalware/base_controller.rb

Direct Known Subclasses

API::UKRDC::PatientsController, Accesses::BaseController, Admin::CacheController, Admin::Feeds::FilesController, Admin::UsersController, Admissions::AdmissionsController, Admissions::ConsultsController, Admissions::PatientAdmissionsController, Admissions::RequestsController, Clinical::BaseController, Clinics::AppointmentsController, Clinics::ClinicVisitsController, Clinics::VisitsController, Dashboard::DashboardsController, DeathsController, Directory::PeopleController, Drugs::DrugsController, Events::EventsController, Events::TypesController, HD::BaseController, Hospitals::UnitsController, Hospitals::WardsController, Letters::BaseController, LowClearance::BaseController, MDMController, MDMPatientsController, Medications::DrugTypes::PrescriptionsController, Medications::PrescriptionsController, Medications::TerminationsController, Messaging::Internal::MessagesController, Messaging::Internal::ReceiptsController, Modalities::DescriptionsController, Modalities::ModalitiesController, Modalities::ReasonsController, PD::BaseController, Pathology::BaseController, Patients::AlertsController, Patients::BookmarksController, Patients::ClinicalSummariesController, Patients::PatientsController, Patients::PracticesController, Patients::PrimaryCarePhysicianController, Patients::PrimaryCarePhysiciansController, Patients::WorryController, Patients::WorryboardController, Problems::NotesController, Problems::ProblemsController, Renal::BaseController, Reporting::AuditRefreshmentsController, Reporting::AuditsController, Research::StudiesController, Research::StudyParticipantsController, SessionTimeoutController, Snippets::SnippetClonesController, Snippets::SnippetInvocationsController, Snippets::SnippetsController, System::EmailTemplatesController, System::MessagesController, System::MockErrorsController, System::UserFeedbackController, Transplants::BaseController, Virology::BaseController

Instance Method Summary collapse

Instance Method Details

#patientObject



24
25
26
# File 'app/controllers/renalware/base_controller.rb', line 24

def patient
  @patient ||= Renalware::Patient.find_by!(secure_id: params[:patient_id])
end