Bug fix to add appt with multi provider feature (note Find Available appt is not...
[openemr.git] / library / ajax / facility_ajax_jav.inc.php
blob06d9c3979ba0505672309c8add87d80506cb1e83
1 <?php
2 //While creating new encounter this code is used to change the "Billing Facility:".
3 //This happens on change of the "Facility:" field.
5 // +-----------------------------------------------------------------------------+
6 // Copyright (C) 2011 Z&H Consultancy Services Private Limited <sam@zhservices.com>
7 //
8 //
9 // This program is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU General Public License
11 // as published by the Free Software Foundation; either version 2
12 // of the License, or (at your option) any later version.
15 // This program is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 // GNU General Public License for more details.
21 // A copy of the GNU General Public License is included along with this program:
22 // openemr/interface/login/GnuGPL.html
23 // For more information write to the Free Software
24 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 // Author: Eldho Chacko <eldho@zhservices.com>
27 // Jacob T.Paul <jacob@zhservices.com>
29 // +------------------------------------------------------------------------------+
31 <script type="text/javascript">
32 function ajax_bill_loc(pid,date,facility){
33 top.restoreSession();
34 $.ajax({
35 type: "POST",
36 url: "../../../library/ajax/facility_ajax_code.php",
37 dataType: "html",
38 data: {
39 pid: pid,
40 date: date,
41 facility: facility
43 success: function(thedata){//alert(thedata)
44 $("#ajaxdiv").html(thedata);
46 error:function(){
48 });
49 return;
52 </script>