   editRecognitions: (e) ->
     $form = $('#edit_recognitions')
     @editBase($form, 'recognitions')
+
+  editProcedures: (e) ->
+    $form = $('#edit_procedures')
+    @editBase($form, 'procedures')

    'keyup #procedure-search': 'search'
    'keyup #med-search': 'search'
    'change #edit_meds': 'editMeds'
    'change #edit_recognitions': 'editRecognitions'

  search: (e) ->

        $.ajax({url: $form.attr('action'), type: "PUT", data: { visit: { med_ids: values } } })
      if object_type == 'recognitions'
        $.ajax({url: $form.attr('action'), type: "PUT", data: { visit: { recognition_ids: values } } })
      if object_type == 'procedures'
        $.ajax({url: $form.attr('action'), type: "PUT", data: { visit: { procedure_ids: values } } })

  editMeds: (e) ->
    $form = $('#edit_meds')
