function _details_notes() { // // main module for notes // right 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; if ($post_vars["submitdetail"]) { $n->process_detail($menu_id, $post_vars, $get_vars, $validuser, $isadmin); } switch($get_vars["notes"]) { case "NOTES": // Notes details case "HX": // History case "PE": // Physical Exam case "DX": // Diagnosis/Impression case "TX": // Plan/Intervention case "CC": // Chief Complaint $n->display_consult_notes($menu_id, $post_vars, $get_vars); case "ARCH": // Archive of notes //$n->display_consult_notes($menu_id, $post_vars, $get_vars); break; default: //$n->display_complaint($menu_id, $post_vars, $get_vars); break; } }