$params = array("dossier_anesth_id" => $_interv->_ref_consult_anesth->_id, "operation_id" => $_interv->_id, "offline" => 1, "print" => 1, "pdf" => 0); $fiches_anesthesies[$_interv->_id] = CApp::fetch("dPcabinet", "print_fiche", $params); } if ($offline && CModule::getActive("forms")) { $params = array("detail" => 3, "reference_id" => $sejour->_id, "reference_class" => $sejour->_class, "target_element" => "ex-objects-{$sejour->_id}", "print" => 1, "limit" => $forms_limit); $formulaires = CApp::fetch("forms", "ajax_list_ex_object", $params); } // L'appel à print_fiche écrase les interventions du dossier d'anesthésie. // Il faut charger le suivi médical à posteriori $cibles = array(); $last_trans_cible = array(); $users = array(); $sejour->loadSuiviMedical($datetime_min, null, $cibles, $last_trans_cible, $user_id = null, $users, 1); if ($embed) { // Fichiers et documents du sejour $sejour->loadRefsDocItems(false); // Fichiers et documents des interventions $interventions = $sejour->_ref_operations; foreach ($interventions as $_interv) { $_interv->loadRefPlageOp(); $_interv->loadRefsDocItems(false); } // Fichiers et documents des consultations $consultations = $sejour->loadRefsConsultations(); foreach ($consultations as $_consult) { $_consult->loadRefsDocItems(false); } $sejour->_ref_consult_anesth->_ref_consultation->loadRefsDocItems(false); $sejour->_ref_consult_anesth->loadRefsDocItems(false); } // Chargement du patient
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision: 28613 $ */ CCanDo::checkRead(); $group_id = CGroups::loadCurrent()->_id; $sejour_id = CValue::getOrSession("sejour_id"); $user = CMediusers::get(); $prats = $user->loadPraticiens(PERM_READ); $service = new CService(); $where = array("group_id" => "= '{$group_id}'"); $order = "nom"; $services = $service->loadListWithPerms(PERM_READ, $where, $order); $sejour = new CSejour(); $sejour->load($sejour_id); $sejour->loadRefsNotes(); $sejour->loadRefsDocItems(); if ($sejour_id && !$sejour->_id) { CAppUI::setMsg(CAppUI::tr("CSejour-unavailable"), UI_MSG_WARNING); CAppUI::redirect("m=ssr&tab=vw_aed_sejour&sejour_id=0"); } $fiche_autonomie = new CFicheAutonomie(); $patient = new CPatient(); $bilan = new CBilanSSR(); $prescription = null; $lines = array(); $medecin_adresse_par = ""; $correspondantsMedicaux = array(); if ($sejour->_id) { $sejour->loadRefPatient(); $sejour->loadNDA(); // Chargement du patient