function _consult_reminder()
 {
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('reminder')) {
         return print $exitinfo;
     }
     if (func_num_args() > 0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
     }
     $r = new reminder();
     $r->reminder_menu($menu_id, $post_vars, $get_vars, $validuser, $isadmin);
     if ($post_vars["submitreminder"]) {
         $r->process_reminder($menu_id, $post_vars, $get_vars, $validuser, $isadmin);
     }
     $patient_id = healthcenter::get_patient_id($get_vars["consult_id"]);
     switch ($get_vars["reminder"]) {
         case "SEND":
             if ($r->get_reminder_id($patient_id)) {
                 $r->form_send_reminder($menu_id, $post_vars, $get_vars);
             } else {
                 print "<font color='red'>No reminder data</font><br/>";
             }
             break;
         case "DATA":
         default:
             $r->form_reminder_data($menu_id, $post_vars, $get_vars);
             break;
     }
 }