2 // Copyright (C) 2010 OpenEMR Support LLC
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
9 $sanitize_all_escapes=true;
11 //STOP FAKE REGISTER GLOBALS
12 $fake_register_globals=false;
14 require_once(dirname(__FILE__
)."/../../interface/globals.php");
15 require_once ($GLOBALS['srcdir'] . "/classes/postmaster.php");
16 require_once ($GLOBALS['srcdir'] . "/maviq_phone_api.php");
17 require_once($GLOBALS['srcdir'] . "/reminders.php");
19 //To improve performance and not freeze the session when running this
20 // report, turn off session writing. Note that php session variables
21 // can not be modified after the line below. So, if need to do any php
22 // session work in the future, then will need to remove this line.
23 session_write_close();
25 //Remove time limit, since script can take many minutes
31 <?php
html_header_show();?
>
32 <link rel
="stylesheet" href
="<?php echo $css_header;?>" type
="text/css">
33 <link rel
="stylesheet" href
="batchcom.css" type
="text/css">
35 <body
class="body_top">
36 <span
class="title"><?php
echo htmlspecialchars(xl('Patient Reminder Batch Job'), ENT_NOQUOTES
)?
></span
>
39 // Collect the sender information
48 <td
class='text' align
='left' colspan
="3"><br
>
50 <?php
$update_rem_log = update_reminders_batch_method(); ?
>
52 <span
class="text"><?php
echo htmlspecialchars(xl('The patient reminders have been updated'), ENT_NOQUOTES
) . ":"?
></span
><br
>
53 <span
class="text"><?php
echo htmlspecialchars(xl('Total active actions'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_active_actions'];?
></span
><br
>
54 <span
class="text"><?php
echo htmlspecialchars(xl('Total active reminders before update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_pre_active_reminders'];?
></span
><br
>
55 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders before update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_pre_unsent_reminders'];?
></span
><br
>
56 <span
class="text"><?php
echo htmlspecialchars(xl('Total active reminders after update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_post_active_reminders'];?
></span
><br
>
57 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders after update'), ENT_NOQUOTES
) . ": " . $update_rem_log['total_post_unsent_reminders'];?
></span
><br
>
58 <span
class="text"><?php
echo htmlspecialchars(xl('Total new reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_new_reminders'];?
></span
><br
>
59 <span
class="text"><?php
echo htmlspecialchars(xl('Total updated reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_updated_reminders'];?
></span
><br
>
60 <span
class="text"><?php
echo htmlspecialchars(xl('Total inactivated reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_inactivated_reminders'];?
></span
><br
>
61 <span
class="text"><?php
echo htmlspecialchars(xl('Total unchanged reminders'), ENT_NOQUOTES
) . ": " . $update_rem_log['number_unchanged_reminders'];?
></span
><br
>
63 <?php
$send_rem_log = send_reminders(); ?
>
65 <br
><span
class="text"><?php
echo htmlspecialchars(xl('The patient reminders have been sent'), ENT_NOQUOTES
) . ":"?
></span
><br
>
66 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders before sending process'), ENT_NOQUOTES
) . ": " . $send_rem_log['total_pre_unsent_reminders'];?
></span
><br
>
67 <span
class="text"><?php
echo htmlspecialchars(xl('Total unsent reminders after sending process'), ENT_NOQUOTES
) . ": " . $send_rem_log['total_post_unsent_reminders'];?
></span
><br
>
68 <span
class="text"><?php
echo htmlspecialchars(xl('Total successful reminders sent via email'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_success_emails'];?
></span
><br
>
69 <span
class="text"><?php
echo htmlspecialchars(xl('Total failed reminders sent via email'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_failed_emails'];?
></span
><br
>
70 <span
class="text"><?php
echo htmlspecialchars(xl('Total successful reminders sent via phone'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_success_calls'];?
></span
><br
>
71 <span
class="text"><?php
echo htmlspecialchars(xl('Total failed reminders sent via phone'), ENT_NOQUOTES
) . ": " . $send_rem_log['number_unchanged_reminders'];?
></span
><br
>
73 <br
><span
class="text"><?php
echo htmlspecialchars(xl('(Email delivery is immediate, while automated VOIP is sent to the service provider for further processing.)'), ENT_NOQUOTES
)?
></span
><br
>
75 <br
><input type
="button" value
="<?php echo htmlspecialchars(xl('Close'), ENT_QUOTES); ?>" onClick
="window.close()"><br
><br
><br
>