Ejemplo n.º 1
0
// Chargement des boxes d'urgences
$boxes = array();
foreach (CService::loadServicesUHCD() as $service) {
    foreach ($service->_ref_chambres as $chambre) {
        foreach ($chambre->_ref_lits as $lit) {
            $boxes[$lit->_id] = $lit;
        }
    }
}
// Si admin sur le module urgences, alors modification autorisée du diagnostic
// infirmier depuis la main courante.
$module = new CModule();
$module->mod_name = "dPurgences";
$module->loadMatchingObject();
$admin_urgences = $module->canAdmin();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("boxes", $boxes);
$smarty->assign("order_col", $order_col);
$smarty->assign("order_way", $order_way);
$smarty->assign("listPrats", $listPrats);
$smarty->assign("listSejours", $listSejours);
$smarty->assign("uhcd_affichage", $uhcd_affichage);
$smarty->assign("medicalView", $medicalView);
$smarty->assign("date", $date);
$smarty->assign("date_before", $date_before);
$smarty->assign("today", CMbDT::date());
$smarty->assign("isImedsInstalled", CModule::getActive("dPImeds") && CImeds::getTagCIDC(CGroups::loadCurrent()));
$smarty->assign("admin_urgences", $admin_urgences);
$smarty->assign("type", "UHCD");
$smarty->display("inc_main_courante.tpl");
Ejemplo n.º 2
0
if (CValue::getOrSession("order_col_" . $type) == "_patient") {
    $sorter = CMbArray::pluck($listOperations, "_ref_patient", "nom");
    array_multisort($sorter, $order_way_final == "ASC" ? SORT_ASC : SORT_DESC, $listOperations);
    $order_col = CValue::getOrSession("order_col_" . $type);
}
// Création du template
$smarty = new CSmartyDP();
// Daily check lists
$smarty->assign("date_close_checklist", $date_close_checklist);
$smarty->assign("date_open_checklist", $date_open_checklist);
$smarty->assign("require_check_list", $require_check_list);
$smarty->assign("require_check_list_close", $require_check_list_close);
$smarty->assign("daily_check_lists", $daily_check_lists);
$smarty->assign("daily_check_list_types", $daily_check_list_types);
$smarty->assign("listChirs", $listChirs);
$smarty->assign("listAnesths", $listAnesths);
$smarty->assign("type", $type);
$smarty->assign("bloc_id", $bloc_id);
$smarty->assign("personnels", $personnels);
$smarty->assign("order_way", $order_way);
$smarty->assign("order_col", $order_col);
$smarty->assign("listOperations", $listOperations);
$smarty->assign("plages", $plages);
$smarty->assign("date", $date);
$smarty->assign("isbloodSalvageInstalled", CModule::getActive("bloodSalvage"));
$smarty->assign("hour", CMbDT::time());
$smarty->assign("modif_operation", $modif_operation);
$smarty->assign("isImedsInstalled", CModule::getActive("dPImeds") && CImeds::getTagCIDC($group));
$smarty->assign("nb_sorties_non_realisees", $nb_sorties_non_realisees);
$smarty->assign("is_anesth", $curr_user->isAnesth());
$smarty->display("inc_reveil_{$type}.tpl");