コード例 #1
0
}
if (!$plagesel->_id) {
    $plagesel->date = $date;
    $plagesel->debut = CPlageOp::$hours_start . ":00:00";
    $plagesel->fin = CPlageOp::$hours_start . ":00:00";
}
// On charge le praticien et ses fonctions secondaires
$chir = $plagesel->loadRefChir();
$chir->loadRefFunction();
$_functions = $chir->loadBackRefs("secondary_functions");
// Liste des Specialités
$function = new CFunctions();
$specs = $function->loadSpecialites(PERM_READ, 1);
// Liste des Anesthésistes
$mediuser = new CMediusers();
$anesths = $mediuser->loadAnesthesistes();
CMbObject::massLoadFwdRef($anesths, "function_id");
foreach ($anesths as $_anesth) {
    $_anesth->loadRefFunction();
}
// Liste des praticiens
$chirs = $mediuser->loadChirurgiens();
CMbObject::massLoadFwdRef($chirs, "function_id");
foreach ($chirs as $_chir) {
    $_chir->loadRefFunction();
}
// Chargement du personnel
$listPers = array("iade" => CPersonnel::loadListPers("iade"), "op" => CPersonnel::loadListPers("op"), "op_panseuse" => CPersonnel::loadListPers("op_panseuse"), "sagefemme" => CPersonnel::loadListPers("sagefemme"), "manipulateur" => CPersonnel::loadListPers("manipulateur"));
if ($plagesel->_id) {
    $plagesel->multicountOperations();
    $plagesel->countOperationsAnnulees();
コード例 #2
0
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
//Initialisations des variables
$date = CValue::getOrSession("date", CMbDT::date());
$today = CMbDT::date();
$hour = CMbDT::time(null);
$board = CValue::get("board", 1);
$boardItem = CValue::get("boardItem", 1);
$consult = new CConsultation();
// Récupération des fonctions
$cabinets = CMediusers::loadFonctions();
// Récupération de la liste des anesthésistes
$mediuser = new CMediusers();
$anesthesistes = $mediuser->loadAnesthesistes(PERM_READ);
if ($consult->consultation_id) {
    $date = $consult->_ref_plageconsult->date;
    CValue::setSession("date", $date);
}
// Récupération des plages de consultation du jour et chargement des références
$listPlages = array();
foreach ($anesthesistes as $anesth) {
    $listPlages[$anesth->_id]["anesthesiste"] = $anesth;
    $plage = new CPlageconsult();
    $where = array();
    $where["chir_id"] = "= '{$anesth->_id}'";
    $where["date"] = "= '{$date}'";
    $order = "debut";
    $listPlage = $plage->loadList($where, $order);
    if (count($listPlage)) {
コード例 #3
0
    $dossier_anesth->load($dossier_anesth_id);
}
if (!$dossier_anesth->_id) {
    $selOp = new COperation();
    $selOp->load($operation_id);
    $selOp->loadRefsFwd();
    $selOp->_ref_sejour->loadRefsFwd();
    $selOp->_ref_sejour->loadRefsConsultAnesth();
    $selOp->_ref_sejour->_ref_consult_anesth->loadRefsFwd();
    $patient = $selOp->_ref_sejour->_ref_patient;
    $patient->loadRefsConsultations();
    // Chargement des praticiens
    $listAnesths = array();
    if ($offline == "false") {
        $anesths = new CMediusers();
        $listAnesths = $anesths->loadAnesthesistes(PERM_READ);
    }
    foreach ($patient->_ref_consultations as $consultation) {
        $consultation->loadRefConsultAnesth();
        foreach ($consultation->_refs_dossiers_anesth as $_dossier_anesth) {
            $consultation->loadRefPlageConsult();
            $_dossier_anesth->loadRefOperation();
        }
    }
    $onSubmit = "return onSubmitFormAjax(this,\r\n    window.refreshFicheAnesth ||\r\n    function(){\r\n      window.opener.chooseAnesthCallback.defer(); window.close();\r\n    }\r\n  )";
    $smarty = new CSmartyDP("modules/dPcabinet");
    $smarty->assign("selOp", $selOp);
    $smarty->assign("patient", $patient);
    $smarty->assign("listAnesths", $listAnesths);
    $smarty->assign("onSubmit", $onSubmit);
    $smarty->assign("create_dossier_anesth", $create_dossier_anesth);
コード例 #4
0
            $modificateur->_checked = null;
        }
    } else {
        $modificateur->_checked = null;
    }
}
/* Vérification et précodage des modificateurs */
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    CCodageCCAM::precodeModifiers($phase->_modificateurs, $acte, $acte->loadRefObject());
} elseif (!$acte->_id) {
    foreach ($phase->_modificateurs as $modificateur) {
        $modificateur->_checked = $acte->_ref_object->checkModificateur($modificateur->code, CMbDT::time($acte->execution));
    }
}
$acte->getMontantModificateurs($phase->_modificateurs);
// Liste des dents CCAM
$liste_dents = reset(CDentCCAM::loadList());
// Chargement des listes de praticiens
$user = new CMediusers();
$listAnesths = $user->loadAnesthesistes(PERM_DENY);
$listChirs = $user->loadPraticiens(PERM_DENY);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("acte", $acte);
$smarty->assign("code", $code);
$smarty->assign("activite", $activite);
$smarty->assign("phase", $phase);
$smarty->assign("liste_dents", $liste_dents);
$smarty->assign("listAnesths", $listAnesths);
$smarty->assign("listChirs", $listChirs);
$smarty->display("inc_edit_acte_ccam.tpl");
コード例 #5
0
ファイル: vw_idx_sejour.php プロジェクト: fbone/mediboard4
$groupSejourNonAffectes = array();
$sejoursParService = array();
// Chargement de la liste de praticiens
$prat = new CMediusers();
$praticiens = $prat->loadPraticiens(PERM_READ);
// Restructuration minimal des services
global $sejoursParService;
$sejoursParService = array();
$count_my_patient = 0;
// Chargement du praticien
if ($praticien_id) {
    $praticien = new CMediusers();
    $praticien->load($praticien_id);
}
$anesth = new CMediusers();
$anesthesistes = array_keys($anesth->loadAnesthesistes());
// Si seulement le praticien est indiqué
if ($praticien_id && !$service_id) {
    $sejours = array();
    $sejour = new CSejour();
    $where = array();
    $where["group_id"] = "= '{$group->_id}'";
    if ($praticien->isAnesth()) {
        $ljoin = array();
        $ljoin["operations"] = "operations.sejour_id = sejour.sejour_id";
        $ljoin["plagesop"] = "operations.plageop_id = plagesop.plageop_id";
        $where[] = "operations.anesth_id = '{$praticien_id}' OR (operations.anesth_id IS NULL AND plagesop.anesth_id = '{$praticien_id}')\n                OR praticien_id = '{$praticien_id}'";
    } else {
        $where["praticien_id"] = " = '{$praticien_id}'";
    }
    $where["entree"] = " <= '{$date} 23:59:59'";