本文整理汇总了PHP中CSejour::massLoadCurrAffectation方法的典型用法代码示例。如果您正苦于以下问题:PHP CSejour::massLoadCurrAffectation方法的具体用法?PHP CSejour::massLoadCurrAffectation怎么用?PHP CSejour::massLoadCurrAffectation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSejour
的用法示例。
在下文中一共展示了CSejour::massLoadCurrAffectation方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: otherOrder
$sejour->loadLiaisonsForPrestation($prestation_id, $date);
}
}
otherOrder($mouvementsNP, "np", $order_col, $order_way);
$update_count = count($mouvements) . "/" . count($mouvementsNP);
$mouvements_by_service = array();
$mouvementsNP_by_service = array();
$update_count = count($mouvements) . "/" . count($mouvementsNP);
foreach ($mouvements as $_mouvement) {
if (!isset($mouvements_by_service[$_mouvement->service_id])) {
$mouvements_by_service[$_mouvement->service_id] = array();
}
$mouvements_by_service[$_mouvement->service_id][] = $_mouvement;
}
$mouvements = $mouvements_by_service;
CSejour::massLoadCurrAffectation($mouvementsNP, "{$date} 00:00:00");
foreach ($mouvementsNP as $_mouvement) {
$_service_id = $_mouvement->service_id;
if ($_mouvement->_ref_curr_affectation->service_id && !$_mouvement->_ref_curr_affectation->lit_id) {
$_service_id = $_mouvement->_ref_curr_affectation->service_id;
}
if (!isset($mouvementsNP_by_service[$_service_id])) {
$mouvementsNP_by_service[$_service_id] = array();
}
$mouvementsNP_by_service[$_service_id][] = $_mouvement;
}
$mouvementsNP = $mouvementsNP_by_service;
}
$list_mode_sortie = array();
if (CAppUI::conf("dPplanningOp CSejour use_custom_mode_sortie")) {
$mode_sortie = new CModeSortieSejour();
示例2: array
$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();
$transmissions = $transmission->loadList($whereTrans, "date");