forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openemr#2225 from sjpadgett/v5_0_1_7
reference PR openemr#1612 statement reflects service and billing locations
- Loading branch information
Showing
4 changed files
with
276 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ | |
*/ | ||
|
||
|
||
// Updated by Growlingflea Software. now generates correct service and billing facility on statement. | ||
// any questions contact Daniel Pflieger at [email protected] | ||
|
||
require_once("../globals.php"); | ||
require_once("$srcdir/patient.inc"); | ||
require_once("$srcdir/invoice_summary.inc.php"); | ||
|
@@ -363,7 +366,7 @@ function upload_file_to_client_pdf($file_to_send, $aPatFirstName = '', $aPatID = | |
|
||
$res = sqlStatement("SELECT " . | ||
"f.id, f.date, f.pid, f.encounter, f.stmt_count, f.last_stmt_date, f.last_level_closed, f.last_level_billed, f.billing_note as enc_billing_note, " . | ||
"p.fname, p.mname, p.lname, p.street, p.city, p.state, p.postal_code, p.billing_note as pat_billing_note " . | ||
"p.fname, p.mname, p.lname, p.street, p.city, p.state, p.postal_code, p.billing_note as pat_billing_note, f.provider_id " . | ||
"FROM form_encounter AS f, patient_data AS p " . | ||
"WHERE $where " . | ||
"p.pid = f.pid " . | ||
|
@@ -443,7 +446,7 @@ function upload_file_to_client_pdf($file_to_send, $aPatFirstName = '', $aPatID = | |
if (!empty($stmt)) { | ||
++$stmt_count; | ||
} | ||
|
||
$stmt['fid'] = $row['id']; | ||
$stmt['cid'] = $row['pid']; | ||
$stmt['pid'] = $row['pid']; | ||
$stmt['dun_count'] = $row['stmt_count']; | ||
|
@@ -453,6 +456,7 @@ function upload_file_to_client_pdf($file_to_send, $aPatFirstName = '', $aPatID = | |
$stmt['level_closed'] = $row['last_level_closed']; | ||
$stmt['patient'] = $row['fname'] . ' ' . $row['lname']; | ||
$stmt['encounter'] = $row['encounter']; | ||
$stmt['provider_id'] = $row['provider_id']; | ||
#If you use the field in demographics layout called | ||
#guardiansname this will allow you to send statements to the parent | ||
#of a child or a guardian etc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.