4 * While creating new encounter this code is used to change the "Billing Facility:".
5 * This happens on change of the "Facility:" field.
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
;
21 function ajax_bill_loc(pid
,date
,facility
){
25 url
: "../../../library/ajax/facility_ajax_code.php",
31 csrf_token_form
: <?php
echo js_escape(CsrfUtils
::collectCsrfToken()); ?
>
33 success
: function(thedata
){//alert(thedata)
34 $
("#ajaxdiv").html(thedata
);