Esempio n. 1
0
require_once $root_path . 'include/care_api_classes/class_tz_pharmacy.php';
$debug = FALSE;
$diagnostic_obj = new Diagnostics();
if ($debug) {
    echo $mode . "<br>";
}
if ($debug) {
    echo $keyword . "<br>";
}
if ($debug) {
    echo $show . "<br>";
}
if ($debug) {
    echo $search_mode . "<br>";
}
$product_obj = new Product();
//if ($mode=="search") {
if (!empty($keyword)) {
    if ($keyword == "*") {
        $search_results = $product_obj->get_all_items();
    } else {
        $search_results = $product_obj->get_array_search_results($keyword);
    }
    if ($number_of_search_results = count($rs = $diagnostic_obj->get_array_search_results($keyword))) {
        echo $diagnostic_obj->get_icd10_description_from_array($rs);
    }
}
//}
$debug = TRUE;
$debug ? $db->debug = TRUE : ($db->debug = FALSE);
require "gui/gui_assignments_step1.php";