|
@@ -1,7 +1,43 @@
|
|
|
<div class="mcp-theme-1 px-3 py-2 border-top mt-3" id="remote-monitoring-measurements-{{$careMonth->id}}">
|
|
|
- <a class="btn btn-sm btn-primary text-white btn-stamp-all font-weight-bold" href="#">
|
|
|
- Stamp All
|
|
|
- </a>
|
|
|
+ <?php
|
|
|
+ $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($stampAllEndPoint)
|
|
|
+ <div moe relative class="btn-stamp-all">
|
|
|
+ <a href="#" start show class="btn btn-sm btn-primary text-white font-weight-bold">
|
|
|
+ Stamp All
|
|
|
+ </a>
|
|
|
+ <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
|
|
|
+ <p class="mb-1">Stamp all measurements?</p>
|
|
|
+ @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">
|
|
|
+ <span>I have had interactive communication with {{$measurement->name_first}} {{$measurement->name_last}} during this care month.</span>
|
|
|
+ </label>
|
|
|
+ @else
|
|
|
+ <input type="hidden" name="communicatedToPatient" value="false">
|
|
|
+ @endif
|
|
|
+ <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 class="mt-0 pb-1">
|
|
|
<table class="table table-striped table-sm table-bordered mt-2 mb-0">
|
|
|
<thead>
|