当前位置: 首页>>代码示例>>PHP>>正文


PHP CSejour::massLoadSurrAffectation方法代码示例

本文整理汇总了PHP中CSejour::massLoadSurrAffectation方法的典型用法代码示例。如果您正苦于以下问题:PHP CSejour::massLoadSurrAffectation方法的具体用法?PHP CSejour::massLoadSurrAffectation怎么用?PHP CSejour::massLoadSurrAffectation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CSejour的用法示例。


在下文中一共展示了CSejour::massLoadSurrAffectation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

        $where[] = CAppUI::pref("showMissingRPU") ? "sejour.type = 'urg' OR rpu.rpu_id IS NOT NULL" : "rpu.rpu_id IS NOT NULL";
        $where["sejour.sortie_reelle"] = "IS NULL";
        $where["sejour.annule"] = " = '0'";
        if (CAppUI::conf("dPurgences create_sejour_hospit")) {
            $where["rpu.mutation_sejour_id"] = "IS NULL";
        }
        break;
    default:
        $where["affectation.entree"] = "<= '{$datetime_max}'";
        $where["affectation.sortie"] = ">= '{$datetime_min}'";
        $where["affectation.service_id"] = " = '{$service_id}'";
}
$patients_offline = array();
/** @var CSejour[] $sejours */
$sejours = $sejour->loadList($where, null, null, "sejour.sejour_id", $ljoin);
CSejour::massLoadSurrAffectation($sejours, $datetime_avg);
CSejour::massLoadCurrAffectation($sejours, $datetime_avg, $service_id);
CSejour::massLoadNDA($sejours);
/** @var CPatient[] $patients */
$patients = CStoredObject::massLoadFwdRef($sejours, "patient_id");
CPatient::massLoadIPP($patients);
CStoredObject::massCountBackRefs($sejours, "operations");
// Recherche de transmissions // observations // consultations
$datetime_delta = CMbDT::date("-3 days", $datetime_avg);
$sejours_ids = CMbArray::pluck($sejours, "_id");
$where = array("sejour_id" => CSQLDataSource::prepareIn($sejours_ids));
// Transmissions
$whereTrans = $where;
$whereTrans["libelle_atc"] = "IS NOT NULL";
$whereTrans["date"] = "BETWEEN '{$datetime_delta}' AND '{$datetime_avg}'";
$transmission = new CTransmissionMedicale();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:offline_sejours_lite.php

示例2: array

                    $_affectation->_view = $_affectation->_ref_lit->_view;
                    $sejour = $_affectation->loadRefSejour(1);
                    $sejour->_ref_curr_affectation = $_affectation;
                }
            }
        }
    }
}
/* @var CPatient[] $patients */
$patients = CStoredObject::massLoadFwdRef($sejours, "patient_id");
CPatient::massLoadIPP($patients);
CStoredObject::massLoadBackRefs($patients, "dossier_medical");
CStoredObject::massLoadFwdRef($sejours, "praticien_id");
CStoredObject::massCountBackRefs($sejours, "tasks", array("realise" => "= '0'"), array(), "taches_non_realisees");
CStoredObject::massLoadBackRefs($sejours, "dossier_medical");
CSejour::massLoadSurrAffectation($sejours);
CSejour::massLoadBackRefs($sejours, "user_sejour");
CSejour::massLoadNDA($sejours);
$count_my_patient = 0;
foreach ($sejours as $sejour) {
    $count_my_patient += count($sejour->loadRefsUserSejour($userCourant));
    $sejour->loadRefPatient();
    $sejour->loadRefPraticien();
    $sejour->checkDaysRelative($date);
    $sejour->loadRefPrescriptionSejour();
    $prescription = $sejour->_ref_prescription_sejour;
    if ($prescription->_id) {
        $prescription->loadJourOp(CMbDT::date());
    }
    // Chargement des taches non effectuées
    $sejour->_count_tasks = $sejour->_count["taches_non_realisees"];
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:vw_sejours.php


注:本文中的CSejour::massLoadSurrAffectation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。