forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sl_eob_patient_note.php
79 lines (67 loc) · 2.41 KB
/
sl_eob_patient_note.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* This allos entry and editing of a "billing note" for the patient.
*
* Copyright (C) 2005 Rod Roark <[email protected]>
*
* LICENSE: This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http:https://opensource.org/licenses/gpl-license.php>;.
*
* @package OpenEMR
* @author Rod Roark <[email protected]>
* @author Roberto Vasquez <[email protected]>
* @link http:https://www.open-emr.org
*/
include_once("../globals.php");
include_once("../../library/patient.inc");
include_once("../../library/forms.inc");
$info_msg = "";
?>
<html>
<head>
<?php html_header_show();?>
<link rel=stylesheet href="<?php echo $css_header;?>" type="text/css">
<title><?php xl('EOB Posting - Patient Note','e')?></title>
</head>
<body>
<?php
$patient_id = $_GET['patient_id'];
if (! $patient_id) die(xl("You cannot access this page directly."));
if ($_POST['form_save']) {
$thevalue = trim($_POST['form_note']);
sqlStatement("UPDATE patient_data SET " .
"billing_note = ? " .
"WHERE pid = ? ", array($thevalue, $patient_id));
echo "<script language='JavaScript'>\n";
if ($info_msg) echo " alert('$info_msg');\n";
echo " window.close();\n";
echo "</script></body></html>\n";
exit();
}
$row = sqlQuery("select fname, lname, billing_note " .
"from patient_data where pid = '$patient_id' limit 1");
?>
<center>
<h2><?php echo xl('Billing Note for '). $row['fname'] . " " . $row['lname'] ?></h2>
<p> </p>
<form method='post' action='sl_eob_patient_note.php?patient_id=<?php echo $patient_id ?>'>
<p>
<input type='text' name='form_note' size='60' maxlength='255'
value='<?php echo addslashes($row['billing_note']) ?>' />
</p>
<p> </p>
<input type='submit' name='form_save' value='<?php xl("Save","e")?>'>
<input type='button' value='<?php xl("Cancel","e")?>' onclick='window.close()'>
</form>
</center>
</body>
</html>