Fee sheet enhancements
[openemr.git] / interface / forms / fee_sheet / review / initialize_review.php
blob3e81e0aa515b29a51a97be9269870c3e97529bf8
1 <?php
2 /**
3 * Basic PHP setup for the fee sheet review features
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 if(!$isBilled)
24 require_once("code_check.php");
26 <script>
27 var webroot="<?php echo $web_root;?>";
28 var pid=<?php echo $pid;?>;
29 var enc=<?php echo $encounter;?>;
30 var review_tag="<?php echo xls('Review');?>";
31 var justify_click_title="<?php echo xls('Click to choose diagnoses to justify.')?>";
32 var fee_sheet_options=[];
33 var diag_code_types=<?php echo diag_code_types('json');?>; // This is a list of diagnosis code types to present for as options in the justify dialog, for now, only "internal codes" included.
34 </script>
35 <script type="text/javascript" src="<?php echo $web_root;?>/library/js/jquery-1.9.1.min.js"></script>
36 <script type="text/javascript" src="<?php echo $web_root;?>/library/js/knockout/knockout-2.2.1.js"></script>
37 <script>
38 function fee_sheet_option(code,code_type,description,fee)
40 this.code=code;
41 this.code_type=code_type;
42 this.description=description;
43 this.fee=fee;
44 return this;
46 </script>
47 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/initialize_review.js"></script>
48 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/js/fee_sheet_core.js"></script>
49 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/fee_sheet_review_view_model.js"></script>
50 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js"></script>
53 <?php
54 // knockoutjs template files
55 include_once("views/review.php");
56 include_once("views/procedure_select.php");
57 include_once("views/justify_display.php");