|
@@ -1,29 +1,43 @@
|
|
<div class="mcp-theme-1 px-3 py-2 border-top mt-3" id="remote-monitoring-measurements-{{$careMonth->id}}">
|
|
<div class="mcp-theme-1 px-3 py-2 border-top mt-3" id="remote-monitoring-measurements-{{$careMonth->id}}">
|
|
<?php
|
|
<?php
|
|
$stampAllEndPoint = '';
|
|
$stampAllEndPoint = '';
|
|
- if ($measurements[0]->mcp_pro_id === $pro->id) {
|
|
|
|
- $stampAllEndPoint = '/api/measurement/bulkStampAsMcp';
|
|
|
|
- } elseif ($measurements[0]->default_na_pro_id === $pro->id || $measurements[0]->rmm_pro_id === $pro->id || $measurements[0]->rme_pro_id === $pro->id) {
|
|
|
|
- $stampAllEndPoint = '/api/measurement/bulkStampAsNonHcp';
|
|
|
|
|
|
+ if(count($measurements)) {
|
|
|
|
+ if ($measurements[0]->mcp_pro_id === $pro->id) {
|
|
|
|
+ $stampAllEndPoint = '/api/measurement/bulkStampAsMcp';
|
|
|
|
+ } elseif ($measurements[0]->default_na_pro_id === $pro->id || $measurements[0]->rmm_pro_id === $pro->id || $measurements[0]->rme_pro_id === $pro->id) {
|
|
|
|
+ $stampAllEndPoint = '/api/measurement/bulkStampAsNonHcp';
|
|
|
|
+ }
|
|
|
|
+ $measurementUids = [];
|
|
|
|
+ foreach($measurements as $measurement) {
|
|
|
|
+ if(!empty($measurement->label) && !in_array($measurement->label, ["SBP", "DBP"])) {
|
|
|
|
+ $measurementUids[] = $measurement->uid;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $measurementUids = implode('|', $measurementUids);
|
|
}
|
|
}
|
|
?>
|
|
?>
|
|
- @if($stampAllEndPoint)
|
|
|
|
|
|
+ @if($stampAllEndPoint && !!$measurementUids)
|
|
<div moe relative class="btn-stamp-all">
|
|
<div moe relative class="btn-stamp-all">
|
|
<a href="#" start show class="btn btn-sm btn-primary text-white font-weight-bold">
|
|
<a href="#" start show class="btn btn-sm btn-primary text-white font-weight-bold">
|
|
Stamp All
|
|
Stamp All
|
|
</a>
|
|
</a>
|
|
<form url="{{$stampAllEndPoint}}">
|
|
<form url="{{$stampAllEndPoint}}">
|
|
- @foreach($measurements as $measurement)
|
|
|
|
- @if(!empty($measurement->label) && !in_array($measurement->label, ["SBP", "DBP"]))
|
|
|
|
- <input type="hidden" name="measurementUids" value="{{$measurement->uid}}">
|
|
|
|
- @endif
|
|
|
|
- @endforeach
|
|
|
|
|
|
+ <input type="hidden" name="measurementUids" value="{{$measurementUids}}">
|
|
<p class="mb-1">Stamp all measurements?</p>
|
|
<p class="mb-1">Stamp all measurements?</p>
|
|
@if($measurement->mcp_pro_id !== $pro->id)
|
|
@if($measurement->mcp_pro_id !== $pro->id)
|
|
- <label class="mb-2 d-flex align-items-baseline border border-info p-2 mt-2 bg-light width-300px">
|
|
|
|
- <input type="checkbox" class="mr-2" name="communicatedToPatient">
|
|
|
|
|
|
+ <div class="mb-2 border border-info p-2 mt-2 bg-light width-300px">
|
|
<span>I have had interactive communication with {{$measurement->name_first}} {{$measurement->name_last}} during this care month.</span>
|
|
<span>I have had interactive communication with {{$measurement->name_first}} {{$measurement->name_last}} during this care month.</span>
|
|
- </label>
|
|
|
|
|
|
+ <div class="d-flex border-top mt-2">
|
|
|
|
+ <label class="mt-2 mb-0 d-inline-flex align-items-center mr-3">
|
|
|
|
+ <input type="radio" class="mr-2" name="communicatedToPatient" value="true">
|
|
|
|
+ <span>Yes</span>
|
|
|
|
+ </label>
|
|
|
|
+ <label class="mt-2 mb-0 d-inline-flex align-items-center">
|
|
|
|
+ <input type="radio" class="mr-2" name="communicatedToPatient" value="false" checked>
|
|
|
|
+ <span>No</span>
|
|
|
|
+ </label>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
@else
|
|
@else
|
|
<input type="hidden" name="communicatedToPatient" value="false">
|
|
<input type="hidden" name="communicatedToPatient" value="false">
|
|
@endif
|
|
@endif
|
|
@@ -133,7 +147,7 @@
|
|
@endforeach
|
|
@endforeach
|
|
@if(!$measurements || count($measurements) === 0)
|
|
@if(!$measurements || count($measurements) === 0)
|
|
<tr>
|
|
<tr>
|
|
- <td class="text-secondary p-0 border-0">
|
|
|
|
|
|
+ <td class="text-secondary p-2 border-0" colspan="4">
|
|
No items to show
|
|
No items to show
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|