/**
  * Récupération de la circonstance de sortie
  *
  * @param DOMNode $node     PV1 Node
  * @param CSejour $newVenue Admit
  *
  * @return void
  */
 function getDischargeDisposition(DOMNode $node, CSejour $newVenue)
 {
     // Gestion des circonstances de sortie
     if (!($discharge_disposition = $this->queryTextNode("PV1.36", $node))) {
         return;
     }
     $sender = $this->_ref_sender;
     // Mode de sortie personnalisable
     if (CAppUI::conf("dPplanningOp CSejour use_custom_mode_sortie")) {
         $mode_sortie = new CModeSortieSejour();
         $mode_sortie->code = $discharge_disposition;
         $mode_sortie->group_id = $sender->group_id;
         $mode_sortie->actif = 1;
         $mode_sortie->loadMatchingObject();
         $newVenue->mode_sortie_id = $mode_sortie->_id;
     }
     // Admit source
     switch ($sender->_configs["handle_PV1_36"]) {
         // Combinaison du ZFM
         // ZFM.2 + ZFM.4
         case 'ZFM':
             $newVenue->provenance = $discharge_disposition[0];
             if (strlen($discharge_disposition) == 2) {
                 $newVenue->destination = $discharge_disposition[1];
             }
             break;
         default:
     }
 }
Beispiel #2
0
    $rpu->loadRefSejourMutation();
    $affectation = $sejour->loadRefCurrAffectation();
    $affectation->loadRefService();
    // Urgences pour un séjour "urg"
    if ($sejour->type == "urg") {
        $services = CService::loadServicesUrgence();
    }
    // UHCD pour un séjour "comp" et en UHCD
    if ($sejour->type == "comp" && $sejour->UHCD) {
        $services = CService::loadServicesUHCD();
    }
    if ($affectation->_ref_service && $affectation->_ref_service->radiologie == "1") {
        $services = CService::loadServicesImagerie();
    }
    if (CAppUI::conf("dPplanningOp CSejour use_custom_mode_sortie")) {
        $mode_sortie = new CModeSortieSejour();
        $where = array("actif" => "= '1'");
        $list_mode_sortie = $mode_sortie->loadGroupList($where);
    }
}
$where = array();
$where["entree"] = "<= '" . CMbDT::dateTime() . "'";
$where["sortie"] = ">= '" . CMbDT::dateTime() . "'";
$where["function_id"] = "IS NOT NULL";
$affectation = new CAffectation();
/** @var CAffectation[] $blocages_lit */
$blocages_lit = $affectation->loadList($where);
$where["function_id"] = "IS NULL";
foreach ($blocages_lit as $blocage) {
    $blocage->loadRefLit()->loadRefChambre()->loadRefService();
    $where["lit_id"] = "= '{$blocage->lit_id}'";
Beispiel #3
0
<?php

/**
 * $Id$
 *  
 * @category dPplanningOp
 * @package  Mediboard
 * @author   SARL OpenXtrem <*****@*****.**>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$cpi = new CChargePriceIndicator();
$list_cpi = $cpi->loadGroupList();
$mode_entree = new CModeEntreeSejour();
$list_modes_entree = $mode_entree->loadGroupList();
$mode_sortie = new CModeSortieSejour();
$list_modes_sortie = $mode_sortie->loadGroupList();
$smarty = new CSmartyDP();
$smarty->assign("list_cpi", $list_cpi);
$smarty->assign("list_modes_entree", $list_modes_entree);
$smarty->assign("list_modes_sortie", $list_modes_sortie);
$smarty->display("vw_parametrage.tpl");