|
@@ -12,99 +12,124 @@
|
|
|
<i class="fas fa-arrow-right text-sm mx-1"></i>
|
|
|
<b class="font-size-14">{{friendly_month(date((request()->input('y') ?: 'Y') . '-' . (request()->input('m') ?: 'm') . '-d'))}}</b>
|
|
|
</span>
|
|
|
- <?php
|
|
|
- $dateInput = [];
|
|
|
- if(request()->input('m')) $dateInput[] = 'm=' . request()->input('m');
|
|
|
- if(request()->input('y')) $dateInput[] = 'y=' . request()->input('y');
|
|
|
- $dateInput = '&' . implode('&', $dateInput);
|
|
|
- ?>
|
|
|
- <select class="ml-auto max-width-200px form-control form-control-sm"
|
|
|
- onchange="fastLoad('/practice-management/remote-monitoring?fmd=' + this.value + '&fcomm={{request()->input('fcomm')}}{{$dateInput}}', true, false, false)">
|
|
|
- <option value="all" {{ !request()->input('fmd') || request()->input('fmd') === 'all' ? 'selected' : '' }}>All</option>
|
|
|
- <option value="lt16" {{ request()->input('fmd') === 'lt16' ? 'selected' : '' }}>Patients with < 16 meas. days</option>
|
|
|
- <option value="gte16" {{ request()->input('fmd') === 'gte16' ? 'selected' : '' }}>Patients with ≥ 16 meas. days</option>
|
|
|
- </select>
|
|
|
- <select class="ml-3 max-width-200px form-control form-control-sm"
|
|
|
- onchange="fastLoad('/practice-management/remote-monitoring?fmd={{request()->input('fmd')}}&fcomm=' + this.value + '{{$dateInput}}', true, false, false)">
|
|
|
- <option value="all" {{ !request()->input('fcomm') || request()->input('fcomm') === 'all' ? 'selected' : '' }}>All</option>
|
|
|
- <option value="not-done" {{ request()->input('fcomm') === 'not-done' ? 'selected' : '' }}>Patients with whom comm. not done</option>
|
|
|
- <option value="done" {{ request()->input('fcomm') === 'done' ? 'selected' : '' }}>Patients with whom comm. done</option>
|
|
|
- </select>
|
|
|
</div>
|
|
|
+
|
|
|
+ <?php $rc = request()->input('rc') ? request()->input('rc') : 1; ?>
|
|
|
+
|
|
|
<div class="card-body p-0">
|
|
|
- <table class="table table-sm table-striped table-hover p-0 m-0">
|
|
|
- <thead class="bg-light">
|
|
|
- <tr>
|
|
|
- <th class="border-0">Patient</th>
|
|
|
- <th class="border-0">Relation</th>
|
|
|
- <th class="border-0">Measurement Days</th>
|
|
|
- <th class="border-0">Unstamped Measurements</th>
|
|
|
-
|
|
|
- <th class="border-0">Phone</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach ($patients as $iPatient)
|
|
|
- <tr>
|
|
|
- <td class="">
|
|
|
- <a href="/patients/view/{{ $iPatient->client_uid }}">{{ $iPatient->name_first }} {{ $iPatient->name_last }}</a>
|
|
|
- </td>
|
|
|
- <td class="">
|
|
|
- @if($iPatient->mcp_pro_id === $pro->id)
|
|
|
- <div>MCP</div>
|
|
|
- @endif
|
|
|
- @if($iPatient->default_na_pro_id === $pro->id)
|
|
|
- <div>Care Coordinator</div>
|
|
|
- @endif
|
|
|
- @if($iPatient->rmm_pro_id === $pro->id)
|
|
|
- <div>RMM</div>
|
|
|
- @endif
|
|
|
- @if($iPatient->rme_pro_id === $pro->id)
|
|
|
- <div>RME</div>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td class="">
|
|
|
- <span class="d-inline-block width-30px">{{$iPatient->number_of_days_with_remote_measurements ?: '0'}}</span>
|
|
|
- <span class="">
|
|
|
- <?php $moreMDNeeded = 16 - $iPatient->number_of_days_with_remote_measurements; ?>
|
|
|
- @if($iPatient->number_of_days_with_remote_measurements >= 16)
|
|
|
- <i class="fa fa-check text-success" title="16 measurement days reached"></i>
|
|
|
- @elseif($daysRemaining >= $moreMDNeeded)
|
|
|
- <i class="fa fa-exclamation-triangle text-warning-mellow" title="{{$moreMDNeeded}} more measurement day{{$moreMDNeeded > 1 ? 's' : ''}} needed"></i>
|
|
|
- @elseif($daysRemaining < $moreMDNeeded)
|
|
|
- <i class="fa fa-exclamation-triangle text-secondary opacity-60" title="Can no longer reach 16 measurement days this month"></i>
|
|
|
- @endif
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- <td class="">
|
|
|
- <?php $numUS = 0; ?>
|
|
|
- @if($iPatient->mcp_pro_id === $pro->id)
|
|
|
- <?php $numUS = $iPatient->rm_num_measurements_not_stamped_by_mcp; ?>
|
|
|
- @elseif($iPatient->default_na_pro_id === $pro->id)
|
|
|
- <?php $numUS = $iPatient->rm_num_measurements_not_stamped_by_non_hcp; ?>
|
|
|
- @elseif($iPatient->rmm_pro_id === $pro->id)
|
|
|
- <?php $numUS = $iPatient->rm_num_measurements_not_stamped_by_rmm; ?>
|
|
|
- @elseif($iPatient->rme_pro_id === $pro->id)
|
|
|
- <?php $numUS = $iPatient->rm_num_measurements_not_stamped_by_rme; ?>
|
|
|
- @endif
|
|
|
- <span class="d-inline-block width-30px">{{$numUS ?: '-'}}</span>
|
|
|
- @if($numUS || true)
|
|
|
- <a native target="_blank"
|
|
|
- open-in-stag-popup
|
|
|
- update-parent
|
|
|
- mc-initer="remote-monitoring-measurements-{{$iPatient->care_month_id}}"
|
|
|
- title="{{ $iPatient->name_first }} {{ $iPatient->name_last }} / Unstamped Measurements / {{ friendly_month($careMonthStart) }}"
|
|
|
- href="/remote-monitoring-measurements/{{$iPatient->care_month_uid}}">View</a>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
+ <div class="row m-0">
|
|
|
+ <div class="col-3 p-0">
|
|
|
+ <div class="conditions-tree">
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=1" {!! $rc == 1 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Who am I the MCP for?</a>
|
|
|
+ <div class="condition-children">
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=2" {!! $rc == 2 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Which of them is enrolled in RPM?</a>
|
|
|
+ <div class="condition-children">
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=3" {!! $rc == 3 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Which of them has been given a cellular device?</a>
|
|
|
+ <div class="condition-children">
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=4" {!! $rc == 4 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Which of them have I seen w/in 90 days?</a>
|
|
|
+ <div class="condition-children">
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=5" {!! $rc == 5 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Which of them have I spoken to this month?</a>
|
|
|
+ <div class="condition-children">
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=6" {!! $rc == 6 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>How am I doing regarding their stamping?</a>
|
|
|
+ </div>
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=7" {!! $rc == 7 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>How are they doing regarding hitting 16 days?</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=8" {!! $rc == 8 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Which of them has subscribed to SMS confirmation texts?</a>
|
|
|
+ </div>
|
|
|
+ <div class="condition">
|
|
|
+ <a href="{{route('practice-management.remote-monitoring')}}?rc=9" {!! $rc == 9 ? 'class="bg-aliceblue font-weight-bold"' : ''!!}>Which of them has used the device?</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-9 border-left p-0">
|
|
|
+ <table class="table table-sm table-striped table-hover p-0 m-0">
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr>
|
|
|
+ <th class="border-0">Name</th>
|
|
|
+ <!--<th class="border-0">Relation</th>-->
|
|
|
+
|
|
|
+ <th class="border-0">DOB</th>
|
|
|
+ <th class="border-0">Enrolled in RPM?</th>
|
|
|
+ <th class="border-0">Cellular BP?</th>
|
|
|
+ <th class="border-0">Cellular Scale?</th>
|
|
|
+ <th class="border-0">Latest BP</th>
|
|
|
+ <th class="border-0">Latest Weight</th>
|
|
|
+ <th class="border-0">Latest Visit</th>
|
|
|
+ <th class="border-0">RPM Interaction This Month?</th>
|
|
|
+ <th class="border-0">Measurements Pending Stamp</th>
|
|
|
+ <th class="border-0"># Meas. Days This Month</th>
|
|
|
+ <th class="border-0"># RPM Minutes</th>
|
|
|
+
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach ($patients as $iPatient)
|
|
|
+ <?php $oPatient = \App\Models\Client::where('uid', $iPatient->client_uid)->first(); ?>
|
|
|
+ <tr>
|
|
|
+ <td class="">
|
|
|
+ <a href="/patients/view/{{ $iPatient->client_uid }}">{{ $iPatient->name_first }} {{ $iPatient->name_last }}</a>
|
|
|
+ </td>
|
|
|
+ <!--<td class="">
|
|
|
+ @if($iPatient->mcp_pro_id === $pro->id)
|
|
|
+ <div>MCP</div>
|
|
|
+ @endif
|
|
|
+ @if($iPatient->default_na_pro_id === $pro->id)
|
|
|
+ <div>Care Coordinator</div>
|
|
|
+ @endif
|
|
|
+ @if($iPatient->rmm_pro_id === $pro->id)
|
|
|
+ <div>RMM</div>
|
|
|
+ @endif
|
|
|
+ @if($iPatient->rme_pro_id === $pro->id)
|
|
|
+ <div>RME</div>
|
|
|
+ @endif
|
|
|
+ </td>-->
|
|
|
+
|
|
|
+ <td>{{friendly_date($iPatient->dob)}}</td>
|
|
|
+ <td>{{ucwords(strtolower($iPatient->is_enrolled_in_rm ?: ''))}}</td>
|
|
|
+ <td>{{$oPatient->hasBPDevice() ? 'Yes' : 'No'}}</td>
|
|
|
+ <td>{{$oPatient->hasBPDevice() ? 'Yes' : 'No'}}</td>
|
|
|
+ <td>
|
|
|
+ {{$iPatient->most_recent_cellular_bp_sbp_mm_hg ?: '-'}}/{{$iPatient->most_recent_cellular_bp_dbp_mm_hg ?: '-'}}
|
|
|
+ @if($iPatient->most_recent_cellular_bp_measurement_at)
|
|
|
+ <div class="text-sm text-secondary text-nowrap">{{friendly_date_time($iPatient->most_recent_cellular_bp_measurement_at)}}</div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ {{$iPatient->most_recent_cellular_weight_value ?: '-'}}
|
|
|
+ @if($iPatient->most_recent_cellular_weight_measurement_at)
|
|
|
+ <div class="text-sm text-secondary text-nowrap">{{friendly_date_time($iPatient->most_recent_cellular_weight_measurement_at)}}</div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>{{$iPatient->most_recent_completed_mcp_note_date ? friendly_date($iPatient->most_recent_completed_mcp_note_date) : '-'}}</td>
|
|
|
+ <td>{{$iPatient->has_anyone_interacted_with_client_about_rm_outside_note ? 'Yes' : 'No'}}</td>
|
|
|
+ <td>{{$iPatient->rm_num_measurements_not_stamped_by_mcp}}</td>
|
|
|
+ <td>{{$iPatient->number_of_days_with_remote_measurements ?: 0}}</td>
|
|
|
+ <td>{{floor($iPatient->rm_total_time_in_seconds_by_mcp / 60)}}</td>
|
|
|
|
|
|
- <td class="">
|
|
|
- {{$iPatient->cell_number}}
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|