Class: Renalware::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Renalware::BaseController
- Includes:
- Pundit, Concerns::DeviseControllerMethods
- Defined in:
- app/controllers/renalware/base_controller.rb
Direct Known Subclasses
API::UKRDC::PatientsController, Accesses::BaseController, Admin::CacheController, Admin::DashboardsController, Admin::Feeds::FilesController, Admin::PlaygroundsController, 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::ListsController, Events::TypesController, Feeds::HL7TestMessagesController, HD::BaseController, Hospitals::UnitsController, Hospitals::WardsController, Letters::BaseController, LowClearance::BaseController, MDMController, MDMPatientsController, Medications::DrugTypes::PrescriptionsController, Medications::HomeDelivery::EventsController, Medications::HomeDelivery::PrescriptionsController, Medications::PrescriptionsController, Medications::TerminationsController, Messaging::Internal::MessagesController, Messaging::Internal::ReceiptsController, Modalities::DescriptionsController, Modalities::ModalitiesController, Modalities::ReasonsController, PD::BaseController, Pathology::BaseController, Patients::AbridgementsController, Patients::AlertsController, Patients::BookmarksController, Patients::ClinicalSummariesController, Patients::MDMsController, 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, Surveys::DashboardsController, System::DownloadsController, System::EmailTemplatesController, System::MessagesController, System::MockErrorsController, System::UserFeedbackController, System::ViewMetadataController, Transplants::BaseController, UsersController, Virology::BaseController
Defined Under Namespace
Classes: PatientNotFoundError
Instance Method Summary collapse
Instance Method Details
#patient ⇒ Object
36 37 38 39 40 41 42 |
# File 'app/controllers/renalware/base_controller.rb', line 36 def patient @patient ||= begin Renalware::Patient.find_by(secure_id: params[:patient_id]).tap do |patient_| raise PatientNotFoundError unless patient_ end end end |