コード例 #1
0
/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Urgences
 * @author     SARL OpenXtrem <*****@*****.**>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkEdit();
$rpu_id = CValue::get("rpu_id");
$sortie_reelle = CValue::get("sortie_reelle");
// Chargement du RPU
$rpu = new CRPU();
$rpu->load($rpu_id);
$rpu->loadRefSejourMutation();
// Chargement du séjour
$sejour = $rpu->loadRefSejour();
$sejour->loadRefPatient()->loadIPP();
$sejour->loadNDA();
$sejour->loadRefsConsultations();
$sejour->loadRefCurrAffectation();
// Horaire par défaut
$sejour->sortie_reelle = $sortie_reelle;
if (!$sejour->sortie_reelle) {
    $sejour->sortie_reelle = CMbDT::dateTime();
}
$where = array();
$where["entree"] = "<= '{$sejour->sortie_reelle}'";
$where["sortie"] = ">= '{$sejour->sortie_reelle}'";
//on recherche uniquement les lits bloqués pour les urgences(function_id == function_id d'urgence)
コード例 #2
0
 * @category dPurgences
 * @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
 */
$rpu_id = CValue::get("rpu_id");
$rpu = new CRPU();
$rpu->load($rpu_id);
$consult = $rpu->loadRefConsult();
if ($consult && $consult->_id) {
    $consult->loadRefsActes();
}
if ($rpu->mutation_sejour_id) {
    $rpu->loadRefSejourMutation()->loadRefsActes();
}
$group = CGroups::loadCurrent();
$cotation = CAppUI::conf("dPurgences Display check_cotation", $group);
$gemsa = CAppUI::conf("dPurgences Display check_gemsa", $group);
$ccmu = CAppUI::conf("dPurgences Display check_ccmu", $group);
$dp = CAppUI::conf("dPurgences Display check_dp", $group);
$display_sfmu = CAppUI::conf("dPurgences display_motif_sfmu");
$sfmu = CAppUI::conf("dPurgences CRPU gestion_motif_sfmu", $group);
$value = array();
if ($cotation > 1) {
    if ($rpu->_ref_consult && !$rpu->_ref_consult->_ref_actes && !$rpu->mutation_sejour_id || $rpu->mutation_sejour_id && !$rpu->_ref_sejour_mutation->_count_actes) {
        $value[] = "Cotation";
    }
}
if ($gemsa > 1) {