3 * This allos entry and editing of a "billing note" for the patient.
5 * Copyright (C) 2005 Rod Roark <rod@sunsetsystems.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
19 * @author Rod Roark <rod@sunsetsystems.com>
20 * @author Roberto Vasquez <robertogagliotta@gmail.com>
21 * @link http://www.open-emr.org
24 include_once("../globals.php");
25 include_once("../../library/patient.inc");
26 include_once("../../library/forms.inc");
32 <?php
html_header_show();?
>
33 <link rel
=stylesheet href
="<?php echo $css_header;?>" type
="text/css">
34 <title
><?php
xl('EOB Posting - Patient Note','e')?
></title
>
38 $patient_id = $_GET['patient_id'];
39 if (! $patient_id) die(xl("You cannot access this page directly."));
41 if ($_POST['form_save']) {
42 $thevalue = trim($_POST['form_note']);
44 sqlStatement("UPDATE patient_data SET " .
46 "WHERE pid = ? ", array($thevalue, $patient_id));
48 echo "<script language='JavaScript'>\n";
49 if ($info_msg) echo " alert('$info_msg');\n";
50 echo " window.close();\n";
51 echo "</script></body></html>\n";
55 $row = sqlQuery("select fname, lname, billing_note " .
56 "from patient_data where pid = '$patient_id' limit 1");
60 <h2
><?php
echo xl('Billing Note for '). $row['fname'] . " " . $row['lname'] ?
></h2
>
63 <form method
='post' action
='sl_eob_patient_note.php?patient_id=<?php echo $patient_id ?>'>
66 <input type
='text' name
='form_note' size
='60' maxlength
='255'
67 value
='<?php echo addslashes($row['billing_note
']) ?>' />
71 <input type
='submit' name
='form_save' value
='<?php xl("Save","e")?>'>
73 <input type
='button' value
='<?php xl("Cancel","e")?>' onclick
='window.close()'>