|
@@ -39,9 +39,57 @@
|
|
|
@endif
|
|
|
</td>
|
|
|
<td class="px-2">
|
|
|
- <a class="btn-stamp" href="#">
|
|
|
- Stamp
|
|
|
- </a>
|
|
|
+ <?php
|
|
|
+ $stampEndPoint = '';
|
|
|
+ if ($measurement->mcp_pro_id === $pro->id) {
|
|
|
+ $stampEndPoint = '/api/measurement/stampAsMcp';
|
|
|
+ } elseif ($measurement->default_na_pro_id === $pro->id || $measurement->rmm_pro_id === $pro->id || $measurement->rme_pro_id === $pro->id) {
|
|
|
+ $stampEndPoint = '/api/measurement/stampAsNonHcp';
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ @if($stampEndPoint)
|
|
|
+ <div moe relative>
|
|
|
+ <a href="#" start show>Stamp</a>
|
|
|
+ <form url="{{$stampEndPoint}}" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$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">{{ $measurement->label }}</div>
|
|
|
+ <div class="font-weight-bold mb-1">
|
|
|
+ @if($measurement->label === 'BP')
|
|
|
+ {{ round($measurement->sbp_mm_hg, 2) }}/{{ round($measurement->dbp_mm_hg, 2) }} mmHg
|
|
|
+ <span class="font-weight-normal d-inline-block pl-2">Pulse:</span>
|
|
|
+ {{ $measurement->value_pulse }} {{ $measurement->value_irregular === 0?'Irregular':'' }} {{ $measurement->value_irregular === 1?'Regular':'' }}
|
|
|
+ @elseif($measurement->label === 'Wt. (lbs.)')
|
|
|
+ {{ round($measurement->numeric_value, 2) }} lbs
|
|
|
+ @else
|
|
|
+ {{ $measurement->value }}
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div class="text-sm">
|
|
|
+ <?php $timestampInSec = floor($measurement->ts / 1000); ?>
|
|
|
+ {{ friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN') }} EST
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @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
|
|
|
</td>
|
|
|
</tr>
|
|
|
@endif
|
|
@@ -59,7 +107,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
- (function() {
|
|
|
+ (function () {
|
|
|
function init() {
|
|
|
$('.stag-popup-content .stag-popup-title .btn-stamp-all').remove();
|
|
|
$('.btn-stamp-all')
|