Skip to content

Commit

Permalink
fix: billing manager To Encounter button to load proper person (opene…
Browse files Browse the repository at this point in the history
…mr#7420)

* fix: fix billing manager To Encounter button to load proper person

* better to edit the person so it loads the dashboard tab if missing

* change button name
  • Loading branch information
stephenwaite authored May 21, 2024
1 parent b11a0b6 commit 1daecba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interface/billing/billing_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,11 @@ 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);
parent.left_nav.setPatient(pname, pid, pubpid, '', dobstr);
parent.left_nav.setEncounter(datestr, enc, 'enc');
parent.left_nav.loadFrame('enc2', 'enc', encurl);
parent.left_nav.loadFrame('dem1', 'pat', paturl);
}

// Process a click to go to an patient.
Expand Down Expand Up @@ -1081,7 +1083,7 @@ function criteriaSelectHasValue(select) {

// Changed "To xxx" buttons to allow room for encounter date display 2/17/09 JCH
$lhtml .= "<a class='btn btn-sm btn-primary' role='button' " . "href=\"javascript:window.topatient(" . attr_js($iter['enc_pid']) . "," . attr_js($name['pubpid']) . "," . attr_js($ptname) . "," . attr_js($iter['enc_encounter']) . "," . attr_js(oeFormatShortDate($raw_encounter_date)) . "," . attr_js(" " . xl('DOB') . ": " . oeFormatShortDate($name['DOB_YMD']) . " " . xl('Age') . ": " . getPatientAge($name['DOB_YMD'])) . ");
top.window.parent.left_nav.setPatientEncounter(EncounterIdArray[" . attr($iter['enc_pid']) . "],EncounterDateArray[" . attr($iter['enc_pid']) . "], CalendarCategoryArray[" . attr($iter['enc_pid']) . "])\">" . xlt('Patient') . "</a>";
top.window.parent.left_nav.setPatientEncounter(EncounterIdArray[" . attr($iter['enc_pid']) . "],EncounterDateArray[" . attr($iter['enc_pid']) . "], CalendarCategoryArray[" . attr($iter['enc_pid']) . "])\">" . xlt('Insurance') . "</a>";
$is_edited = $iter['mboid'] ? 'btn-success' : 'btn-secondary';
$title = $iter['mboid'] ? xlt("This claim has HCFA 1500 miscellaneous billing options") : xlt("Click to add HCFA 1500 miscellaneous billing options");
$lhtml .= "<a class='btn btn-sm $is_edited' role='button' title='" . attr($title) . "' onclick='popMBO(" . attr_js($iter['enc_pid']) . "," . attr_js($iter['enc_encounter']) . "," . attr_js($iter['mboid']) . "); return false;'>" . xlt('MBO ') . "</a>";
Expand Down

0 comments on commit 1daecba

Please sign in to comment.