4 * active reminder popup gui
7 * @link http://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2011-2018 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once("../../globals.php");
14 require_once("$srcdir/clinical_rules.php");
16 use OpenEMR\Core\Header
;
21 <?php Header
::setupHeader('opener'); ?
>
24 <body
class="body_top">
26 <table
class="table border-0">
30 $all_allergy_alerts = array();
31 if ($GLOBALS['enable_allergy_check']) {
32 // Will show allergy and medication/prescription conflicts here
33 $all_allergy_alerts = allergy_conflict($pid, 'all', $_SESSION['authUser']);
36 $active_alerts = active_alert_summary($pid, "reminders-due", '', 'default', $_SESSION['authUser']);
39 <td
><span
class="title">
41 if (!empty($active_alerts) && empty($all_allergy_alerts)) {
42 echo xlt("Alerts/Reminders");
43 } elseif (!empty($active_alerts) && !empty($all_allergy_alerts)) {
44 echo xlt("WARNINGS and Alerts/Reminders");
45 } else { // empty($active_alerts) && !empty($all_allergy_alerts)
50 </span
> 
; 
; 
;</td
>
52 <a href
="#" id
="close" class="btn btn-secondary btn-lg" onclick
="dlgclose(); return false;"><?php
echo xlt('Close');?
></a
>
58 if (!empty($all_allergy_alerts)) {
59 foreach ($all_allergy_alerts as $allergy) {
60 echo xlt("ALLERGY WARNING") . ":" . text($allergy) . "<br />";