|
@@ -1,33 +1,37 @@
|
|
|
-<h6 class="font-weight-bold">Measurements</h6>
|
|
|
-<table class="table table-striped table-sm table-bordered mt-2 mb-0">
|
|
|
+<h3 style="font-weight: bolder; font-size: 18px; line-height:18px; margin:0px;" class="mb-3"><b>Remote Monitoring:</b>
|
|
|
+</h3>
|
|
|
+<table class="table table-sm table-bordered mt-2 mb-0">
|
|
|
<thead>
|
|
|
- <tr>
|
|
|
- <th class="px-1 text-secondary">Date & Time</th>
|
|
|
- <th class="px-1 text-secondary w-25">Measurement</th>
|
|
|
- <th class="px-1 text-secondary w-25">Type</th>
|
|
|
- <th class="px-1 text-secondary w-25">Interaction</th>
|
|
|
- <th class="px-4 text-secondary">Comments</th>
|
|
|
- </tr>
|
|
|
+ <tr>
|
|
|
+ <th class="px-1 text-nowrap"><b>Date & Time</b></th>
|
|
|
+ <th class="px-1"><b>Measurement</b></th>
|
|
|
+ <th class="px-1"><b>Type</b></th>
|
|
|
+ <th class="px-1"><b>Interaction</b></th>
|
|
|
+ <th class="px-4 w-100"><b>Comments</b></th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- @php
|
|
|
- $measurementsInCareMonth = $patient->measurementsInCareMonth($careMonth);
|
|
|
- $plottableMeasurements = [];
|
|
|
- @endphp
|
|
|
- @foreach ($measurementsInCareMonth as $measurement)
|
|
|
- @if($measurementType && stripos($measurement->label, $measurementType) === false ) @continue @endif
|
|
|
- @if (!empty($measurement->label) && !in_array($measurement->label, ['SBP', 'DBP']) && !$measurement->is_cellular_zero)
|
|
|
- <tr>
|
|
|
- <td class="px-2">
|
|
|
- @if ($measurement->ts)
|
|
|
+ @php
|
|
|
+ $measurementsInCareMonth = $patient->measurementsInCareMonth($careMonth);
|
|
|
+ $plottableMeasurements = [];
|
|
|
+ @endphp
|
|
|
+ @foreach ($measurementsInCareMonth as $measurement)
|
|
|
+ @if($measurementType && stripos($measurement->label, $measurementType) === false )
|
|
|
+ @continue
|
|
|
+ @endif
|
|
|
+ @if (!empty($measurement->label) && !in_array($measurement->label, ['SBP', 'DBP']) && !$measurement->is_cellular_zero)
|
|
|
+ <tr>
|
|
|
+ <td class="px-2 text-nowrap">
|
|
|
+ @if ($measurement->ts)
|
|
|
<?php $timestampInSec = floor($measurement->ts / 1000); ?>
|
|
|
- {{ friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN') }}
|
|
|
- @else
|
|
|
- {{ friendly_date_time_short_with_tz($measurement->effective_date, true, 'EASTERN') }}
|
|
|
- @endif
|
|
|
- EST
|
|
|
- </td>
|
|
|
- <td class="px-1">
|
|
|
+ {{ friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN') }}
|
|
|
+ @else
|
|
|
+ {{ friendly_date_time_short_with_tz($measurement->effective_date, true, 'EASTERN') }}
|
|
|
+ @endif
|
|
|
+ EST
|
|
|
+ </td>
|
|
|
+ <td class="px-1 text-nowrap">
|
|
|
+ <div class="text-nowrap">
|
|
|
@if ($measurement->is_cellular_zero)
|
|
|
<i class="font-size-11 fa fa-rss"></i>
|
|
|
@elseif($measurement->label === 'BP')
|
|
@@ -37,45 +41,61 @@
|
|
|
@else
|
|
|
{{ $measurement->value }}
|
|
|
@endif
|
|
|
- </td>
|
|
|
- <td class="px-1">{{ $measurement->label }}</td>
|
|
|
- <td>
|
|
|
- @if($careMonth->mcpInteractionNote)
|
|
|
- $careMonth->mcpInteractionNote->method
|
|
|
- @else
|
|
|
-
|
|
|
- @endif
|
|
|
- </td>
|
|
|
-{{-- <td colspan="px-2">--}}
|
|
|
-{{-- <?php--}}
|
|
|
-{{-- $stamps = ['has_been_stamped_by_mcp', 'has_been_stamped_by_non_hcp', 'has_been_stamped_by_rme', 'has_been_stamped_by_rmm'];--}}
|
|
|
-{{-- $isStamped = false;--}}
|
|
|
-{{-- foreach ($stamps as $stamp) {--}}
|
|
|
-{{-- if ($measurement->{$stamp}) {--}}
|
|
|
-{{-- $isStamped = true;--}}
|
|
|
-{{-- }--}}
|
|
|
-{{-- }--}}
|
|
|
-{{-- ?>--}}
|
|
|
-{{-- @if ($isStamped)--}}
|
|
|
-{{-- ✓--}}
|
|
|
-{{-- @endif--}}
|
|
|
-{{-- </td>--}}
|
|
|
- <td class="px-4">
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="px-1 text-nowrap">{{ $measurement->label }}</td>
|
|
|
+ <td class="text-nowrap">
|
|
|
+ <div class="">
|
|
|
+ @php $found = false; @endphp
|
|
|
@foreach($careMonth->entries as $entry)
|
|
|
- @if($entry->achieved_mcp_time_in_seconds > 0 && $entry->is_removed != true )
|
|
|
- <p>{{$entry->achieved_mcp_time_in_seconds/60}}m: {!! $entry->content_text !!}</p>
|
|
|
+ @if(friendly_date($entry->effective_date) == friendly_date($measurement->effective_date) && $entry->did_pro_interact_with_client_about_rm && !$found)
|
|
|
+ Text/Audio call
|
|
|
+ @php $found = true; @endphp
|
|
|
@endif
|
|
|
@endforeach
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endif
|
|
|
- @endforeach
|
|
|
- @if (!$patient->measurements || !count($patient->measurements) === 0)
|
|
|
- <tr>
|
|
|
- <td class="text-secondary p-0 border-0">
|
|
|
- No items to show
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ {{-- <td colspan="px-2">--}}
|
|
|
+ {{-- <?php--}}
|
|
|
+ {{-- $stamps = ['has_been_stamped_by_mcp', 'has_been_stamped_by_non_hcp', 'has_been_stamped_by_rme', 'has_been_stamped_by_rmm'];--}}
|
|
|
+ {{-- $isStamped = false;--}}
|
|
|
+ {{-- foreach ($stamps as $stamp) {--}}
|
|
|
+ {{-- if ($measurement->{$stamp}) {--}}
|
|
|
+ {{-- $isStamped = true;--}}
|
|
|
+ {{-- }--}}
|
|
|
+ {{-- }--}}
|
|
|
+ {{-- ?>--}}
|
|
|
+ {{-- @if ($isStamped)--}}
|
|
|
+ {{-- ✓--}}
|
|
|
+ {{-- @endif--}}
|
|
|
+ {{-- </td>--}}
|
|
|
+ @php $rowSpan = 0 @endphp
|
|
|
+ @foreach($careMonth->entries() as $entry)
|
|
|
+ @if(friendly_date($entry->effective_date) == friendly_date($measurement->effective_date))
|
|
|
+ @php $rowSpan = $rowSpan + 1; @endphp
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ <td class="px-4">
|
|
|
+ <div class="">
|
|
|
+ @foreach($careMonth->entries as $entry)
|
|
|
+ @if(friendly_date($entry->effective_date) == friendly_date($measurement->effective_date))
|
|
|
+ <div class="d-flex align-items-start">
|
|
|
+ <span class="mr-2">{{$entry->time_in_seconds/60}}m: </span>
|
|
|
+ <div>{!! $entry->content_text !!}</div>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
@endif
|
|
|
+ @endforeach
|
|
|
+ @if (!$patient->measurements || !count($patient->measurements) === 0)
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary p-0 border-0">
|
|
|
+ No items to show
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
</tbody>
|
|
|
</table>
|