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


PHP CConsultation::loadRefsFwd方法代码示例

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


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

示例1: array

/**
 * $Id$
 *
 * @package    Mediboard
 * @subpackage Cabinet
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkRead();
$consultation_id = CValue::get("consultation_id");
$consultations = array();
$consultation = new CConsultation();
$consultation->load($consultation_id);
$consultation->loadRefsFwd();
$date = $consultation->_ref_plageconsult->date;
$prat = $consultation->_ref_plageconsult->_ref_chir;
$prat->loadRefs();
$patient = $consultation->_ref_patient;
$patient->loadRefs();
$prat->loadRefFunction();
$chir_ids = array_keys($prat->_ref_function->loadRefsUsers());
$ds = $consultation->getDS();
// nexts rdvs for the same function
$ljoin = array("plageconsult" => "plageconsult.plageconsult_id = consultation.plageconsult_id");
$where = array();
$where["date"] = ">= '{$date}' ";
$where["patient_id"] = " = '{$consultation->patient_id}' ";
$where[] = "plageconsult.chir_id " . $ds->prepareIn($chir_ids) . " OR plageconsult.remplacant_id " . $ds->prepareIn($chir_ids);
$where["annule"] = " != '1' ";
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:view_consultation.php

示例2: CConsultation

$consult = new CConsultation();
$where = array();
$ljoin["plageconsult"] = "consultation.plageconsult_id = plageconsult.plageconsult_id";
$where["consultation.du_tiers"] = "> 0";
$where["consultation.tiers_date_reglement"] = "IS NULL";
$where["plageconsult.date"] = "BETWEEN '{$filter->_date_min}' AND '{$filter->_date_max}'";
// Filtre sur les praticiens
$chir_id = CValue::getOrSession("chir");
$listPrat = CConsultation::loadPraticiensCompta($chir_id);
$where["plageconsult.chir_id"] = CSQLDataSource::prepareIn(array_keys($listPrat));
$order = "plageconsult.date";
/** @var CConsultation[] $listConsults */
$listConsults = $consult->loadList($where, $order, null, null, $ljoin);
$total = array("nb" => 0, "value" => 0);
foreach ($listConsults as $consult) {
    $consult->loadRefsFwd();
    $consult->loadRefsReglements();
    // Chargment de la FSE
    if (CModule::getActive("fse")) {
        if ($fse = CFseFactory::createFSE()) {
            $fse->loadIdsFSE($consult);
        }
    }
    // Retour Noemie déjà traité
    $hasNoemie = !$consult->_current_fse || $consult->_current_fse->hasNoemie();
    if ($hasNoemie) {
        unset($listConsults[$consult->_id]);
        continue;
    }
    // Nouveau règelement pour le formulaire
    $consult->_new_reglement_tiers = new CReglement();
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:print_noemie.php

示例3: loadRefsFwd

 /**
  * @deprecated
  * @see parent::loadRefsFwd()
  */
 function loadRefsFwd()
 {
     $this->loadRefChir();
     // Chargement operation/sejour
     $this->loadRefOperation();
     $this->_ref_operation->loadRefsFwd();
     $this->_date_op =& $this->_ref_operation->_datetime;
     // Chargement consultation
     $this->loadRefConsultation();
     $this->_ref_consultation->loadRefsFwd();
     $this->_ref_plageconsult =& $this->_ref_consultation->_ref_plageconsult;
     $this->_date_consult =& $this->_ref_consultation->_date;
     // Calcul de la Clairance créatinine
     $patient =& $this->_ref_consultation->_ref_patient;
     $patient->loadRefLatestConstantes(null, null, $this->_ref_consultation, false);
     $const_med = $patient->_ref_constantes_medicales;
     $const_med->updateFormFields();
     $age = intval($patient->_annees);
     if ($const_med->poids && $this->creatinine && $age && $age >= 18 && $age <= 110 && $const_med->poids >= 35 && $const_med->poids <= 120 && $this->creatinine >= 6 && $this->creatinine <= 70) {
         $this->_clairance = $const_med->poids * (140 - $age) / (7.2 * $this->creatinine);
         if ($patient->sexe == 'm') {
             $this->_clairance *= 1.04;
         } else {
             $this->_clairance *= 0.85;
         }
         $this->_clairance = round($this->_clairance, 2);
     }
     // Calcul des Pertes Sanguines Acceptables
     if ($this->ht && $this->ht_final && $const_med->_vst) {
         $this->_psa = $const_med->_vst * ($this->ht - $this->ht_final) / 100;
     }
 }
开发者ID:fbone,项目名称:mediboard4,代码行数:36,代码来源:CConsultAnesth.class.php


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