4 * knockoutjs template for rendering the interface for justifying procedures
7 * @link http://www.open-emr.org
8 * @author Kevin Yeh <kevin.y@integralemr.com>
9 * @copyright Copyright (c) 2013 Kevin Yeh <kevin.y@integralemr.com> and OEMR <www.oemr.org>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 <script type
="text/html" id
="justify-display">
15 <div data
-bind
="visible: $data.show">
16 <div
class="duplicate_warning" data
-bind
="visible: $data.duplicates().length>0">
17 <div data
-bind
="event:{click: toggle_warning_details}" class="problem_warning" title
="<?php echo xla('Click for more details') ?>"><?php
echo xlt("Warning, patient has ambiguous codes in the problems list!") ?
></div
>
18 <div
class="warning_details" data
-bind
="visible: show_warning_details">
19 <?php
echo xlt("The following problems have the same diagnosis codes. Encounter issues will not be updated. Please use the encounter interface instead.") ?
>
20 <span data
-bind
="foreach: $data.duplicates">
21 <div data
-bind
="text: description() +':'+ code_type() + '|' + code()"></div
>
26 <span data
-bind
="visible: diag_code_types.length>0">
27 <input value
= type
="text" class="form-control" data
-bind
="value: search_query, valueUpdate: 'afterkeydown', event:{focus:search_focus, blur: search_blur, keydown:search_key}, hasfocus: search_has_focus" />
28 <span
class="search_results" data
-bind
="visible: (search_results().length>0) && search_show">
30 <tbody data
-bind
="foreach: $data.search_results">
32 <td
class="search_result_code" data
-bind
="text:description, event:{click: function(data,event){return choose_search_diag(data,event,$parent)}}"></td
>
33 <td data
-bind
="text:code, attr:{title:code_type}"></td
>
38 <select
class="form-control" data
-bind
="value: searchType, options: diag_code_types, optionsText: 'key'"></select
>
41 <table
class="table table-sm">
44 <th
class='sort' data
-bind
="event: {click: sort_justify}" title
="<?php echo xla('Click to sort') ?>">#</th>
45 <th title
="<?php echo xla('Justification Entries') ?>"><?php
echo xlt("J{{Justify Header}}");?
></th
>
46 <th title
="<?php echo xla('Problem')?>"><?php
echo xlt("P{{Justify Header}}");?
></th
>
49 <tbody data
-bind
="foreach: $data.diagnosis_options">
50 <tr data
-bind
="attr:{class: source, encounter_issue: encounter_issue}">
51 <td
class="priority" data
-bind
="text: priority()!=99999 ? priority() : ''"/></td
>
52 <td
class=""><input type
="checkbox" data
-bind
="checked: selected, event:{click: function(data,event){return check_justify(data,event,$parent);}}" /></td
>
53 <td
class="problem_info"><input type
="checkbox" data
-bind
="visible: $data.prob_id()==null && $data.allowed_to_create_problem_from_diagnosis()=='TRUE', checked: create_problem" title
="<?php echo xla('Check to create problem from this diagnosis');?>"/></td
>
54 <td
class="info" data
-bind
="text: code, attr:{title:code_type}"></td
>
56 <span data
-bind
="text: description"></span
>
61 <div
class="btn-group">
62 <input type
="button" class="btn btn-primary" data
-bind
="click: update_justify" value
="<?php echo xlt("Update
");?>"/>
63 <input
class="cancel_dialog btn btn-primary" type
="button" data
-bind
="click: cancel_justify" value
="<?php echo xla("Cancel
");?>"/>