fix: Update patient_tracker.php (#6595)
[openemr.git] / library / ajax / facility_ajax_jav.inc.php
blob57e431b312aaa198d4f6544443c7d528ae6b3cae
1 <?php
3 /**
4 * While creating new encounter this code is used to change the "Billing Facility:".
5 * This happens on change of the "Facility:" field.
7 * @package OpenEMR
8 * @link https://www.open-emr.org
9 * @author Eldho Chacko <eldho@zhservices.com>
10 * @author Jacob T.Paul <jacob@zhservices.com>
11 * @author Brady Miller <brady.g.miller@gmail.com>
12 * @copyright Copyright (c) 2011 Z&H Consultancy Services Private Limited <sam@zhservices.com>
13 * @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com>
14 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
17 use OpenEMR\Common\Csrf\CsrfUtils;
20 <script>
21 function ajax_bill_loc(pid,date,facility){
22 top.restoreSession();
23 $.ajax({
24 type: "POST",
25 url: "../../../library/ajax/facility_ajax_code.php",
26 dataType: "html",
27 data: {
28 pid: pid,
29 date: date,
30 facility: facility,
31 csrf_token_form: <?php echo js_escape(CsrfUtils::collectCsrfToken()); ?>
33 success: function(thedata){//alert(thedata)
34 $("#ajaxdiv").html(thedata);
36 error:function(){
38 });
39 return;
42 </script>