コード例 #1
0
 function _consult_notes() {
 //
 // main module for notes
 // left panel
 //
     if (func_num_args()) {
         $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];
     }
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('notes')) {
         return print($exitinfo);
     }
     $n = new notes;
     $n->notes_menu($menu_id, $post_vars, $get_vars, $validuser, $isadmin);
     if ($post_vars["submitnotes"]) {
         $n->process_consult_notes($menu_id, $post_vars, $get_vars, $validuser, $isadmin);
     }
     switch($get_vars["notes"]) {
     case "NOTES":  // Create notes entry for this consult
         $n->form_consult_notes($menu_id, $post_vars, $get_vars);
         break;
     case "CC":  // Chief Complaint
         $n->form_consult_complaint($menu_id, $post_vars, $get_vars);
         break;
     case "HX":  // History
         $n->form_consult_history($menu_id, $post_vars, $get_vars);
         break;
     case "PE":  // Physical Exam
         $n->form_consult_pe($menu_id, $post_vars, $get_vars);
         break;
     case "DX":  // Diagnosis/Impression
         $n->form_consult_diagnosis($menu_id, $post_vars, $get_vars);
         break;
     case "TX":  // Plan/Intervention
         $n->form_consult_plan($menu_id, $post_vars, $get_vars);
         break;
     case "ARCH": // Archive of notes
         $n->display_notes_detail($menu_id, $post_vars, $get_vars);
         break;
     }
 }