Skip to content

Commit

Permalink
Billing Manager and Some Module fixes (openemr#7747)
Browse files Browse the repository at this point in the history
* Billing and Some Module fixes
fix billing managers toencounter and topatient.
check and set if passed in pid not current for encounter history

* replace setpid

* fix for ringcentral but as long as a vendor sms is enabled in setup this should have worked.
add log for error
  • Loading branch information
sjpadgett authored Oct 2, 2024
1 parent d4ee0e8 commit 74c9a1c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions interface/billing/billing_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ function toencounter(pid, pubpid, pname, enc, datestr, dobstr) {
top.restoreSession();
encurl = 'patient_file/encounter/encounter_top.php?set_encounter=' + encodeURIComponent(enc) +
'&pid=' + encodeURIComponent(pid);
paturl = 'patient_file/summary/demographics_full.php?pid=' + encodeURIComponent(pid);
paturl = 'patient_file/summary/demographics.php?pid=' + encodeURIComponent(pid);
parent.clearPatient();
parent.left_nav.setPatient(pname, pid, pubpid, '', dobstr);
parent.left_nav.setEncounter(datestr, enc, 'enc');
parent.left_nav.loadFrame('enc2', 'enc', encurl);
Expand All @@ -359,9 +360,9 @@ function topatient(pid, pubpid, pname, enc, datestr, dobstr) {
top.restoreSession();
paturl = 'patient_file/summary/insurance_edit.php?pid=' + encodeURIComponent(pid);
parent.left_nav.setPatient(pname, pid, pubpid, '', dobstr);
parent.left_nav.loadFrame('ens1', 'enc',
'patient_file/history/encounters.php?pid=' + encodeURIComponent(pid));
parent.left_nav.loadFrame('ens1', 'enc', 'patient_file/history/encounters.php?pid=' + encodeURIComponent(pid));
parent.left_nav.loadFrame('dem1', 'pat', paturl);
parent.activateTabByName('pat', true);
}

function popMBO(pid, enc, mboid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
$sessionAllowWrite = true;
require_once(__DIR__ . "/../../../../globals.php");
require_once("$srcdir/appointments.inc.php");
require_once __DIR__ . "/../vendor/autoload.php";

// Check for help argument
if ($argc > 1 && (in_array('--help', $argv) || in_array('-h', $argv))) {
Expand Down Expand Up @@ -184,6 +185,7 @@
);
if (stripos($error, 'error') !== false) {
$strMsg .= " | " . xlt("Error:") . "<strong> " . text($error) . "</strong> \n";
error_log($strMsg); // text
echo(nl2br($strMsg));
continue;
} else {
Expand Down
4 changes: 4 additions & 0 deletions interface/patient_file/history/encounters.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@
use OpenEMR\Billing\BillingUtilities;
use OpenEMR\Billing\InvoiceSummary;
use OpenEMR\Common\Csrf\CsrfUtils;
use OpenEMR\Common\Session\PatientSessionUtil;
use OpenEMR\Core\Header;

$is_group = ($attendant_type == 'gid') ? true : false;

if (isset($_GET['pid']) && $_GET['pid'] != $_SESSION['pid']) {
PatientSessionUtil::setPid($_GET['pid']);
}
// "issue" parameter exists if we are being invoked by clicking an issue title
// in the left_nav menu. Currently that is just for athletic teams. In this
// case we only display encounters that are linked to the specified issue.
Expand Down

0 comments on commit 74c9a1c

Please sign in to comment.