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


PHP CConsultation::loadRefPatient方法代码示例

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


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

示例1: CConsultation

<?php

/**
 * $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");
$dossier_anesth_id = CValue::get("dossier_anesth_id");
$consultation = new CConsultation();
$consultation->load($consultation_id);
// Chargement du dossier medical du patient
$consultation->loadRefPatient();
$patient =& $consultation->_ref_patient;
$patient->loadRefDossierMedical();
// Chargement du dossier medical du sejour
$consultation->loadRefConsultAnesth($dossier_anesth_id);
$consultation->_ref_consult_anesth->loadRefOperation();
$sejour =& $consultation->_ref_consult_anesth->_ref_sejour;
$sejour->loadRefDossierMedical();
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("sejour", $sejour);
$smarty->assign("patient", $patient);
$smarty->display("inc_consult_anesth/inc_vw_facteurs_risque.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:30,代码来源:httpreq_vw_facteurs_risque.php

示例2: CConsultation

/**
 * $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();
$consult_id = CValue::get("consult_id");
$consult = new CConsultation();
$consult->_id = $consult_id;
$consult->load();
$consult->loadRefPatient();
$consult->loadRefGrossesse();
$type = "";
switch ($consult->type_assurance) {
    case "classique":
        $type = "assurance_classique";
        break;
    case "at":
        $type = "accident_travail";
        break;
    case "smg":
        $type = "soins_medicaux_gratuits";
        break;
    case "maternite":
        $type = "maternite";
        break;
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:30,代码来源:ajax_type_assurance.php

示例3: CConsultation

/**
 * $Id$
 *  
 * @category Cabinet
 * @package  Mediboard
 * @author   SARL OpenXtrem <dev@openxtrem.com>
 * @license  GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkEdit();
$consult_id = CValue::get("consult_id");
$first_consult = new CConsultation();
$first_consult->load($consult_id);
$plage_consult = $first_consult->loadRefPlageConsult();
$first_consult->loadRefPatient();
$first_consult->loadRefPraticien();
$date = $plage_consult->date;
$praticien = new CMediusers();
$praticiens = $praticien->loadPraticiens(PERM_EDIT);
$next_consult = new CConsultation();
$ljoin = array();
$where = array();
$where["patient_id"] = " = '{$first_consult->patient_id}'";
$where["date"] = " >= '{$date}'";
$ljoin["plageconsult"] = "plageconsult.plageconsult_id = consultation.plageconsult_id";
/** @var CConsultation[] $next_consults */
$next_consults = $next_consult->loadList($where, "date ASC", null, null, $ljoin);
foreach ($next_consults as $_key => $_consult) {
    $_consult->loadRefPraticien();
    //no rights on prat, skip the consult
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_edit_multiconsult.php


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