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


PHP CConsultation::loadRefElementPrescription方法代码示例

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


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

示例1: unset

    $from_date = CAppUI::pref("today_ref_consult_multiple") ? CMbDT::date() : $consult->_date;
    $where["date"] = ">= '{$from_date}'";
    $where["chrono"] = "< '48'";
    $where["annule"] = "= '0'";
    $following_consultations = $pat->loadRefsConsultations($where);
    unset($following_consultations[$consult->_id]);
    //removing the targeted consultation
    foreach ($following_consultations as $_consultation) {
        $_consultation->loadRefPraticien()->loadRefFunction();
        $_consultation->canEdit();
    }
}
// Affichage de l'autocomplete des éléments de prescription
$display_elt = false;
if (CModule::getActive("dPprescription")) {
    $consult->loadRefElementPrescription();
    if ($consult->_id) {
        $task = $consult->loadRefTask();
        if (!$task->_id || !$task->prescription_line_element_id) {
            $display_elt = true;
        }
    } else {
        if (!$line_element_id) {
            $elt = new CElementPrescription();
            $elt->consultation = 1;
            if ($elt->countMatchingList()) {
                $display_elt = true;
            }
        }
    }
}
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:edit_planning.php

示例2: CPlageconsult

$plage = new CPlageconsult();
if ($plageconsult_id) {
    $plage->load($plageconsult_id);
    $plage->loadRefsNotes();
    $date = $plage->date;
} else {
    $date = CValue::get("date", CMbDT::date());
}
// consultation précise
$consultation_target = new CConsultation();
if ($consult_id) {
    $consultation_target->load($consult_id);
} elseif ($heure) {
    $consultation_target->heure = $heure;
}
$consultation_target->loadRefElementPrescription();
// Chargement des places disponibles
$listPlace = array();
$listBefore = array();
$listAfter = array();
$next_plage = $previous_plage = new CPlageconsult();
$function_id = null;
if ($plageconsult_id) {
    if (!$plage->plageconsult_id) {
        $plage->load($plageconsult_id);
    }
    $plage->loadRefsFwd(true);
    $function_id = $plage->_ref_chir->function_id;
    $plage->loadRefsConsultations(false, true, true);
    $plage->loadFillRate();
    $plage->_ref_chir->loadRefFunction();
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:httpreq_list_places.php

示例3: array

}
//if multiple, no weekly planner
if ($multipleMode) {
    $periods = array("day", "week", "month");
    if ($period == "weekly") {
        $period = "month";
    }
}
$consultation_ids = array();
// next consultations in editMultiple
if ($consultation_id) {
    $consultation_ids = array();
    $consultation_temp = new CConsultation();
    $consultation_temp->load($consultation_id);
    $consultation_temp->loadRefPlageConsult()->loadRefChir();
    $consultation_temp->loadRefElementPrescription();
    // we add the first consult to the future json list (first element)
    if (!$consultation_temp->annule && ($consultation_temp->chrono = 16)) {
        $consultation_ids[] = array($consultation_temp->plageconsult_id, $consultation_temp->_id, $consultation_temp->_ref_plageconsult->date, $consultation_temp->heure, $consultation_temp->_ref_plageconsult->chir_id, utf8_encode($consultation_temp->_ref_plageconsult->_ref_chir->_view), $consultation_temp->annule, utf8_encode($consultation_temp->rques), $consultation_temp->element_prescription_id, utf8_encode($consultation_temp->element_prescription_id ? $consultation_temp->_ref_element_prescription->libelle : ""));
    }
    //edit mod
    if ($multiple_edit) {
        $plage_temp = $consultation_temp->_ref_plageconsult;
        $where_next = array();
        $ljoin_next = array();
        $limit = CAppUI::pref("NbConsultMultiple");
        $date_ref = CAppUI::pref("today_ref_consult_multiple") ? CMbDT::date() : $plage_temp->date;
        $ljoin_next["plageconsult"] = "plageconsult.plageconsult_id = consultation.plageconsult_id";
        $where_next["consultation.patient_id"] = "= '{$consultation_temp->patient_id}'";
        $where_next["consultation.annule"] = "= '0'";
        //only not cancelled
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:inc_plage_selector_classic.php


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