Exemple #1
0
 $sejours = CStoredObject::massLoadFwdRef($listOp, "sejour_id");
 CStoredObject::massLoadFwdRef($sejours, "patient_id");
 foreach ($listOp as $key => $operation) {
     $operation->loadRefPlageOp();
     if ($operation->_datetime_best < $filter->_datetime_min || $operation->_datetime_best > $filter->_datetime_max) {
         unset($listOp[$key]);
         continue;
     }
     $operation->loadRefsConsultAnesth();
     if ($no_consult_anesth && $operation->_ref_consult_anesth->_id) {
         unset($listOp[$operation->_id]);
     }
     $operation->loadRefPraticien();
     $operation->loadExtCodesCCAM();
     $operation->updateHeureUS();
     $operation->updateSalle();
     $operation->loadAffectationsPersonnel();
     $operation->loadRefCommande();
     $sejour = $operation->loadRefSejour();
     $sejour->loadRefsFwd();
     if ($_print_ipp) {
         $sejour->_ref_patient->loadIPP();
     }
     if ($_print_numdoss) {
         $sejour->loadNDA();
     }
     if ($prestation_id) {
         $sejour->loadLiaisonsForPrestation($prestation_id);
     }
     if ($format_print == "advanced") {
         $operation->_liaisons_prestation = implode("|", $sejour->loadAllLiaisonsForDay(CMbDT::date($operation->_datetime_best)));
 function addUniteFonctionnelle(DOMNode $elParent, COperation $operation)
 {
     $salle = $operation->updateSalle();
     $nom = CMbString::removeDiacritics($salle->nom);
     $nom = str_replace("'", "", $nom);
     $nom = CMbString::convertHTMLToXMLEntities($nom);
     $this->addCodeLibelle($elParent, "uniteFonctionnelle", substr($nom, 0, 10), "");
 }