本文整理汇总了PHP中CPatient::loadObject方法的典型用法代码示例。如果您正苦于以下问题:PHP CPatient::loadObject方法的具体用法?PHP CPatient::loadObject怎么用?PHP CPatient::loadObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CPatient
的用法示例。
在下文中一共展示了CPatient::loadObject方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$nda = $lines[$fl + 8];
$date = CMbDT::dateTime(CMbDT::dateFromLocale($lines[$fl + 9]));
$codeCores = $lines[$fl + 10];
$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);
示例2: loadPatientPES
/**
* Load patient PES
*
* @param CCnStep $step Step
* @param int $step_number Step number
*
* @throws CMbException
*
* @return CPatient $patient
*/
static function loadPatientPES(CCnStep $step, $step_number)
{
// PES-PAM_Encounter_Management_Basic
$test = $step->_ref_test;
$partner = $test->_ref_partner;
$name = null;
switch ($step_number) {
case 10:
$name = "ONE";
break;
case 20:
$name = "TWO";
break;
case 30:
$name = "THREE";
break;
case 40:
$name = "FOUR";
break;
case 50:
if ($step->number == 80) {
$name = "UPDATE";
} else {
$name = "FIVE";
}
break;
}
$name = "PAM{$name}";
$patient = new CPatient();
$where = array();
$where["nom"] = " = '{$name}_{$partner->name}_{$test->_id}'";
$patient->loadObject($where);
if (!$patient->_id) {
$patient->random();
$patient->nom = "{$name}_{$partner->name}_{$test->_id}";
if ($msg = $patient->store()) {
throw new CMbException($msg);
}
}
return $patient;
}