Exemplo n.º 1
0
<?php

/**
 * $Id: ajax_reload_infos_interv.php 26537 2014-12-22 15:14:01Z aurelie17 $
 *  
 * @category SalleOp
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision: 26537 $
 * @link     http://www.mediboard.org
 */
CCanDo::checkEdit();
$operation_id = CValue::get("operation_id");
$operation = new COperation();
$operation->load($operation_id);
$operation->canDo();
$operation->countAlertsNotHandled();
$operation->loadLiaisonLibelle();
$smarty = new CSmartyDP();
$smarty->assign("operation", $operation);
$smarty->display("inc_reload_infos_interv.tpl");
 if (CModule::getActive("maternite")) {
     $grossesse = $sejour->loadRefGrossesse();
     $grossesse->_ref_last_operation = $selOp;
 }
 $patient = $sejour->_ref_patient;
 $patient->loadRefPhotoIdentite();
 $dossier_medical = $patient->loadRefDossierMedical();
 $dossier_medical->loadRefsAllergies();
 $dossier_medical->countAllergies();
 $selOp->_ref_plageop->loadRefsFwd();
 $selOp->_ref_consult_anesth->_ref_consultation->loadRefsBack();
 $selOp->_ref_consult_anesth->_ref_consultation->loadRefPraticien()->loadRefFunction();
 if (!$selOp->prat_visite_anesth_id && $selOp->_ref_anesth->_id) {
     $selOp->prat_visite_anesth_id = $selOp->_ref_anesth->_id;
 }
 $selOp->loadLiaisonLibelle();
 $listAnesthType = new CTypeAnesth();
 $listAnesthType = $listAnesthType->loadGroupList();
 // Vérification de la check list journalière
 $daily_check_list = CDailyCheckList::getList($selOp->_ref_salle, $date);
 $daily_check_list->loadItemTypes();
 $daily_check_list->loadBackRefs('items');
 $cat = new CDailyCheckItemCategory();
 $cat->target_class = "CSalle";
 $daily_check_item_categories = $cat->loadMatchingList();
 // Chargement des 3 check lists de l'OMS
 $operation_check_list = new CDailyCheckList();
 $cat = new CDailyCheckItemCategory();
 $where_cat = array();
 $where_cat["target_class"] = " = 'COperation'";
 $where_cat["list_type_id"] = "IS NULL";