Exemple #1
0
    }
}
// Affichage de l'autocomplete des éléments de prescription
$display_elt = false;
if (CModule::getActive("dPprescription")) {
    $consult->loadRefElementPrescription();
    if ($consult->_id) {
        $task = $consult->loadRefTask();
        if (!$task->_id || !$task->prescription_line_element_id) {
            $display_elt = true;
        }
    } else {
        if (!$line_element_id) {
            $elt = new CElementPrescription();
            $elt->consultation = 1;
            if ($elt->countMatchingList()) {
                $display_elt = true;
            }
        }
    }
}
$consult->loadPosition();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("listCat", $listCat);
$smarty->assign("categories", $categories);
$smarty->assign("plageConsult", $plageConsult);
$smarty->assign("consult", $consult);
$smarty->assign("following_consultations", $following_consultations);
$smarty->assign("today_ref_multiple", CAppUI::pref("today_ref_consult_multiple"));
$smarty->assign("chir", $chir);