Fee sheet enhancements
[openemr.git] / interface / forms / fee_sheet / review / fee_sheet_options_ajax.php
blob52d862976b1720a502206149e2cbce70f0499c78
1 <?php
2 /**
3 * Controller for getting information about fee sheet options
4 *
5 * Copyright (C) 2013 Kevin Yeh <kevin.y@integralemr.com> and OEMR <www.oemr.org>
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 3
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>;.
18 * @package OpenEMR
19 * @author Kevin Yeh <kevin.y@integralemr.com>
20 * @link http://www.open-emr.org
22 $fake_register_globals=false;
23 $sanitize_all_escapes=true;
25 require_once("../../../globals.php");
26 require_once("fee_sheet_options_queries.php");
27 include_once("$srcdir/jsonwrapper/jsonwrapper.php");
28 if(!acl_check('acct', 'bill'))
30 header("HTTP/1.0 403 Forbidden");
31 echo "Not authorized for billing";
32 return false;
34 if (isset($_REQUEST['pricelevel']))
36 $pricelevel=$_REQUEST['pricelevel'];
38 else
40 $pricelevel='standard';
43 $fso=load_fee_sheet_options($pricelevel);
44 $retval=array();
45 $retval['fee_sheet_options']=$fso;
46 $retval['pricelevel']=$pricelevel;
47 echo json_encode($retval);