Class: Renalware::API::V1::Patients::PatientsController

Inherits:
TokenAuthenticatedApiController show all
Includes:
Concerns::Pageable
Defined in:
app/controllers/renalware/api/v1/patients/patients_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



18
19
20
# File 'app/controllers/renalware/api/v1/patients/patients_controller.rb', line 18

def index
  render locals: { patients: patients }
end

#showObject



13
14
15
16
# File 'app/controllers/renalware/api/v1/patients/patients_controller.rb', line 13

def show
  patient = Patient.find_by!(local_patient_id: params[:id])
  render locals: { patient: patient }
end