本文整理汇总了PHP中is_patient_deceased函数的典型用法代码示例。如果您正苦于以下问题:PHP is_patient_deceased函数的具体用法?PHP is_patient_deceased怎么用?PHP is_patient_deceased使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了is_patient_deceased函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: test_rules_clinic
//.........这里部分代码省略.........
$pass_target = 0;
// Find the number of target groups
$targetGroups = returnTargetGroups($rowRule['id']);
if (count($targetGroups) == 1 || $mode == "report") {
//skip this section if not report and more than one target group
foreach ($patientData as $rowPatient) {
// Count the total patients
$total_patients++;
$dateCounter = 1;
// for reminder mode to keep track of which date checking
foreach ($target_dates as $dateFocus) {
//Skip if date is set to SKIP
if ($dateFocus == "SKIP") {
$dateCounter++;
continue;
}
//Set date counter and reminder token (applicable for reminders only)
if ($dateCounter == 1) {
$reminder_due = "soon_due";
} else {
if ($dateCounter == 2) {
$reminder_due = "due";
} else {
// $dateCounter == 3
$reminder_due = "past_due";
}
}
// First, deal with deceased patients
// (for now will simply not pass the filter, but can add a database item
// if ever want to create rules for dead people)
// Could also place this function at the total_patients level if wanted.
// (But then would lose the option of making rules for dead people)
// Note using the dateTarget rather than dateFocus
if (is_patient_deceased($rowPatient['pid'], $dateTarget)) {
continue;
}
// Check if pass filter
$passFilter = test_filter($rowPatient['pid'], $rowRule['id'], $dateFocus);
if ($passFilter === "EXCLUDED") {
// increment EXCLUDED and pass_filter counters
// and set as FALSE for reminder functionality.
$pass_filter++;
$exclude_filter++;
$passFilter = FALSE;
}
if ($passFilter) {
// increment pass filter counter
$pass_filter++;
} else {
$dateCounter++;
continue;
}
// Check if pass target
$passTarget = test_targets($rowPatient['pid'], $rowRule['id'], '', $dateFocus);
if ($passTarget) {
// increment pass target counter
$pass_target++;
// send to reminder results
if ($mode == "reminders-all") {
// place the completed actions into the reminder return array
$actionArray = resolve_action_sql($rowRule['id'], '1');
foreach ($actionArray as $action) {
$action_plus = $action;
$action_plus['due_status'] = "not_due";
$action_plus['pid'] = $rowPatient['pid'];
$results = reminder_results_integrate($results, $action_plus);
示例2: htmlspecialchars
if (empty($portalLogin)) {
echo "<span>" . htmlspecialchars(xl('Create Offsite Portal Credentials'), ENT_NOQUOTES) . "</span></a></td>";
} else {
echo "<span>" . htmlspecialchars(xl('Reset Offsite Portal Credentials'), ENT_NOQUOTES) . "</span></a></td>";
}
} else {
$portalUserSetting = false;
}
}
if (!$portalUserSetting) {
// Show that the patient has not authorized portal access
echo "<td style='padding-left:1em;'>" . htmlspecialchars(xl('Patient has not authorized the Patient Portal.'), ENT_NOQUOTES) . "</td>";
}
//Patient Portal
// If patient is deceased, then show this (along with the number of days patient has been deceased for)
$days_deceased = is_patient_deceased($pid);
if ($days_deceased) {
echo "<td style='padding-left:1em;font-weight:bold;color:red'>" . htmlspecialchars(xl('DECEASED'), ENT_NOQUOTES) . " (" . htmlspecialchars($days_deceased, ENT_NOQUOTES) . " " . htmlspecialchars(xl('days ago'), ENT_NOQUOTES) . ")</td>";
}
echo "</tr></table>";
}
// Get the document ID of the patient ID card if access to it is wanted here.
$idcard_doc_id = false;
if ($GLOBALS['patient_id_category_name']) {
$idcard_doc_id = get_document_by_catg($pid, $GLOBALS['patient_id_category_name']);
}
?>
<table cellspacing='0' cellpadding='0' border='0'>
<tr>
<td class="small" colspan='4'>
<a href="../history/history.php" onclick='top.restoreSession()'>