Bring in Fee Sheet improvements from recent IPPF work.
[openemr.git] / interface / forms / fee_sheet / review / initialize_review.php
blobfe749623ac627aa0b17689bd399d978e4616bab2
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 var ippf_specific = <?php echo $GLOBALS['ippf_specific'] ? 'true' : 'false'; ?>;
35 </script>
36 <script type="text/javascript" src="<?php echo $web_root;?>/library/js/jquery-1.9.1.min.js"></script>
37 <script type="text/javascript" src="<?php echo $GLOBALS['assets_static_relative']; ?>/knockout-2-2-1/build/output/knockout-latest.js"></script>
38 <script>
39 function fee_sheet_option(code,code_type,description,fee)
41 this.code=code;
42 this.code_type=code_type;
43 this.description=description;
44 this.fee=fee;
45 return this;
47 </script>
48 <!-- rev= in next line is to force a reload if the script is a prior version. -->
49 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/initialize_review.js?rev=1"></script>
50 <!-- Increment "v=" in the next line if you change fee_sheet_core.js. This makes sure the browser won't use the old cached version. -->
51 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/js/fee_sheet_core.js?v=1"></script>
52 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/fee_sheet_review_view_model.js"></script>
53 <script type="text/javascript" src="<?php echo $web_root;?>/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js"></script>
55 <?php
56 // knockoutjs template files
57 include_once("views/review.php");
58 include_once("views/procedure_select.php");
59 include_once("views/justify_display.php");