|
@@ -128,13 +128,46 @@ foreach ($days as $k => $day) {
|
|
|
</div>
|
|
|
@endif
|
|
|
</div>
|
|
|
- @elseif($performerRole === 'NON-MCP')
|
|
|
+ @elseif($performerRole === 'NON-HCP')
|
|
|
<div class="width-100px">
|
|
|
@if($m->has_been_stamped_by_non_hcp)
|
|
|
<span class="text-secondary text-sm">
|
|
|
<i class="fa fa-check"></i>
|
|
|
Stamped
|
|
|
</span>
|
|
|
+ @else
|
|
|
+ <div moe relative>
|
|
|
+ <a href="#" start show>Stamp</a>
|
|
|
+ <form url="/api/measurement/stamp" right class="width-300px">
|
|
|
+ <input type="hidden" name="uid" value="{{$m->measurement_uid}}">
|
|
|
+ <p class="mb-1">Stamp this measurement?</p>
|
|
|
+ <div class="mt-2 bg-light border p-2">
|
|
|
+ <div class="mb-1 text-secondary">{{ $m->label }}</div>
|
|
|
+ <div class="font-weight-bold mb-1">
|
|
|
+ @if($m->label === 'BP')
|
|
|
+ {{ round($m->sbp_mm_hg, 2) }}/{{ round($m->dbp_mm_hg, 2) }} mmHg
|
|
|
+ <span class="font-weight-normal d-inline-block pl-2">Pulse:</span>
|
|
|
+ {{ $m->value_pulse }} {{ $m->value_irregular === 0?'Irregular':'' }} {{ $m->value_irregular === 1?'Regular':'' }}
|
|
|
+ @elseif($m->label === 'Wt. (lbs.)')
|
|
|
+ {{ round($m->numeric_value, 2) }} lbs
|
|
|
+ @else
|
|
|
+ {{ $m->value }}
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div class="text-sm">
|
|
|
+ {{ $m->date }} {{ $m->time }} EST
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary text-sm">Memo</label>
|
|
|
+ <textarea class="form-control form-control-sm" name="memo"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="form-group m-0">
|
|
|
+ <button submit class="btn btn-primary btn-sm mr-2">Submit</button>
|
|
|
+ <button cancel class="btn btn-default border btn-sm mr-2">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
@endif
|
|
|
</div>
|
|
|
@endif
|
|
@@ -225,7 +258,68 @@ foreach ($days as $k => $day) {
|
|
|
<span>All Stamped</span>
|
|
|
</span>
|
|
|
@endif
|
|
|
- @elseif($performerRole === 'NON-MCP')
|
|
|
+ @elseif($performerRole === 'NON-HCP')
|
|
|
+ @if(count($unstampedNonHCP[$k]))
|
|
|
+ <div moe relative class="btn-stamp-all">
|
|
|
+ <a href="#" start show class="">
|
|
|
+ Stamp All
|
|
|
+ </a>
|
|
|
+ <form url="/api/measurement/bulkStamp" class="width-300px">
|
|
|
+ <input type="hidden" name="clientUid" value="{{$patient->uid}}">
|
|
|
+ <input type="hidden" class="measurements-uids" value="{{implode('|', $unstampedNonHCP[$k])}}">
|
|
|
+ <p class="mb-2 font-weight-bold">Stamp all measurements?</p>
|
|
|
+ <?php
|
|
|
+ $dayTotalMinutes = 0;
|
|
|
+ foreach($m->entries as $entry) {
|
|
|
+ $dayTotalMinutes += round($entry->time_in_seconds / 60);
|
|
|
+ }
|
|
|
+ $autoCheckEntry = false;
|
|
|
+ $autoCheckEntry = ($dayTotalMinutes < 2 && $patient->is_enrolled_in_rm);
|
|
|
+ ?>
|
|
|
+ <div class="p-2 border border-info bg-light mb-2">
|
|
|
+ <div class="">
|
|
|
+ <label class="mb-0 d-flex align-items-center">
|
|
|
+ <input type="checkbox" class="shouldAddEntry mr-2 my-0" {{$autoCheckEntry ? 'checked' : ''}}>
|
|
|
+ <span>Add Time Entry</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary text-sm">Memo</label>
|
|
|
+ <textarea class="form-control form-control-sm" name="entryMemo"></textarea>
|
|
|
+ </div>
|
|
|
+ <div class="if-adding-time-entry pt-2 d-none">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary text-sm">Minutes</label>
|
|
|
+ <input type="number" min="1" max="15"
|
|
|
+ class="form-control form-control-sm w-100" name="entryNumberOfMinutes"
|
|
|
+ value="2" placeholder="Time (mins.)">
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary text-sm">Date</label>
|
|
|
+ <input type="date" class="form-control form-control-sm w-100"
|
|
|
+ name="entryDate"
|
|
|
+ value="{{date('Y-m-d', strtotime($k))}}">
|
|
|
+ </div>
|
|
|
+ <div class="">
|
|
|
+ <label class="mb-0 d-flex align-items-baseline">
|
|
|
+ <input type="checkbox" class="hasAnyoneInteractedWithClientAboutRmOutsideNote mr-2 mt-1">
|
|
|
+ <span>Has anyone interacted with client about rm outside note?</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="form-group m-0">
|
|
|
+ <button type="button" class="btn btn-primary btn-sm mr-2 btn-bulk-stamp">Submit</button>
|
|
|
+ <button cancel class="btn btn-default border btn-sm mr-2">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <span class="text-secondary text-sm d-flex align-items-center">
|
|
|
+ <i class="fa fa-check mr-2"></i>
|
|
|
+ <span>All Stamped</span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
@endif
|
|
|
</td>
|
|
|
<td rowspan="{{count($days[$k])}}" class="px-2">
|