• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP is_patient_deceased函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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);
开发者ID:nickolasnikolic,项目名称:openemr,代码行数:67,代码来源:clinical_rules.php


示例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()'>
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:demographics.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP is_payword函数代码示例发布时间:2022-05-15
下一篇:
PHP is_password函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap