4 * Basic PHP setup for the fee sheet review features
7 * @link http://www.open-emr.org
8 * @author Kevin Yeh <kevin.y@integralemr.com>
9 * @author Brady Miller <brady.g.miller@gmail.com>
10 * @copyright Copyright (c) 2013 Kevin Yeh <kevin.y@integralemr.com> and OEMR <www.oemr.org>
11 * @copyright Copyright (c) 2019 Brady Miller <brady.g.miller@gmail.com>
12 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
15 use OpenEMR\Common\Csrf\CsrfUtils
;
18 require_once("code_check.php");
21 var webroot
= <?php
echo js_escape($web_root); ?
>;
22 var pid
= <?php
echo js_escape($pid); ?
>;
23 var enc
= <?php
echo js_escape($encounter); ?
>;
24 var review_tag
= <?php
echo xlj('Review'); ?
>;
25 var justify_click_title
= <?php
echo xlj('Click to choose diagnoses to justify.'); ?
>;
26 var fee_sheet_options
= [];
27 // This is a list of diagnosis code types to present for as options in the justify dialog,
28 // for now, only "internal codes" included.
29 var diag_code_types
= <?php
echo diag_code_types('json');?
>;
30 var ippf_specific
= <?php
echo $GLOBALS['ippf_specific'] ?
'true' : 'false'; ?
>;
31 var csrf_token_js
= <?php
echo js_escape(CsrfUtils
::collectCsrfToken()); ?
>;
34 function fee_sheet_option(code
,code_type
,description
,fee
)
37 this
.code_type
=code_type
;
38 this
.description
=description
;
43 <script src
="<?php echo $web_root;?>/interface/forms/fee_sheet/review/initialize_review.js?v=<?php echo $GLOBALS['v_js_includes']; ?>"></script
>
44 <script src
="<?php echo $web_root;?>/interface/forms/fee_sheet/review/js/fee_sheet_core.js?v=<?php echo $GLOBALS['v_js_includes']; ?>"></script
>
45 <script src
="<?php echo $web_root;?>/interface/forms/fee_sheet/review/fee_sheet_review_view_model.js?v=<?php echo $GLOBALS['v_js_includes']; ?>"></script
>
46 <script src
="<?php echo $web_root;?>/interface/forms/fee_sheet/review/fee_sheet_justify_view_model.js?v=<?php echo $GLOBALS['v_js_includes']; ?>"></script
>
49 // knockoutjs template files
50 include_once("views/review.php");
51 include_once("views/procedure_select.php");
52 include_once("views/justify_display.php");