* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ CCanDo::checkAdmin(); global $can; if (CAppUI::$user->_user_type = !1) { $can->redirect(); } $patient_id = CValue::getOrSession("patient_id"); $naissance = CValue::getOrSession("naissance", array("day" => 1, "month" => 1, "year" => 1)); // Patient à analyser $patient = new CPatient(); $idex = new CIdSante400(); $idex->object_class = "CPatient"; $idex->tag = CAppUI::conf("dPpatients CPatient tag_conflict_ipp") . CAppUI::conf("dPpatients CPatient tag_ipp"); $count_conflicts = $idex->countMatchingList(); $patient->load($patient_id); // Liste des praticiens disponibles $listPrat = array(); if ($patient->_id) { $listPrat = new CMediusers(); $listPrat = $listPrat->loadPraticiens(PERM_READ); $patient->loadDossierComplet(); } if ($patient->_id) { foreach ($patient->_ref_sejours as &$_sejour) { $_sejour->loadNDA(); } } // Chargement des identifiants standards $patient->loadIPP();
// Chargement de la liste des id4Sante400 pour le filtre $filter = new CIdSante400(); $filter->object_id = $object_id; $filter->object_class = $object_class; $filter->tag = $tag; $filter->id400 = $id400; $filter->nullifyEmptyFields(); // Chargement de la cible si objet unique $target = null; if ($filter->object_id && $filter->object_class) { $target = new $filter->object_class(); $target->load($filter->object_id); } // Requête du filtre $step = 25; $idexs = $filter->loadMatchingList(null, "{$page}, {$step}"); foreach ($idexs as $_idex) { $_idex->loadRefs(); $_idex->getSpecialType(); } $total_idexs = $filter->countMatchingList(); // Création du template $smarty = new CSmartyDP(); $smarty->assign("idexs", $idexs); $smarty->assign("total_idexs", $total_idexs); $smarty->assign("filter", $filter); $smarty->assign("idex_id", $idex_id); $smarty->assign("dialog", $dialog); $smarty->assign("page", $page); $smarty->assign("target", $target); $smarty->display("inc_list_identifiants.tpl");
/** * Count objects * * @return int */ function countObjects() { $idex = new CIdSante400(); $idex->tag = $this->tag; $this->_count_objects = $idex->countMatchingList(); $where = array("tag" => " = '{$this->tag}'"); return $this->_detail_objects = $idex->countMultipleList($where, null, "object_class", null, array("object_class"), "tag"); }