Ejemplo n.º 1
0
        }
    }
    if (in_array($type, array("out", "reveil"))) {
        if (!$op->sortie_reveil_reel) {
            $nb_sorties_non_realisees++;
        }
        $sejour->loadRefsAffectations();
        if ($sejour->_ref_first_affectation->_id) {
            $sejour->_ref_first_affectation->loadRefLit();
            $sejour->_ref_first_affectation->_ref_lit->loadCompleteView();
        }
    }
}
// Chargement de la liste du personnel pour le reveil
$personnels = array();
if (in_array($type, array("ops", "reveil")) && Cmodule::getActive("dPpersonnel")) {
    $personnel = new CPersonnel();
    $personnels = $personnel->loadListPers("reveil");
}
// Vérification de la check list journalière
$daily_check_lists = array();
$daily_check_list_types = array();
$require_check_list = 0;
$require_check_list_close = 0;
$listChirs = array();
$listAnesths = array();
$date_close_checklist = null;
$date_open_checklist = null;
if ($type == "reveil" || $type == "preop") {
    $bloc = new CBlocOperatoire();
    if (!$bloc->load($bloc_id) && count($listSalles)) {