Esempio n. 1
0
    $rpu->_responsable_id = $user->_id;
    $rpu->_entree = CMbDT::dateTime();
    $sejour = new CSejour();
    $patient = new CPatient();
    $praticien = new CMediusers();
}
// Contraintes sur le mode d'entree / provenance
$contrainteProvenance[6] = array("", 1, 2, 3, 4);
$contrainteProvenance[7] = array("", 1, 2, 3, 4);
$contrainteProvenance[8] = array("", 5, 8);
// Chargement des boxes
$services = array();
$services_type = array("Urgences" => CService::loadServicesUrgence(), "UHCD" => CService::loadServicesUHCD());
if (CAppUI::conf("dPurgences view_rpu_uhcd")) {
    // Affichage des services UHCD et d'urgence
    $services = CService::loadServicesUHCDRPU();
} elseif ($sejour->type == "comp" && $sejour->UHCD) {
    // UHCD pour un séjour "comp" et en UHCD
    $services = $services_type["UHCD"];
    unset($services_type["Urgences"]);
} else {
    // Urgences pour un séjour "urg"
    $services = $services_type["Urgences"];
    unset($services_type["UHCD"]);
}
if ($imagerie_etendue) {
    $service_imagerie = CService::loadServicesImagerie();
    $services_type["Imagerie"] = $service_imagerie;
    $services = array_merge($services, $services_type["Imagerie"]);
}
$module_orumip = CModule::getActive("orumip");