|
@@ -27,11 +27,11 @@
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
</style>
|
|
|
-<div id="rm-action-report" class="p-3 mcp-theme-1">
|
|
|
+<div id="problems-report" class="p-3 mcp-theme-1">
|
|
|
<div class="card">
|
|
|
|
|
|
<div class="card-header px-2 py-1 d-flex align-items-center">
|
|
|
- <strong class="mr-4">
|
|
|
+ <strong class="mr-4 py-1">
|
|
|
<i class="fas fa-user"></i>
|
|
|
Problems Report
|
|
|
</strong>
|
|
@@ -39,21 +39,101 @@
|
|
|
<div class="card-body p-0 border-0 table-responsive">
|
|
|
<div class="m-2">
|
|
|
<form method="GET" action="{{ route('practice-management.problems-report') }}">
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
- <div class="my-0 mr-2">
|
|
|
- <!--<label class="font-weight-normal mb-1">DOS From</label>
|
|
|
- <input name="f_start" type="date" class="form-control form-control-sm" value="{{request()->input('f_start')}}">
|
|
|
+
|
|
|
+ <div class="d-flex align-items-start mt-2">
|
|
|
+
|
|
|
+ <div class="width-140px mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_client') ? 'font-weight-bold text-info' : 'text-secondary'}}">Patient</label>
|
|
|
+ <input type="hidden" name="f_client" value="{{request()->input('f_client')}}">
|
|
|
+ <input type="text"
|
|
|
+ name="f_client_name"
|
|
|
+ value="{{request()->input('f_client_name')}}"
|
|
|
+ target-key="uid"
|
|
|
+ target-field="f_client"
|
|
|
+ autocomplete="off"
|
|
|
+ class="form-control form-control-sm min-width-unset"
|
|
|
+ stag-suggest
|
|
|
+ stag-suggest-left
|
|
|
+ stag-suggest-ep="/client-suggest"
|
|
|
+ placeholder="Patient">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="width-140px mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_mcp') ? 'font-weight-bold text-info' : 'text-secondary'}}">Pro</label>
|
|
|
+ <select name="f_mcp"
|
|
|
+ class="mr-2 form-control form-control-sm min-width-unset pl-0"
|
|
|
+ provider-search
|
|
|
+ data-pro-uid="{{request()->input('f_mcp')}}">
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="width-140px mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_problem') ? 'font-weight-bold text-info' : 'text-secondary'}}">Problem</label>
|
|
|
+ <input type="text" name="f_problem" value="{{request()->input('f_problem')}}" class="form-control form-control-sm min-width-unset">
|
|
|
</div>
|
|
|
- <div class="form-group my-0 mr-2">
|
|
|
- <label class="font-weight-normal mb-1">DOS To</label>
|
|
|
- <input name="f_end" type="date" class="form-control form-control-sm" value="{{request()->input('f_end')}}">-->
|
|
|
- TODO
|
|
|
+
|
|
|
+ <div class="width-100px mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_icd') ? 'font-weight-bold text-info' : 'text-secondary'}}">ICD</label>
|
|
|
+ <input type="text" name="f_icd" value="{{request()->input('f_icd')}}" class="form-control form-control-sm min-width-unset">
|
|
|
</div>
|
|
|
- <div class="form-group m-0">
|
|
|
- <label class="font-weight-normal mb-1"> </label>
|
|
|
- <div class=" d-flex">
|
|
|
- <button type="button" onclick="return fastLoad('{{ route('practice-management.problems-report') }}?' + $(this).closest('form').serialize())" class="btn btn-primary btn-sm mr-2"><i class="fas fa-filter"></i> Filter</button>
|
|
|
- <a href="#" onclick="return fastLoad('{{ route('practice-management.problems-report') }}')" class="btn btn-link btn-sm text-danger">Clear Filters</a>
|
|
|
+
|
|
|
+ <div class="mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_lr_date') ? 'font-weight-bold text-info' : 'text-secondary'}}">Last Review Date</label>
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <select name="f_lr_date_op"
|
|
|
+ class="mr-1 form-control form-control-sm min-width-unset width-40px pl-0">
|
|
|
+ <option {{request()->input('f_lr_date_op') === '=' ? 'selected' : ''}} value="=">=</option>
|
|
|
+ <option {{request()->input('f_lr_date_op') === '>' ? 'selected' : ''}} value=">">></option>
|
|
|
+ <option {{request()->input('f_lr_date_op') === '<' ? 'selected' : ''}} value="<"><</option>
|
|
|
+ <option {{request()->input('f_lr_date_op') === '>=' ? 'selected' : ''}} value=">=">≥</option>
|
|
|
+ <option {{request()->input('f_lr_date_op') === '<=' ? 'selected' : ''}} value="<=">≤</option>
|
|
|
+ </select>
|
|
|
+ <input type="date" name="f_lr_date"
|
|
|
+ value="{{request()->input('f_lr_date')}}"
|
|
|
+ class="form-control form-control-sm min-width-unset">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="width-140px mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_lr_by') ? 'font-weight-bold text-info' : 'text-secondary'}}">Last Review By</label>
|
|
|
+ <select name="f_lr_by"
|
|
|
+ class="mr-2 form-control form-control-sm min-width-unset pl-0"
|
|
|
+ provider-search
|
|
|
+ data-pro-uid="{{request()->input('f_lr_by')}}">
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_lp_date') ? 'font-weight-bold text-info' : 'text-secondary'}}">Last Plan Date</label>
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <select name="f_lp_date_op"
|
|
|
+ class="mr-1 form-control form-control-sm min-width-unset width-40px pl-0">
|
|
|
+ <option {{request()->input('f_lp_date_op') === '=' ? 'selected' : ''}} value="=">=</option>
|
|
|
+ <option {{request()->input('f_lp_date_op') === '>' ? 'selected' : ''}} value=">">></option>
|
|
|
+ <option {{request()->input('f_lp_date_op') === '<' ? 'selected' : ''}} value="<"><</option>
|
|
|
+ <option {{request()->input('f_lp_date_op') === '>=' ? 'selected' : ''}} value=">=">≥</option>
|
|
|
+ <option {{request()->input('f_lp_date_op') === '<=' ? 'selected' : ''}} value="<=">≤</option>
|
|
|
+ </select>
|
|
|
+ <input type="date" name="f_lp_date"
|
|
|
+ value="{{request()->input('f_lp_date')}}"
|
|
|
+ class="form-control form-control-sm min-width-unset">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="width-140px mr-2">
|
|
|
+ <label class="mb-0 text-sm {{request()->input('f_lp_by') ? 'font-weight-bold text-info' : 'text-secondary'}}">Last Plan By</label>
|
|
|
+ <select name="f_lp_by"
|
|
|
+ class="mr-2 form-control form-control-sm min-width-unset pl-0"
|
|
|
+ provider-search
|
|
|
+ data-pro-uid="{{request()->input('f_lp_by')}}">
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <label class="mb-0 text-sm text-secondary"> </label>
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <button class="btn-apply btn btn-sm btn-primary mr-2"><i class="fa fa-check"></i></button>
|
|
|
+ <button class="btn-reset btn btn-sm btn-default bg-white text-secondary border"><i class="fa fa-times"></i></button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -74,7 +154,7 @@
|
|
|
<tr>
|
|
|
<th>@include('app.practice-management._sort_header_multi', ['route' => route("practice-management.problems-report"), 'label' => 'Patient', 'key' => 'client_name'])</th>
|
|
|
<th>@include('app.practice-management._sort_header_multi', ['route' => route("practice-management.problems-report"), 'label' => 'DOB', 'key' => 'dob'])</th>
|
|
|
- <th>@include('app.practice-management._sort_header_multi', ['route' => route("practice-management.problems-report"), 'label' => 'Provider', 'key' => 'mcp_name'])</th>
|
|
|
+ <th>@include('app.practice-management._sort_header_multi', ['route' => route("practice-management.problems-report"), 'label' => 'MCP', 'key' => 'mcp_name'])</th>
|
|
|
<th>@include('app.practice-management._sort_header_multi', ['route' => route("practice-management.problems-report"), 'label' => 'Problem', 'key' => 'problem'])</th>
|
|
|
<th class="text-nowrap">@include('app.practice-management._sort_header_multi', ['route' => route("practice-management.problems-report"), 'label' => 'ICD', 'key' => 'icd'])</th>
|
|
|
<th class="col-divider"></th>
|
|
@@ -166,4 +246,35 @@
|
|
|
|
|
|
</div>
|
|
|
|
|
|
+<script>
|
|
|
+ (function() {
|
|
|
+ function init() {
|
|
|
+
|
|
|
+ let parent = $('#problems-report');
|
|
|
+
|
|
|
+ parent.find('input[stag-suggest][target-key][target-field]')
|
|
|
+ .off('stag-suggest-selected')
|
|
|
+ .on('stag-suggest-selected', (_e, _input, _data) => {
|
|
|
+ _input = $(_input);
|
|
|
+ _input.closest('form').find('input[name="' + _input.attr('target-field') + '"]').val(_data[_input.attr('target-key')]);
|
|
|
+ });
|
|
|
+
|
|
|
+ parent.find('.btn-apply')
|
|
|
+ .off('click.filter')
|
|
|
+ .on('click.filter', function() {
|
|
|
+ fastLoad('{{route('practice-management.problems-report')}}?sort_by={{urlencode(request()->input('sort_by'))}}&' + $(this).closest('form').serialize());
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+
|
|
|
+ parent.find('.btn-reset')
|
|
|
+ .off('click.reset')
|
|
|
+ .on('click.reset', function() {
|
|
|
+ fastLoad('{{route("practice-management.problems-report")}}?sort_by={{urlencode(request()->input('sort_by'))}}');
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ addMCInitializer('problems-report', init, '#problems-report');
|
|
|
+ }).call(window);
|
|
|
+</script>
|
|
|
+
|
|
|
@endsection
|