diff --git a/ccr/createCCR.php b/ccr/createCCR.php index e096c361d8b..9ac59d7291c 100644 --- a/ccr/createCCR.php +++ b/ccr/createCCR.php @@ -39,6 +39,8 @@ require_once(dirname(__FILE__) . "/transmitCCD.php"); require_once(dirname(__FILE__) . "/../custom/code_types.inc.php"); +use PHPMailer\PHPMailer\PHPMailer; + function createCCR($action, $raw = "no", $requested_by = "") { diff --git a/interface/orders/single_order_results.inc.php b/interface/orders/single_order_results.inc.php index d1d8fbd793b..695cdd2f8c9 100644 --- a/interface/orders/single_order_results.inc.php +++ b/interface/orders/single_order_results.inc.php @@ -183,8 +183,8 @@ function generate_result_row(&$ctx, &$row, &$rrow, $priors_omitted = false) array($lab_id, $procedure_code) ); if (!empty($trow['standard_code'])) { - $tmp = "$tmp"; + $tmp = "$tmp"; } } @@ -225,8 +225,8 @@ function generate_result_row(&$ctx, &$row, &$rrow, $priors_omitted = false) if ($result_code !== '' || $result_document_id) { $tmp = myCellText($result_code); if (empty($GLOBALS['PATIENT_REPORT_ACTIVE']) && !empty($result_code)) { - $tmp = "$tmp"; + $tmp = "$tmp"; } echo " $tmp\n"; @@ -248,7 +248,7 @@ function generate_result_row(&$ctx, &$row, &$rrow, $priors_omitted = false) echo " "; if (empty($GLOBALS['PATIENT_REPORT_ACTIVE'])) { echo ""; } @@ -415,7 +415,7 @@ function showpnotes(orderid) { } var othername = (w.name == 'RTop') ? 'RBot' : 'RTop'; w.parent.left_nav.forceDual(); - w.parent.left_nav.loadFrame('pno1', othername, 'patient_file/summary/pnotes_full.php?orderid=' + orderid); + w.parent.left_nav.loadFrame('pno1', othername, 'patient_file/summary/pnotes_full.php?orderid=' + encodeURIComponent(orderid)); } else { let url = '../../patient_file/summary/pnotes_full.php?orderid=' + orderid; dlgopen(url, 'notes', 750, 500, '', '', {onClosed: 'reload'}); @@ -428,7 +428,7 @@ function educlick(codetype, codevalue) { dlgopen('/interface/patient_file/education.php' + '?type=' + encodeURIComponent(codetype) + '&code=' + encodeURIComponent(codevalue) + - '&language=', + '&language=', '_blank', 1024, 750,true); // Force a new window instead of iframe to address cross site scripting potential } @@ -437,7 +437,7 @@ function educlick(codetype, codevalue) { -
+
@@ -452,7 +452,7 @@ function educlick(codetype, codevalue) { if (empty($GLOBALS['PATIENT_REPORT_ACTIVE'])) { echo " "; } @@ -635,7 +635,7 @@ function educlick(codetype, codevalue) { echo " \n"; foreach ($aNotes as $key => $value) { echo " \n"; - echo " " . ($key + 1) . "\n"; + echo " " . text(($key + 1)) . "\n"; //
 tag because white space and a fixed font are often used to line things up.
         echo "  
" . text($value) . "
\n"; echo " \n"; @@ -656,7 +656,7 @@ function educlick(codetype, codevalue) {   ' - onclick='showpnotes()' /> + onclick='showpnotes()' />   diff --git a/interface/patient_file/encounter/superbill_codes.php b/interface/patient_file/encounter/superbill_codes.php index b5ed5ffad1a..6427eb80063 100644 --- a/interface/patient_file/encounter/superbill_codes.php +++ b/interface/patient_file/encounter/superbill_codes.php @@ -62,7 +62,7 @@
- + diff --git a/interface/patient_file/reminder/active_reminder_popup.php b/interface/patient_file/reminder/active_reminder_popup.php index 49b14bb3a15..727d925fc35 100644 --- a/interface/patient_file/reminder/active_reminder_popup.php +++ b/interface/patient_file/reminder/active_reminder_popup.php @@ -5,7 +5,7 @@ * @package OpenEMR * @link http://www.open-emr.org * @author Brady Miller - * @copyright Copyright (c) 2011-2017 Brady Miller + * @copyright Copyright (c) 2011-2018 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ @@ -55,7 +55,7 @@     - + @@ -63,7 +63,7 @@
"; + echo xlt("ALLERGY WARNING") . ":" . text($allergy) ."
"; } if (!empty($all_allergy_alerts)) { diff --git a/interface/patient_file/reminder/clinical_reminders.php b/interface/patient_file/reminder/clinical_reminders.php index 8d0e94a3ae3..e0d1ab28f0e 100644 --- a/interface/patient_file/reminder/clinical_reminders.php +++ b/interface/patient_file/reminder/clinical_reminders.php @@ -2,13 +2,13 @@ /** * clinical reminders gui * - * @package OpenEMR - * @link http://www.open-emr.org - * @author Brady Miller - * @author Ensofttek, LLC - * @copyright Copyright (c) 2011-2017 Brady Miller + * @package OpenEMR + * @link http://www.open-emr.org + * @author Brady Miller + * @author Ensofttek, LLC + * @copyright Copyright (c) 2011-2018 Brady Miller * @copyright Copyright (c) 2011 Ensofttek, LLC - * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 + * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ @@ -30,17 +30,17 @@
- +
-   +   - +
@@ -55,9 +55,9 @@ ?>
    -
  • -
  • -
  • +
  • +
  • +
@@ -77,12 +77,12 @@
- - + + - - + + - + + + @@ -137,15 +133,15 @@
- +
- - - + + + - - - - + + + + @@ -165,24 +161,20 @@ $select = "default"; } } ?> - + + + @@ -235,7 +223,8 @@ rule: this.name, type: 'passive_alert', setting: this.value, - patient_id: '' + patient_id: , + csrf_token_form: }); }); @@ -245,7 +234,8 @@ rule: this.name, type: 'active_alert', setting: this.value, - patient_id: '' + patient_id: , + csrf_token_form: }); }); @@ -255,7 +245,8 @@ plan: this.name, type: 'normal', setting: this.value, - patient_id: '' + patient_id: , + csrf_token_form: }); }); @@ -270,7 +261,7 @@ function refreshme() { e.preventDefault();e.stopPropagation(); dlgopen('', '', 800, 200, '', '', { buttons: [ - {text: '', close: true, style: 'default btn-sm'} + {text: , close: true, style: 'default btn-sm'} ], onClosed: 'refreshme', allowResize: true, diff --git a/interface/patient_file/reminder/patient_reminders.php b/interface/patient_file/reminder/patient_reminders.php index a2d8736042e..3492a2869f4 100644 --- a/interface/patient_file/reminder/patient_reminders.php +++ b/interface/patient_file/reminder/patient_reminders.php @@ -2,13 +2,13 @@ /** * patient reminders gui * - * @package OpenEMR - * @link http://www.open-emr.org - * @author Brady Miller - * @author Ensofttek, LLC - * @copyright Copyright (c) 2011-2017 Brady Miller + * @package OpenEMR + * @link http://www.open-emr.org + * @author Brady Miller + * @author Ensofttek, LLC + * @copyright Copyright (c) 2011-2018 Brady Miller * @copyright Copyright (c) 2011 Ensofttek, LLC - * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 + * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ @@ -70,18 +70,18 @@ function sel_patient() {
- +
-   +   - +
@@ -100,18 +100,18 @@ function sel_patient() { $sortorder = "asc"; } for ($i = 0; $i < count($sort); $i++) { - $sortlink[$i] = "" . + $sortlink[$i] = "" . ""; } for ($i = 0; $i < count($sort); $i++) { if ($sortby == $sort[$i]) { switch ($sortorder) { case "asc": - $sortlink[$i] = "" . + $sortlink[$i] = "" . ""; break; case "desc": - $sortlink[$i] = "" . + $sortlink[$i] = "" . ""; break; } break; @@ -153,13 +153,13 @@ function sel_patient() { } if ($prev >= 0) { - $prevlink = "<<"; + $prevlink = "<<"; } else { $prevlink = "<<"; } if ($next < $total) { - $nextlink = ">>"; + $nextlink = ">>"; } else { $nextlink = ">>"; } @@ -171,8 +171,8 @@ function sel_patient() {
    -
  • -
  • +
  • +
@@ -201,21 +201,21 @@ function sel_patient() { -
+
- + - + + + - +
@@ -226,17 +226,17 @@ function sel_patient() {
- - - - - - - - - - - + + + + + + + + + + + - + - - - - - - - - + + + + + + + + @@ -283,12 +283,12 @@ function sel_patient() {
'1','list_id'=>'rule_action_category'), $myrow['category']) . " : " . generate_display_field(array('data_type'=>'1','list_id'=>'rule_action'), $myrow['item']); ?> '1','list_id'=>'rule_reminder_due_opt'), $myrow['due_status']); ?>
- - + + - - + + @@ -308,18 +308,18 @@ function sel_patient() { $select = "default"; } } ?> - + + + @@ -346,7 +346,8 @@ function sel_patient() { rule: this.name, type: 'patient_reminder', setting: this.value, - patient_id: '' + patient_id: , + csrf_token_form: }); }); @@ -361,6 +362,7 @@ function ReminderBatch(processType) { top.restoreSession(); $.get("../../../library/ajax/collect_new_report_id.php", + { csrf_token_form: }, function(data){ // Set the report id in page form $("#form_new_report_id").attr("value",data); @@ -372,7 +374,8 @@ function(data){ top.restoreSession(); $.post("../../../library/ajax/execute_pat_reminder.php", {process_type: processType, - execute_report_id: $("#form_new_report_id").val() + execute_report_id: $("#form_new_report_id").val(), + csrf_token_form: }); }); @@ -384,11 +387,14 @@ function collectStatus(report_id) { top.restoreSession(); // Do not send the skip_timeout_reset parameter, so don't close window before report is done. $.post("../../../library/ajax/status_report.php", - {status_report_id: report_id}, + { + status_report_id: report_id, + csrf_token_form: + }, function(data){ if (data == "PENDING") { // Place the pending string in the DOM - $('#status_span').replaceWith(""); + $('#status_span').replaceWith("" + + ""); } else if (data == "COMPLETE") { // Go into the results page diff --git a/interface/patient_file/report/custom_report.php b/interface/patient_file/report/custom_report.php index 2bb000606b0..65ec5b5e95a 100644 --- a/interface/patient_file/report/custom_report.php +++ b/interface/patient_file/report/custom_report.php @@ -119,10 +119,10 @@ function postToGet($arin) foreach ($arin as $key => $val) { if (is_array($val)) { foreach ($val as $k => $v) { - $getstring .= urlencode($key . "[]") . "=" . urlencode($v) . "&"; + $getstring .= attr_url($key . "[]") . "=" . attr_url($v) . "&"; } } else { - $getstring .= urlencode($key) . "=" . urlencode($val) . "&"; + $getstring .= attr_url($key) . "=" . attr_url($val) . "&"; } } @@ -206,7 +206,7 @@ function postToGet($arin) /******************************************************************/ // Setup Headers and Footers for mPDF only Download // in HTML view it's just one line at the top of page 1 - echo ' ' . xlt("PATIENT") . ':' . text($titleres['lname']) . ', ' . text($titleres['fname']) . ' - ' . $titleres['DOB_TS'] . ' '; + echo ' ' . xlt("PATIENT") . ':' . text($titleres['lname']) . ', ' . text($titleres['fname']) . ' - ' . text($titleres['DOB_TS']) . ' '; echo '' . xlt('Generated on') . ' ' . text(oeFormatShortDate()) . ' - ' . text($facility['name']) . ' ' . text($facility['phone']) . ''; // Use logo if it exists as 'practice_logo.gif' in the site dir @@ -226,13 +226,13 @@ function postToGet($arin) echo "
"; } ?> -

-
-,
-
+

+
+,
+
-
-: +
+:
";?> - - + +

- [] + []