Class: Renalware::Clinical::ProfilesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- ApplicationController
- BaseController
- BaseController
- Renalware::Clinical::ProfilesController
- Defined in:
- app/controllers/renalware/clinical/profiles_controller.rb
Overview
Note that there is no concrete Clinical::Profile, most data here is persisted in the patient
Instance Method Summary collapse
Methods inherited from BaseController
Methods inherited from BaseController
Instance Method Details
#edit ⇒ Object
17 18 19 20 |
# File 'app/controllers/renalware/clinical/profiles_controller.rb', line 17 def edit patient render locals: { patient: patient } end |
#show ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/controllers/renalware/clinical/profiles_controller.rb', line 9 def show patient render locals: { patient: patient, profile: Clinical::ProfilePresenter.new(patient: patient, params: params) } end |
#update ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'app/controllers/renalware/clinical/profiles_controller.rb', line 22 def update patient if update_patient redirect_to patient_clinical_profile_path(patient), notice: t(".success", model_name: "clinical history") else render :edit, locals: { patient: patient } end end |