|
@@ -1,11 +1,6 @@
|
|
@extends ('layouts/template')
|
|
@extends ('layouts/template')
|
|
|
|
|
|
@section('content')
|
|
@section('content')
|
|
- <style>
|
|
|
|
- #admin-table-rm-matrix_wrapper {
|
|
|
|
- padding-top: 10px;
|
|
|
|
- }
|
|
|
|
- </style>
|
|
|
|
<link href="/c3/c3.min.css" rel="stylesheet">
|
|
<link href="/c3/c3.min.css" rel="stylesheet">
|
|
<script src="/c3/d3.v5.min.js" charset="utf-8"></script>
|
|
<script src="/c3/d3.v5.min.js" charset="utf-8"></script>
|
|
<script src="/c3/c3.min.js"></script>
|
|
<script src="/c3/c3.min.js"></script>
|
|
@@ -37,7 +32,7 @@
|
|
$timestampInSec = floor($iPatient->measurements_bp_json[$i]->ts / 1000);
|
|
$timestampInSec = floor($iPatient->measurements_bp_json[$i]->ts / 1000);
|
|
$iPatient->measurements_bp_json[$i]->date_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'm/d/y');
|
|
$iPatient->measurements_bp_json[$i]->date_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'm/d/y');
|
|
$iPatient->measurements_bp_json[$i]->date_standard = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'Y-m-d');
|
|
$iPatient->measurements_bp_json[$i]->date_standard = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'Y-m-d');
|
|
- $iPatient->measurements_bp_json[$i]->time_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'h:i A') . ' EST';
|
|
|
|
|
|
+ $iPatient->measurements_bp_json[$i]->time_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'h:i A');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(!!$iPatient->measurements_weight_json) {
|
|
if(!!$iPatient->measurements_weight_json) {
|
|
@@ -46,33 +41,96 @@
|
|
$timestampInSec = floor($iPatient->measurements_weight_json[$i]->ts / 1000);
|
|
$timestampInSec = floor($iPatient->measurements_weight_json[$i]->ts / 1000);
|
|
$iPatient->measurements_weight_json[$i]->date_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'm/d/y');
|
|
$iPatient->measurements_weight_json[$i]->date_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'm/d/y');
|
|
$iPatient->measurements_weight_json[$i]->date_standard = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'Y-m-d');
|
|
$iPatient->measurements_weight_json[$i]->date_standard = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'Y-m-d');
|
|
- $iPatient->measurements_weight_json[$i]->time_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'h:i A') . ' EST';
|
|
|
|
|
|
+ $iPatient->measurements_weight_json[$i]->time_display = friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN', '-', 'h:i A');
|
|
$iPatient->measurements_weight_json[$i]->numericValue = round($iPatient->measurements_weight_json[$i]->numericValue, 1);
|
|
$iPatient->measurements_weight_json[$i]->numericValue = round($iPatient->measurements_weight_json[$i]->numericValue, 1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
$iPatient->month_display = friendly_month($iPatient->care_month_start_date);
|
|
$iPatient->month_display = friendly_month($iPatient->care_month_start_date);
|
|
$careMonths[$iPatient->care_month_uid] = $iPatient;
|
|
$careMonths[$iPatient->care_month_uid] = $iPatient;
|
|
}
|
|
}
|
|
|
|
+ $specificDate = request()->input('specificDate');
|
|
?>
|
|
?>
|
|
|
|
|
|
|
|
+ <style>
|
|
|
|
+ table#table-pm-manager-matrix {
|
|
|
|
+ position: relative;
|
|
|
|
+ border-collapse: separate !important;
|
|
|
|
+ border-spacing: 0;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix thead tr th {
|
|
|
|
+ background-color: #f8f9fa;
|
|
|
|
+ z-index: 2;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix thead tr th:not(.v-sep-before) {
|
|
|
|
+ border-left-width: 0 !important;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix thead tr:nth-child(1) th {
|
|
|
|
+ text-align: center;
|
|
|
|
+ position: sticky;
|
|
|
|
+ top: 0;
|
|
|
|
+ z-index: 2;
|
|
|
|
+ height: 28px;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix thead tr:nth-child(2) th {
|
|
|
|
+ text-align: center;
|
|
|
|
+ position: sticky;
|
|
|
|
+ top: 28px;
|
|
|
|
+ z-index: 2;
|
|
|
|
+ height: 28px;
|
|
|
|
+ border-bottom: 1px solid #ddd !important;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix thead th {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix th:nth-child(1) {
|
|
|
|
+ position: sticky;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 3 !important;
|
|
|
|
+ background-color: #f8f9fa;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix th:nth-child(2) {
|
|
|
|
+ position: sticky;
|
|
|
|
+ left: 41px;
|
|
|
|
+ z-index: 3 !important;
|
|
|
|
+ background-color: #f8f9fa;
|
|
|
|
+ border-right: 2px solid #ddd !important;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix tbody tr td:nth-child(1) {
|
|
|
|
+ position: sticky;
|
|
|
|
+ left: 0;
|
|
|
|
+ z-index: 1;
|
|
|
|
+ background-color: #f8f9fa;
|
|
|
|
+ border-right: 1px solid #ddd !important;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix tbody tr td:nth-child(2) {
|
|
|
|
+ position: sticky;
|
|
|
|
+ left: 41px;
|
|
|
|
+ z-index: 1;
|
|
|
|
+ background-color: #f8f9fa;
|
|
|
|
+ border-right: 2px solid #ddd !important;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix tbody tr td {
|
|
|
|
+ border-top-width: 0 !important;
|
|
|
|
+ }
|
|
|
|
+ table#table-pm-manager-matrix tbody tr td:not(.v-sep-before) {
|
|
|
|
+ border-left-width: 0 !important;
|
|
|
|
+ }
|
|
|
|
+ </style>
|
|
|
|
+
|
|
<div class="p-3 mcp-theme-1" id="practice-rpm-manager">
|
|
<div class="p-3 mcp-theme-1" id="practice-rpm-manager">
|
|
|
|
|
|
<div class="card h-100">
|
|
<div class="card h-100">
|
|
|
|
|
|
<div class="card-header px-2 py-2 d-flex align-items-baseline">
|
|
<div class="card-header px-2 py-2 d-flex align-items-baseline">
|
|
- <form class="d-block w-100" action="" method="GET" id="rpm-matrix-filter">
|
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
|
- <span class="font-size-16">RPM Manager - {{$viewingAs}} - {{friendly_month($cmStartDate)}}</span>
|
|
|
|
- </div>
|
|
|
|
- </form>
|
|
|
|
|
|
+ <span class="font-size-16">RPM Manager - {{$viewingAs}} - {{friendly_month($cmStartDate)}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="card-body p-0">
|
|
<div class="card-body p-0">
|
|
<div class="d-flex align-items-baseline p-2 border-bottom">
|
|
<div class="d-flex align-items-baseline p-2 border-bottom">
|
|
<div class="d-inline-flex align-items-center">
|
|
<div class="d-inline-flex align-items-center">
|
|
<form action="">
|
|
<form action="">
|
|
- <div class="mr-3 d-inline-flex align-items-center">
|
|
|
|
- <label class="mb-0 mr-2">Month</label>
|
|
|
|
|
|
+ <div class="mr-2 d-inline-flex align-items-center">
|
|
|
|
+ <label class="mb-0 mr-1">Month</label>
|
|
<select name="m" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
<select name="m" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
<option value="">All</option>
|
|
<option value="">All</option>
|
|
@@ -90,8 +148,8 @@
|
|
<option value="12" {{$month && intval($month) === 12 ? 'selected' : ''}}>Dec</option>
|
|
<option value="12" {{$month && intval($month) === 12 ? 'selected' : ''}}>Dec</option>
|
|
</select>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
- <div class="mr-3 d-inline-flex align-items-center">
|
|
|
|
- <label class="mb-0 mr-2">Year</label>
|
|
|
|
|
|
+ <div class="mr-2 d-inline-flex align-items-center">
|
|
|
|
+ <label class="mb-0 mr-1">Year</label>
|
|
<select name="y" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
<select name="y" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
<option value="">All</option>
|
|
<option value="">All</option>
|
|
@@ -100,21 +158,44 @@
|
|
<option value="2022" {{$year && intval($year) === 2022 ? 'selected' : ''}}>2022</option>
|
|
<option value="2022" {{$year && intval($year) === 2022 ? 'selected' : ''}}>2022</option>
|
|
</select>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if(count($proRoles) > 1)
|
|
|
|
+ <div class="mr-2 d-inline-flex align-items-center">
|
|
|
|
+ <label class="mb-0 mr-1 text-nowrap">View As</label>
|
|
|
|
+ <select name="viewingAs" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
|
|
+ onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
|
|
+ @foreach($proRoles as $proRole)
|
|
|
|
+ <option value="{{$proRole}}" {{$viewingAs === $proRole ? 'selected' : ''}}>{{$proRole}}</option>
|
|
|
|
+ @endforeach
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <input type="hidden" name="viewingAs" value="{{$viewingAs}}">
|
|
|
|
+ @endif
|
|
|
|
+ @if($pro->pro_type === 'ADMIN' && $viewingAs !== 'ADMIN')
|
|
|
|
+ <div class="mr-2 d-inline-flex align-items-center">
|
|
|
|
+ <label class="mb-0 mr-1 text-nowrap">{{$viewingAs}}</label>
|
|
|
|
+ <div class="position-relative">
|
|
|
|
+ <select name="proUid" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
|
|
+ provider-search data-pro-uid="{{request()->input('proUid')}}"
|
|
|
|
+ onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
|
|
+ </select>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
<div class="mr-3 d-inline-flex align-items-center">
|
|
<div class="mr-3 d-inline-flex align-items-center">
|
|
- <label class="mb-0 mr-2 text-nowrap">View As</label>
|
|
|
|
- <select name="viewingAs" class="form-control form-control-sm min-width-unset pl-0 font-weight-bold"
|
|
|
|
- onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
|
|
- @foreach($proRoles as $proRole)
|
|
|
|
- <option value="{{$proRole}}" {{$viewingAs === $proRole ? 'selected' : ''}}>{{$proRole}}</option>
|
|
|
|
- @endforeach
|
|
|
|
- </select>
|
|
|
|
|
|
+ <label class="mb-0 mr-1 text-nowrap">Date</label>
|
|
|
|
+ <input name="specificDate" class="form-control form-control-sm min-width-unset pl-1 font-weight-bold"
|
|
|
|
+ value="{{$specificDate}}"
|
|
|
|
+ type="date" min="{{$cmStartDate}}" max="{{$cmEndDate}}"
|
|
|
|
+ onchange="fastLoad('{{route('practice-management.rpm-manager')}}?' + $(this).closest('form').serialize())">
|
|
</div>
|
|
</div>
|
|
|
|
+ <a href="#" onclick="return fastLoad('{{route('practice-management.rpm-manager')}}')">Clear</a>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@if($paginator->total())
|
|
@if($paginator->total())
|
|
<div class="d-inline-flex align-items-baseline ml-auto mb-0-pagination">
|
|
<div class="d-inline-flex align-items-baseline ml-auto mb-0-pagination">
|
|
- <div class="mr-2"><b>{{$paginator->firstItem()}}</b> to <b>{{$paginator->lastItem()}}</b> (page {{$paginator->currentPage()}}) of <b>{{$paginator->total()}}</b> care months</div>
|
|
|
|
- {!! $paginator->onEachSide(2)->withQueryString()->links() !!}
|
|
|
|
|
|
+ <div class="mr-2"><b>{{$paginator->firstItem()}}</b> to <b>{{$paginator->lastItem()}}</b> (page {{$paginator->currentPage()}}) of <b>{{$paginator->total()}}</b></div>
|
|
|
|
+ {!! $paginator->onEachSide(1)->withQueryString()->links() !!}
|
|
<select class="form-control form-control-sm min-width-unset width-140px px-2 ml-2" onchange="fastLoad('{{ route('practice-management.rpm-manager') }}?{{queryLineExcept(['per_page', 'page'])}}&per_page=' + this.value)">
|
|
<select class="form-control form-control-sm min-width-unset width-140px px-2 ml-2" onchange="fastLoad('{{ route('practice-management.rpm-manager') }}?{{queryLineExcept(['per_page', 'page'])}}&per_page=' + this.value)">
|
|
<option {{$perPage == 25 ? 'selected' : ''}} value="25">25/page</option>
|
|
<option {{$perPage == 25 ? 'selected' : ''}} value="25">25/page</option>
|
|
<option {{$perPage == 50 ? 'selected' : ''}} value="50">50/page</option>
|
|
<option {{$perPage == 50 ? 'selected' : ''}} value="50">50/page</option>
|
|
@@ -124,174 +205,133 @@
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
- <div class="d-flex align-items-stretch m-0 h-100">
|
|
|
|
- <table class="table table-sm table-bordered table-striped table-hover p-0 m-0 min-width-1100px border-0" id="table-rm-matrix">
|
|
|
|
- <thead class="bg-light">
|
|
|
|
- <tr>
|
|
|
|
- <th class="border-top-0 border-bottom-0 border-left-0"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
- @if($viewingAs === 'ADMIN')
|
|
|
|
- <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
|
|
- @endif
|
|
|
|
- <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0 bg-aliceblue text-nowrap" colspan="3"># Meas. Days</th>
|
|
|
|
- <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
- @if($viewingAs !== 'RME')
|
|
|
|
- <th class="border-top-0 border-bottom-0 bg-aliceblue" colspan="2">Entries</th>
|
|
|
|
- @endif
|
|
|
|
|
|
+ <div class="rpm-manager-table-container">
|
|
|
|
+ <table class="table table-sm table-bordered table-striped table-hover p-0 mb-4 min-width-1100px border-0" id="table-pm-manager-matrix">
|
|
|
|
+ <thead class="bg-light">
|
|
|
|
+ <tr>
|
|
|
|
+ <th class="border-top-0 border-bottom-0 border-left-0"></th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
<th class="border-top-0 border-bottom-0"></th>
|
|
<th class="border-top-0 border-bottom-0"></th>
|
|
- @if($viewingAs !== 'RME')
|
|
|
|
- <th class="border-top-0 border-bottom-0 bg-aliceblue" colspan="{{$viewingAs === 'ADMIN' ? 3 : 1}}">Time</th>
|
|
|
|
|
|
+ @endif
|
|
|
|
+ @if($viewingAs === 'ADMIN')
|
|
|
|
+ <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0 rmgr-name-column"></th>
|
|
|
|
+ @endif
|
|
|
|
+ <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0 bg-aliceblue text-nowrap" colspan="3"># Meas. Days</th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0 text-nowrap" colspan="2">
|
|
|
|
+ @if($specificDate)
|
|
|
|
+ Values: <span class="text-info">{{$specificDate}}</span>
|
|
|
|
+ @else
|
|
|
|
+ Latest Value
|
|
@endif
|
|
@endif
|
|
- <th class="border-top-0 border-bottom-0 bg-aliceblue" colspan="{{$viewingAs === 'ADMIN' ? 3 : 1}}">Reimb.</th>
|
|
|
|
- @if($viewingAs === 'ADMIN' && !(date('m') == $month && date('Y') == $year))
|
|
|
|
- <th class="border-top-0 border-bottom-0 bg-aliceblue" colspan="3">Claim</th>
|
|
|
|
- @endif
|
|
|
|
- <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
- <th class="border-top-0 border-bottom-0 border-right-0 w-25"></th>
|
|
|
|
- </tr>
|
|
|
|
- <tr>
|
|
|
|
- <th class="border-bottom-0 border-top border-left-0 text-right">#</th>
|
|
|
|
- <th class="border-bottom-0 border-top">Name</th>
|
|
|
|
- <th class="border-bottom-0 border-top">Age</th>
|
|
|
|
- @if($viewingAs === 'ADMIN')
|
|
|
|
- <th class="border-bottom-0 border-top">MCP</th>
|
|
|
|
- <th class="border-bottom-0 border-top">RMM</th>
|
|
|
|
- <th class="border-bottom-0 border-top">RME</th>
|
|
|
|
- @endif
|
|
|
|
- <th class="border-bottom-0 border-top">DSLV</th>
|
|
|
|
-
|
|
|
|
- <!--# Meas. Days-->
|
|
|
|
- <th class="border-bottom-0 border-top">All</th>
|
|
|
|
- <th class="border-bottom-0 border-top">BP</th>
|
|
|
|
- <th class="border-bottom-0 border-top">WT</th>
|
|
|
|
-
|
|
|
|
- <th class="border-bottom-0 border-top">BP</th>
|
|
|
|
- <th class="border-bottom-0 border-top">WT</th>
|
|
|
|
-
|
|
|
|
- @if($viewingAs !== 'RME')
|
|
|
|
- <th class="border-bottom-0 border-top">Mine</th>
|
|
|
|
- <th class="border-bottom-0 border-top">Others</th>
|
|
|
|
- @endif
|
|
|
|
-
|
|
|
|
- <th class="border-bottom-0 border-top">
|
|
|
|
- @if($viewingAs === 'ADMIN')
|
|
|
|
- Inter.
|
|
|
|
|
|
+ </th>
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
|
|
+ <th class="border-top-0 border-bottom-0 bg-aliceblue text-nowrap" colspan="2">
|
|
|
|
+ @if($specificDate)
|
|
|
|
+ Entries: <span class="text-info">{{$specificDate}}</span>
|
|
@else
|
|
@else
|
|
- MCPI
|
|
|
|
|
|
+ Latest Entry
|
|
@endif
|
|
@endif
|
|
</th>
|
|
</th>
|
|
-
|
|
|
|
- <!--Time-->
|
|
|
|
- @if($viewingAs !== 'RME')
|
|
|
|
- @if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
|
|
|
|
- <th class="border-bottom-0 border-top">MCP</th>
|
|
|
|
- @endif
|
|
|
|
- @if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
|
|
|
|
- <th class="border-bottom-0 border-top">RMM</th>
|
|
|
|
- @endif
|
|
|
|
- @if($viewingAs === 'ADMIN')
|
|
|
|
- <th class="border-bottom-0 border-top">Total</th>
|
|
|
|
- @endif
|
|
|
|
|
|
+ @endif
|
|
|
|
+ <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
|
|
+ <th class="border-top-0 border-bottom-0 bg-aliceblue" colspan="{{$viewingAs === 'ADMIN' ? 3 : 1}}">Time</th>
|
|
|
|
+ @endif
|
|
|
|
+ <th class="border-top-0 border-bottom-0 bg-aliceblue v-sep-before" colspan="{{$viewingAs === 'ADMIN' ? 3 : 1}}">Reimb.</th>
|
|
|
|
+ @if($viewingAs === 'ADMIN' && !(date('m') == $month && date('Y') == $year))
|
|
|
|
+ <th class="border-top-0 border-bottom-0 bg-aliceblue v-sep-before" colspan="3">Claim</th>
|
|
|
|
+ @endif
|
|
|
|
+ <th class="border-top-0 border-bottom-0"></th>
|
|
|
|
+ <th class="border-top-0 border-bottom-0 border-right-0 w-25"></th>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <th class="border-bottom-0 border-top border-left-0 text-right">#</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">Name</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">Age</th>
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
|
|
+ <th class="border-bottom-0 border-top">ICDs</th>
|
|
|
|
+ @endif
|
|
|
|
+ @if($viewingAs === 'ADMIN')
|
|
|
|
+ <th class="border-bottom-0 border-top">MCP</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">RMM</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">RME</th>
|
|
|
|
+ @endif
|
|
|
|
+ <th class="border-bottom-0 border-top">DSLV</th>
|
|
|
|
+
|
|
|
|
+ <!--# Meas. Days-->
|
|
|
|
+ <th class="border-bottom-0 border-top">All</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">BP</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">WT</th>
|
|
|
|
+
|
|
|
|
+ <th class="border-bottom-0 border-top">BP</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">WT</th>
|
|
|
|
+
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
|
|
+ <th class="border-bottom-0 border-top">Mine</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">Others</th>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ <th class="border-bottom-0 border-top">
|
|
|
|
+ @if($viewingAs === 'ADMIN')
|
|
|
|
+ Inter.
|
|
|
|
+ @else
|
|
|
|
+ MCPI
|
|
@endif
|
|
@endif
|
|
|
|
+ </th>
|
|
|
|
|
|
- <!--Reimb.-->
|
|
|
|
|
|
+ <!--Time-->
|
|
|
|
+ @if($viewingAs !== 'RME')
|
|
@if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
|
|
@if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
|
|
<th class="border-bottom-0 border-top">MCP</th>
|
|
<th class="border-bottom-0 border-top">MCP</th>
|
|
@endif
|
|
@endif
|
|
@if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
|
|
@if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
|
|
<th class="border-bottom-0 border-top">RMM</th>
|
|
<th class="border-bottom-0 border-top">RMM</th>
|
|
@endif
|
|
@endif
|
|
- @if($viewingAs === 'ADMIN' || $viewingAs === 'RME')
|
|
|
|
- <th class="border-bottom-0 border-top">RME</th>
|
|
|
|
- @endif
|
|
|
|
-
|
|
|
|
- <!--Claim-->
|
|
|
|
- @if($viewingAs === 'ADMIN' && !(date('m') == $month && date('Y') == $year))
|
|
|
|
- <th class="border-bottom-0 border-top">4</th>
|
|
|
|
- <th class="border-bottom-0 border-top">7</th>
|
|
|
|
- <th class="border-bottom-0 border-top">8</th>
|
|
|
|
|
|
+ @if($viewingAs === 'ADMIN')
|
|
|
|
+ <th class="border-bottom-0 border-top">Total</th>
|
|
@endif
|
|
@endif
|
|
-
|
|
|
|
- <th class="border-bottom-0 border-top">NV</th>
|
|
|
|
- <th class="border-bottom-0 border-top border-right-0"></th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ <!--Reimb.-->
|
|
|
|
+ @if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
|
|
|
|
+ <th class="border-bottom-0 border-top v-sep-before">MCP</th>
|
|
|
|
+ @endif
|
|
|
|
+ @if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
|
|
|
|
+ <th class="border-bottom-0 border-top {{$viewingAs === 'RMM' ? 'v-sep-before' : ''}}">RMM</th>
|
|
|
|
+ @endif
|
|
|
|
+ @if($viewingAs === 'ADMIN' || $viewingAs === 'RME')
|
|
|
|
+ <th class="border-bottom-0 border-top {{$viewingAs === 'RME' ? 'v-sep-before' : ''}}">RME</th>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ <!--Claim-->
|
|
|
|
+ @if($viewingAs === 'ADMIN' && !(date('m') == $month && date('Y') == $year))
|
|
|
|
+ <th class="border-bottom-0 border-top v-sep-before">4</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">7</th>
|
|
|
|
+ <th class="border-bottom-0 border-top">8</th>
|
|
|
|
+ @endif
|
|
|
|
+
|
|
|
|
+ <th class="border-bottom-0 border-top">NV</th>
|
|
|
|
+ <th class="border-bottom-0 border-top border-right-0"></th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ <?php
|
|
|
|
+ $daysRemaining = date('t') - date('j');
|
|
|
|
+ $index = $paginator->firstItem();
|
|
|
|
+ ?>
|
|
|
|
+ @foreach ($patients as $iPatient)
|
|
|
|
+ @include('app.practice-management.rpm-manager.row', compact('iPatient', 'index', 'month', 'year', 'viewingAs', 'daysRemaining', 'specificDate'))
|
|
<?php
|
|
<?php
|
|
- $daysRemaining = date('t') - date('j');
|
|
|
|
- $index = $paginator->firstItem();
|
|
|
|
|
|
+ $index++;
|
|
?>
|
|
?>
|
|
- @foreach ($patients as $iPatient)
|
|
|
|
- @include('app.practice-management.rpm-manager.row', compact('iPatient', 'index', 'month', 'year', 'viewingAs', 'daysRemaining'))
|
|
|
|
- <?php
|
|
|
|
- $index++;
|
|
|
|
- ?>
|
|
|
|
- @endforeach
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="stag-popup tall draggable resizable mcp-theme-1"
|
|
|
|
- update-parent
|
|
|
|
- stag-popup-key="rpm-manager-my-entries-popup">
|
|
|
|
- <div class="stag-popup-content p-0">
|
|
|
|
- <h3 class="stag-popup-title mb-0 mt-3 mx-3 pb-0 border-bottom-0">
|
|
|
|
- <span id="rpm-manager-my-entries-popup-title">xxx</span>
|
|
|
|
- <a href="#" class="ml-auto text-secondary" onclick="return closeStagPopup()">
|
|
|
|
- <i class="fa fa-times-circle"></i>
|
|
|
|
- </a>
|
|
|
|
- </h3>
|
|
|
|
- <div class="stag-popup-content-inner">
|
|
|
|
- <div class="popup-content-container px-3">
|
|
|
|
- <h3 class="m-0 font-size-16" id="rpm-manager-my-entries-caremonth"></h3>
|
|
|
|
- <table class="table table-condensed table-sm table-bordered mt-3 cm-tab" id="rpm-manager-my-entries-matrix">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th class="text-secondary text-sm">Date</th>
|
|
|
|
- <th class="text-secondary text-sm">Minutes</th>
|
|
|
|
- <th class="text-secondary text-sm">Communicated</th>
|
|
|
|
- <th class="text-secondary text-sm">Comments</th>
|
|
|
|
- <th class="text-secondary text-sm"></th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody></tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="stag-popup tall draggable resizable mcp-theme-1"
|
|
|
|
- update-parent
|
|
|
|
- stag-popup-key="rpm-manager-other-entries-popup">
|
|
|
|
- <div class="stag-popup-content p-0">
|
|
|
|
- <h3 class="stag-popup-title mb-0 mt-3 mx-3 pb-0 border-bottom-0">
|
|
|
|
- <span id="rpm-manager-other-entries-popup-title">xxx</span>
|
|
|
|
- <a href="#" class="ml-auto text-secondary" onclick="return closeStagPopup()">
|
|
|
|
- <i class="fa fa-times-circle"></i>
|
|
|
|
- </a>
|
|
|
|
- </h3>
|
|
|
|
- <div class="stag-popup-content-inner">
|
|
|
|
- <div class="popup-content-container px-3">
|
|
|
|
- <h3 class="m-0 font-size-16" id="rpm-manager-other-entries-caremonth"></h3>
|
|
|
|
- <table class="table table-condensed table-sm table-bordered mt-3 cm-tab" id="rpm-manager-other-entries-matrix">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th class="text-secondary text-sm">Pro</th>
|
|
|
|
- <th class="text-secondary text-sm">Date</th>
|
|
|
|
- <th class="text-secondary text-sm">Minutes</th>
|
|
|
|
- <th class="text-secondary text-sm">Communicated</th>
|
|
|
|
- <th class="text-secondary text-sm">Comments</th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody></tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -454,24 +494,6 @@
|
|
);
|
|
);
|
|
return false;
|
|
return false;
|
|
});
|
|
});
|
|
-
|
|
|
|
- parent
|
|
|
|
- .off('click', '.btn-my-entries-popup')
|
|
|
|
- .on('click', '.btn-my-entries-popup', function() {
|
|
|
|
- showStagPopup('rpm-manager-my-entries-popup');
|
|
|
|
- prepareEntriesPopup($(this).attr('data-uid'), 'my');
|
|
|
|
- reInitMoes();
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
- parent
|
|
|
|
- .off('click', '.btn-other-entries-popup')
|
|
|
|
- .on('click', '.btn-other-entries-popup', function() {
|
|
|
|
- showStagPopup('rpm-manager-other-entries-popup');
|
|
|
|
- prepareEntriesPopup($(this).attr('data-uid'), 'other');
|
|
|
|
- reInitMoes();
|
|
|
|
- return false;
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
|
|
|
|
function prepareMeasurementsPopover(_careMonthUid, _type) {
|
|
function prepareMeasurementsPopover(_careMonthUid, _type) {
|
|
@@ -497,42 +519,26 @@
|
|
let tr = $('<tr/>').attr('data-uid', m.uid);
|
|
let tr = $('<tr/>').attr('data-uid', m.uid);
|
|
|
|
|
|
// date, time
|
|
// date, time
|
|
- $('<td/>').addClass('p-1 text-sm').text(m.date_display + ' ' + m.time_display).appendTo(tr);
|
|
|
|
|
|
+ $('<td class="w-25 text-nowrap"/>').addClass('p-1 text-sm').text(m.date_display + ' ' + m.time_display).appendTo(tr);
|
|
|
|
|
|
// value
|
|
// value
|
|
if(_type === 'bp') {
|
|
if(_type === 'bp') {
|
|
- $('<td/>').addClass('p-1 text-sm').text(m.sbpMmHg + '/' + m.dbpMmHg).appendTo(tr);
|
|
|
|
|
|
+ $('<td class="pl-2"/>').addClass('p-1 text-sm').text(m.sbpMmHg + '/' + m.dbpMmHg).appendTo(tr);
|
|
}
|
|
}
|
|
else if(_type === 'weight') {
|
|
else if(_type === 'weight') {
|
|
- $('<td/>').addClass('p-1 text-sm').text(m.numericValue).appendTo(tr);
|
|
|
|
|
|
+ $('<td class="pl-2"/>').addClass('p-1 text-sm').text(m.numericValue).appendTo(tr);
|
|
}
|
|
}
|
|
|
|
|
|
// stamp
|
|
// stamp
|
|
// MCPs and RMMs get stamp UI
|
|
// MCPs and RMMs get stamp UI
|
|
let stamp = '';
|
|
let stamp = '';
|
|
@if($viewingAs === 'MCP')
|
|
@if($viewingAs === 'MCP')
|
|
- if(!m.hasBeenStampedByMcp) {
|
|
|
|
- $('<td/>').addClass('p-1')
|
|
|
|
- .append(
|
|
|
|
- $('<a/>').addClass('text-sm btn-quick-stamp c-pointer text-nowrap').attr('data-uid', m.uid).text('Stamp as normal')
|
|
|
|
- )
|
|
|
|
- .appendTo(tr);
|
|
|
|
- }
|
|
|
|
- else {
|
|
|
|
- $('<td/>').addClass('p-1')
|
|
|
|
- .append(
|
|
|
|
- $('<i/>').addClass('fa fa-check text-sm')
|
|
|
|
- )
|
|
|
|
- .append(
|
|
|
|
- $('<span/>').addClass('text-sm ml-1').text('Stamped')
|
|
|
|
- )
|
|
|
|
- .appendTo(tr);
|
|
|
|
- }
|
|
|
|
|
|
+ {{-- nop --}}
|
|
@elseif($viewingAs === 'RMM')
|
|
@elseif($viewingAs === 'RMM')
|
|
if(!m.hasBeenStampedByRmm) {
|
|
if(!m.hasBeenStampedByRmm) {
|
|
$('<td/>').addClass('p-1')
|
|
$('<td/>').addClass('p-1')
|
|
.append(
|
|
.append(
|
|
- $('<a/>').addClass('text-sm btn-quick-stamp c-pointer text-nowrap').attr('data-uid', m.uid).text('Stamp as normal')
|
|
|
|
|
|
+ $('<a/>').addClass('text-sm btn-quick-stamp c-pointer text-nowrap').attr('data-uid', m.uid).text('Stamp')
|
|
)
|
|
)
|
|
.appendTo(tr);
|
|
.appendTo(tr);
|
|
}
|
|
}
|
|
@@ -610,9 +616,13 @@
|
|
},*/
|
|
},*/
|
|
},
|
|
},
|
|
y: {
|
|
y: {
|
|
- show: false,
|
|
|
|
|
|
+ show: true,
|
|
|
|
+ tick: {
|
|
|
|
+ count: 5,
|
|
|
|
+ format: function (x) { return Math.ceil(x); }
|
|
|
|
+ },
|
|
label: {
|
|
label: {
|
|
- text: 'Blood Pressure (mmHg)',
|
|
|
|
|
|
+ text: 'BP',
|
|
position: 'outer-middle'
|
|
position: 'outer-middle'
|
|
},
|
|
},
|
|
min: 40,
|
|
min: 40,
|
|
@@ -658,9 +668,13 @@
|
|
},*/
|
|
},*/
|
|
},
|
|
},
|
|
y: {
|
|
y: {
|
|
- show: false,
|
|
|
|
|
|
+ show: true,
|
|
|
|
+ tick: {
|
|
|
|
+ count: 5,
|
|
|
|
+ format: function (x) { return Math.ceil(x); }
|
|
|
|
+ },
|
|
label: {
|
|
label: {
|
|
- text: 'Weight (lbs)',
|
|
|
|
|
|
+ text: 'Weight',
|
|
position: 'outer-middle'
|
|
position: 'outer-middle'
|
|
},
|
|
},
|
|
/*min: 70,
|
|
/*min: 70,
|