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


PHP CConsultation::canDo方法代码示例

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


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

示例1: reset

        $func_categ = reset($line->_ref_element_prescription->_ref_category_prescription->loadBackRefs("functions_category", null, "1"));
        $plageconsult = new CPlageconsult();
        $where = $ljoin = array();
        $where["pour_tiers"] = "= '1'";
        $where["date"] = "BETWEEN '" . CMbDT::date() . "' AND '" . CMbDT::date("+3 month") . "'";
        if ($func_categ) {
            $_function_id = $func_categ->function_id;
            $where["users_mediboard.function_id"] = "= '{$_function_id}'";
            $ljoin["users_mediboard"] = "users_mediboard.user_id = plageconsult.chir_id";
        }
        $nb_plages = $plageconsult->countList($where, null, $ljoin);
    }
} else {
    // Consultation existante
    $consult->load($consultation_id);
    $canConsult = $consult->canDo();
    $canConsult->needsRead("consultation_id");
    $consult->loadRefConsultAnesth();
    $consult->loadRefsNotes();
    $consult->loadRefSejour();
    $consult->loadRefPlageConsult()->loadRefs();
    $chir = $consult->loadRefPraticien();
    $pat = $consult->loadRefPatient();
    $pat->loadIdVitale();
    // Correspondants médicaux
    $correspondants = $pat->loadRefsCorrespondants();
    foreach ($correspondants as $_correspondant) {
        $correspondantsMedicaux["correspondants"][] = $_correspondant->_ref_medecin;
    }
    if ($pat->_ref_medecin_traitant->_id) {
        $correspondantsMedicaux["traitant"] = $pat->_ref_medecin_traitant;
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:edit_planning.php

示例2: CConsultation

 * @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::checkRead();
$consult_id = CValue::get("consult_id");
$consult = new CConsultation();
$consult->load($consult_id);
$consult->countActes();
$consult->loadExtCodesCCAM();
$consult->getAssociationCodesActes();
$consult->loadPossibleActes();
$consult->canDo();
// Chargement des actes NGAP
$consult->loadRefsActesNGAP();
// Initialisation d'un acte NGAP
$acte_ngap = CActeNGAP::createEmptyFor($consult);
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    // Chargement des règles de codage
    $consult->loadRefsCodagesCCAM();
    foreach ($consult->_ref_codages_ccam as $_codages_by_prat) {
        foreach ($_codages_by_prat as $_codage) {
            $_codage->loadPraticien()->loadRefFunction();
            $_codage->loadActesCCAM();
            $_codage->getTarifTotal();
            foreach ($_codage->_ref_actes_ccam as $_acte) {
                $_acte->getTarif();
            }
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_vw_actes.php

示例3: CTypeAnesth

$userSel->load($consult->_ref_plageconsult->chir_id);
$userSel->loadRefs();
$canUserSel = $userSel->canDo();
// assign to session the current consultation praticien
$chirSession = CValue::session("chirSel");
if ($chirSession != $userSel->_id && $canUserSel) {
    CValue::setSession("chirSel", $userSel->_id);
}
$anesth = new CTypeAnesth();
$anesth = $anesth->loadGroupList();
$consultAnesth =& $consult->_ref_consult_anesth;
// Consultation courante
$consult->_ref_chir =& $userSel;
// Chargement de la consultation
if ($consult->_id) {
    $consult->canDo()->needsEdit(array("consult_id" => null));
    $consult->loadRefs();
    // Chargement de la consultation d'anesthésie
    // Chargement de la vue de chacun des dossiers
    foreach ($consult->_refs_dossiers_anesth as $_dossier) {
        $_dossier->loadRefConsultation();
        $_dossier->loadRefOperation()->loadRefPlageOp();
    }
    // Si on a passé un id de dossier d'anesth
    if ($dossier_anesth_id && isset($consult->_refs_dossiers_anesth[$dossier_anesth_id])) {
        $consultAnesth = $consult->_refs_dossiers_anesth[$dossier_anesth_id];
    }
    if (!is_array($consultAnesth) && $consultAnesth->_id) {
        $consultAnesth->loadRefs();
        if ($consultAnesth->_ref_operation->_id || $consultAnesth->_ref_sejour->_id) {
            if ($consultAnesth->_ref_operation->passage_uscpo === null) {
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:ajax_full_consult.php


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