當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。