3 * knockoutjs template for rendering review of old fee sheets.
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
23 <script type
="text/html" id
="review-display">
24 <link rel
="stylesheet" href
="<?php echo $web_root;?>/interface/forms/fee_sheet/review/views/review.css" type
="text/css">
25 <div data
-bind
="visible: $data.show">
26 <div data
-bind
="visible: encounters().length==0"><?php
echo xlt("No prior encounters."); ?
></div
>
27 <select data
-bind
="options:encounters, optionsText: 'date', value: selectedEncounter, event: {change: choose_encounter}, visible: encounters().length>0"></select
>
28 <div data
-bind
="visible: procedures().length==0"><?php
echo xlt("No procedures in this encounter."); ?
></div
>
29 <table data
-bind
="visible: $data.procedures().length>0">
32 <th colspan
='2' class='first_column'><?php
echo xlt("Procedures");?
></th
>
33 <th
class="price"><?php
echo xlt("Price");?
></th
>
34 <th
class="modifiers"><?php
echo xlt("Modifiers");?
></th
>
35 <th
class="units"><?php
echo xlt("Units");?
></th
>
36 <th
class="justify"><?php
echo xlt("Justify");?
></th
>
39 <tbody data
-bind
="foreach: $data.procedures">
41 <td
><input type
="checkbox" data
-bind
="checked: selected"/></td
>
42 <td data
-bind
="template: {name: 'procedure-select', data: $data}"></td
>
43 <td
><input
class="price" type
="text" data
-bind
="value:fee"/></td
>
44 <td
><input type
="text" data
-bind
="value:modifiers,attr: {size: mod_size}"/></td
>
45 <td
><input
class="units" type
="text" data
-bind
="value:units"/></td
>
46 <td data
-bind
="foreach: justify"><input type
="checkbox" data
-bind
="checked: selected"/><span data
-bind
="text:code"></span
></td
>
51 <div data
-bind
="visible: issues().length==0"><?php
echo xlt("No issues in this encounter."); ?
></div
>
52 <table data
-bind
="visible: $data.issues().length>0">
54 <tr
><th colspan
='3' class='first_column'><?php
echo xlt("Issues");?
></th
></tr
>
56 <tbody data
-bind
="foreach: $data.issues">
58 <td
><input type
="checkbox" data
-bind
="checked: selected"/></td
>
59 <td data
-bind
="text:code"></td
>
60 <td data
-bind
="text: description"></td
>
65 <input type
="button" data
-bind
="click: add_review" value
="<?php echo xla("Add
");?>" />
66 <input
class="cancel_dialog" type
="button" data
-bind
="click: cancel_review" value
="<?php echo xlt("Cancel
");?>" />