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


PHP CSejour::loadFromNDA方法代码示例

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


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

示例1: explode

 * @link     http://www.mediboard.org
 */
CCanDo::checkAdmin();
$receiver_guid = CValue::get("receiver_guid");
$receiver = CMbObject::loadFromGuid($receiver_guid);
$receiver->loadConfigValues();
if (!$receiver_guid || !$receiver->_id) {
    CAppUI::stepAjax("CInteropReceiver.none", UI_MSG_ERROR);
}
// On rejoue pour une liste de NDA
if ($list_nda = CValue::get("list_nda")) {
    $ndas = explode("|", $list_nda);
    $sejours = array();
    foreach ($ndas as $_nda) {
        $sejour = new CSejour();
        $sejour->loadFromNDA($_nda);
        if ($sejour->_id) {
            $sejours[] = $sejour;
        }
    }
} else {
    // Filtre sur les enregistrements
    $sejour = new CSejour();
    $action = CValue::get("action", "start");
    // Tous les départs possibles
    $idMins = array("start" => CValue::get("id_start", "000000"), "continue" => CValue::getOrSession("idContinue"), "retry" => CValue::getOrSession("idRetry"));
    $idMin = CValue::first(@$idMins[$action], "000000");
    CValue::setSession("idRetry", $idMin);
    // Requêtes
    $where = array();
    $where[$sejour->_spec->key] = "> '{$idMin}'";
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_resend_exchange.php

示例2: array

    $codePresc = $lines[$fl + 11];
    //IPP
    if ($lines[$fl] != '') {
        $patient->_IPP = $ipp;
        $patient->loadFromIPP();
    }
    //search
    if (!$patient->_id && $nom != '' && $prenom != "") {
        $where = array();
        $where[] = "`nom` LIKE '{$nom}%' OR `nom_jeune_fille` LIKE '{$nom}%'";
        $where["prenom"] = "LIKE '{$prenom}%' ";
        $where["naissance"] = "LIKE '{$naissance}' ";
        $patient->loadObject($where);
    }
    //NDA
    if ($patient->_id && $nda) {
        $dossier->loadFromNDA($nda);
    }
    // patient + date (et pas de nda)
    if ($patient->_id && !$dossier->_id && $date) {
        $where = array();
        $where[] = " '{$date}' BETWEEN entree AND sortie ";
        $where["patient_id"] = " = '{$patient->_id}'";
        $dossier->loadObject($where);
    }
}
$smarty = new CSmartyDP();
$smarty->assign("mail_id", $mail_id);
$smarty->assign("patient", $patient);
$smarty->assign("dossier_id", $dossier->_id);
$smarty->display("inc_vw_attach_piece.tpl");
开发者ID:fbone,项目名称:mediboard4,代码行数:31,代码来源:ajax_link_attachments.php

示例3: CSejour

 * $Id$
 *
 * @package    Mediboard
 * @subpackage PMSI
 * @author     SARL OpenXtrem <dev@openxtrem.com>
 * @license    GNU General Public License, see http://www.gnu.org/licenses/gpl.html
 * @version    $Revision$
 */
CCanDo::checkEdit();
$group = CGroups::loadCurrent();
$sejour = new CSejour();
$patient = new CPatient();
// Si on passe un numéro de dossier,
// on charge le patient et le séjour correspondant
if ($NDA = CValue::get("NDA")) {
    $sejour->loadFromNDA($NDA);
    if ($sejour->_id && $sejour->group_id == $group->_id) {
        $patient = $sejour->loadRefPatient();
        CValue::setSession("sejour_id", $sejour->_id);
        CValue::setSession("patient_id", $patient->_id);
    }
}
// Si on n'a pas récupéré de patient via le numero de dossier,
// on charge le dossier en session
if (!$patient->_id) {
    $patient->load(CValue::getOrSession("patient_id"));
    $sejour->load(CValue::getOrSession("sejour_id"));
    // Si le séjour a un patient différent de celui selectionné,
    // on le déselectionne
    if ($patient->_id && $sejour->_id && $sejour->patient_id != $patient->_id) {
        CValue::setSession("sejour_id");
开发者ID:OpenXtrem,项目名称:mediboard-test,代码行数:31,代码来源:vw_dossier_pmsi.php


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