3 * Basic PHP setup for the fee sheet review features
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>;.
19 * @author Kevin Yeh <kevin.y@integralemr.com>
20 * @link http://www.open-emr.org
24 require_once("code_check.php");
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'; ?
>;
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
>
39 function fee_sheet_option(code
,code_type
,description
,fee
)
42 this
.code_type
=code_type
;
43 this
.description
=description
;
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>
56 // knockoutjs template files
57 include_once("views/review.php");
58 include_once("views/procedure_select.php");
59 include_once("views/justify_display.php");