CPrescription::$_load_lite = false; } $smarty->assign("represcription", CValue::get("represcription", 0)); $smarty->assign("date", $date); $smarty->assign("hour", $hour); $smarty->assign("vue", $vue); $smarty->assign("today", $today); $smarty->assign("now", $now); $smarty->assign("_is_anesth", $consult->_is_anesth); $smarty->assign("consult_anesth", $consultAnesth); $smarty->assign("_is_dentiste", $consult->_is_dentiste); $smarty->assign("current_m", $current_m); $smarty->assign("userSel", $userSel); $smarty->assign("dossier_medical", $dossier_medical); $smarty->assign("antecedents", $dossier_medical->_ref_antecedents_by_type); $smarty->assign("tabs_count", CConsultation::makeTabsCount($consult, $dossier_medical, $consultAnesth, $sejour, $list_etat_dents)); $smarty->assign("list_etat_dents", $list_etat_dents); if ($consult->_is_dentiste) { $devenirs_dentaires = $consult->_ref_patient->loadRefsDevenirDentaire(); foreach ($devenirs_dentaires as &$devenir_dentaire) { $etudiant = $devenir_dentaire->loadRefEtudiant(); $etudiant->loadRefFunction(); $actes_dentaires = $devenir_dentaire->countRefsActesDentaires(); } $smarty->assign("devenirs_dentaires", $devenirs_dentaires); } if (count($consult->_refs_dossiers_anesth)) { $secs = range(0, 60 - 1, 1); $mins = range(0, 15 - 1, 1); $patient->loadRefLatestConstantes(); $smarty->assign("secs", $secs);