|
@@ -1,6 +1,13 @@
|
|
|
<?php
|
|
|
$days = $patient->cmMeasurementsMatrix($careMonth);
|
|
|
- dump($days);
|
|
|
+
|
|
|
+ $performerRole = false;
|
|
|
+ if($careMonth->mcp_pro_id === $pro->id) {
|
|
|
+ $performerRole = 'MCP';
|
|
|
+ }
|
|
|
+ else if($careMonth->rme_pro_id === $pro->id || $careMonth->rmm_pro_id === $pro->id) {
|
|
|
+ $performerRole = 'NON-HCP';
|
|
|
+ }
|
|
|
?>
|
|
|
<table class="table table-striped table-sm table-bordered mt-2 mb-0">
|
|
|
<thead>
|
|
@@ -35,6 +42,73 @@
|
|
|
{{ round(floatval($m->numeric_value), 2) }} lbs
|
|
|
@endif
|
|
|
</span>
|
|
|
+ @if($performerRole === 'MCP')
|
|
|
+ <div class="width-100px">
|
|
|
+ @if($m->has_been_stamped_by_mcp)
|
|
|
+ <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/stampAsMcp" 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 border border-info p-2 mt-2 bg-light">
|
|
|
+ <span>I have had interactive communication with <b>{{$patient->displayName()}}</b> during this care month.</span>
|
|
|
+ <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" required>
|
|
|
+ <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 required>
|
|
|
+ <span>No</span>
|
|
|
+ </label>
|
|
|
+ </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>
|
|
|
+ @elseif($performerRole === 'MCP')
|
|
|
+ <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
|
|
|
+ NOT STAMPED
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
@endforeach
|
|
|
</td>
|