You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: patients_controller.rb
    path of file: ./repos/agenda-saude/app/controllers/admin
    
    the code of the file until where you have to start completion: module Admin
  class PatientsController < Base
    before_act
    
    def create
      @patient = Patient.new(patient_params)

      if @patient.save
        redirect_to admin_patient_path(@patient)
      else
        render :new
      end