|
@@ -1,7 +1,7 @@
|
|
|
@extends ('layouts.patient')
|
|
|
@section('inner-content')
|
|
|
|
|
|
- <div class="mb-3">
|
|
|
+ <div class="">
|
|
|
<div class="mt-0 pb-1">
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<h6 class="my-0 font-weight-bold text-dark">Measurements</h6>
|
|
@@ -29,7 +29,7 @@
|
|
|
<table class="table table-striped table-sm table-bordered mt-2 mb-0">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
- <th class="px-2 text-secondary w-25">Created</th>
|
|
|
+ <th class="px-2 text-secondary w-25">Effective Date</th>
|
|
|
<th class="px-2 text-secondary w-25">Category</th>
|
|
|
<th class="px-2 text-secondary w-25">Value</th>
|
|
|
{{--<th class="px-2 text-secondary">Status</th>
|
|
@@ -41,9 +41,23 @@
|
|
|
@foreach($patient->measurements as $measurement)
|
|
|
@if(!empty($measurement->label))
|
|
|
<tr>
|
|
|
- <td class="px-2">{{ friendly_date_time($measurement->created_at) }}</td>
|
|
|
+ <td class="px-2">{{ friendly_date_time($measurement->effective_date) }}</td>
|
|
|
<td class="px-2">{{ $measurement->label }}</td>
|
|
|
- <td class="px-2">{{ $measurement->value }}</td>
|
|
|
+ <td class="px-2">
|
|
|
+ @if(empty($measurement->client_bdt_measurement_id))
|
|
|
+ {{ $measurement->value }}
|
|
|
+ @else
|
|
|
+ @if($measurement->label === 'BP')
|
|
|
+ {{ $measurement->clientBDTMeasurement->measurement->systolic_bp_in_mm_hg }}/{{ $measurement->clientBDTMeasurement->measurement->diastolic_bp_in_mm_hg }} mmHg
|
|
|
+ @elseif($measurement->label === 'SBP')
|
|
|
+ {{ $measurement->clientBDTMeasurement->measurement->systolic_bp_in_mm_hg }} mmHg
|
|
|
+ @elseif($measurement->label === 'DBP')
|
|
|
+ {{ $measurement->clientBDTMeasurement->measurement->diastolic_bp_in_mm_hg }} mmHg
|
|
|
+ @elseif($measurement->label === 'Wt. (lbs.)')
|
|
|
+ {{ round($measurement->clientBDTMeasurement->measurement->weight_in_pounds, 1) }} lbs
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
{{--<td></td>
|
|
|
<td></td>--}}
|
|
|
<td class="px-2">
|
|
@@ -97,70 +111,70 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <hr class="m-negator mt-4 mb-3">
|
|
|
+{{-- <hr class="m-negator mt-4 mb-3">--}}
|
|
|
|
|
|
- <div class="">
|
|
|
- <div class="d-flex align-items-start pb-2">
|
|
|
- <h4 class="font-weight-bold m-0">Cellular Measurements</h4>
|
|
|
- </div>
|
|
|
- <table class="table table-striped table-sm table-bordered mb-0">
|
|
|
- @if($patient->measurements && count($patient->measurements))
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th class="px-2 text-secondary w-25">Created</th>
|
|
|
- <th class="px-2 text-secondary w-25">Category</th>
|
|
|
- <th class="px-2 text-secondary w-25">Value</th>
|
|
|
- <th class="px-2 text-secondary">Status</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach($patient->deviceMeasurements as $measurement)
|
|
|
- <tr>
|
|
|
- <td class="px-2">{{ friendly_date_time($measurement->created_at) }}</td>
|
|
|
- <td class="px-2">{{ $measurement->measurement->device_category }}</td>
|
|
|
- <td class="px-2">
|
|
|
- @if($measurement->measurement->device_category === 'WEIGHT')
|
|
|
- <b>{{ round(($measurement->measurement->value_weight / 1000)*2.20462, 1) }} lb</b>
|
|
|
- @elseif($measurement->measurement->device_category === 'BP')
|
|
|
- <b>{{ $measurement->measurement->systolic_bp_in_mm_hg }}/{{ $measurement->measurement->diastolic_bp_in_mm_hg }} mmHg</b>
|
|
|
- @endif
|
|
|
- </td>
|
|
|
- <td class="px-2">
|
|
|
- <span>
|
|
|
- <span>{{ $measurement->status }}</span>
|
|
|
- <span moe class="ml-2" relative>
|
|
|
- <a href="#" start show><i class="fa fa-edit text-primary"></i></a>
|
|
|
- <form url="/api/clientBdtMeasurement/updateStatus" right>
|
|
|
- <input type="hidden" name="uid" value="{{ $measurement->uid }}">
|
|
|
- <div class="mb-2">
|
|
|
- <select name="status" class="form-control form-control-sm" required>
|
|
|
- <option value="">-- select --</option>
|
|
|
- <option {{$measurement->status === 'NEW' ? 'selected' : '' }} value="NEW">NEW</option>
|
|
|
- <option {{$measurement->status === 'ACCEPTED' ? 'selected' : '' }} value="ACCEPTED">ACCEPTED</option>
|
|
|
- <option {{$measurement->status === 'REJECTED' ? 'selected' : '' }} value="REJECTED">REJECTED</option>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <div class="mb-2">
|
|
|
- <input type="text" name="statusMemo" placeholder="Status memo" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
- <div class="d-flex align-items-center">
|
|
|
- <button class="btn btn-sm btn-primary mr-2" submit>Save</button>
|
|
|
- <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- @else
|
|
|
- <tbody>
|
|
|
- <tr>
|
|
|
- <td class="text-secondary p-3">No device measurements for this patient</td>
|
|
|
- </tr>
|
|
|
- </tbody>
|
|
|
- @endif
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+{{-- <div class="">--}}
|
|
|
+{{-- <div class="d-flex align-items-start pb-2">--}}
|
|
|
+{{-- <h4 class="font-weight-bold m-0">Cellular Measurements</h4>--}}
|
|
|
+{{-- </div>--}}
|
|
|
+{{-- <table class="table table-striped table-sm table-bordered mb-0">--}}
|
|
|
+{{-- @if($patient->measurements && count($patient->measurements))--}}
|
|
|
+{{-- <thead>--}}
|
|
|
+{{-- <tr>--}}
|
|
|
+{{-- <th class="px-2 text-secondary w-25">Created</th>--}}
|
|
|
+{{-- <th class="px-2 text-secondary w-25">Category</th>--}}
|
|
|
+{{-- <th class="px-2 text-secondary w-25">Value</th>--}}
|
|
|
+{{-- <th class="px-2 text-secondary">Status</th>--}}
|
|
|
+{{-- </tr>--}}
|
|
|
+{{-- </thead>--}}
|
|
|
+{{-- <tbody>--}}
|
|
|
+{{-- @foreach($patient->deviceMeasurements as $measurement)--}}
|
|
|
+{{-- <tr>--}}
|
|
|
+{{-- <td class="px-2">{{ friendly_date_time($measurement->created_at) }}</td>--}}
|
|
|
+{{-- <td class="px-2">{{ $measurement->measurement->device_category }}</td>--}}
|
|
|
+{{-- <td class="px-2">--}}
|
|
|
+{{-- @if($measurement->measurement->device_category === 'WEIGHT')--}}
|
|
|
+{{-- <b>{{ round(($measurement->measurement->value_weight / 1000)*2.20462, 1) }} lb</b>--}}
|
|
|
+{{-- @elseif($measurement->measurement->device_category === 'BP')--}}
|
|
|
+{{-- <b>{{ $measurement->measurement->systolic_bp_in_mm_hg }}/{{ $measurement->measurement->diastolic_bp_in_mm_hg }} mmHg</b>--}}
|
|
|
+{{-- @endif--}}
|
|
|
+{{-- </td>--}}
|
|
|
+{{-- <td class="px-2">--}}
|
|
|
+{{-- <span>--}}
|
|
|
+{{-- <span>{{ $measurement->status }}</span>--}}
|
|
|
+{{-- <span moe class="ml-2" relative>--}}
|
|
|
+{{-- <a href="#" start show><i class="fa fa-edit text-primary"></i></a>--}}
|
|
|
+{{-- <form url="/api/clientBdtMeasurement/updateStatus" right>--}}
|
|
|
+{{-- <input type="hidden" name="uid" value="{{ $measurement->uid }}">--}}
|
|
|
+{{-- <div class="mb-2">--}}
|
|
|
+{{-- <select name="status" class="form-control form-control-sm" required>--}}
|
|
|
+{{-- <option value="">-- select --</option>--}}
|
|
|
+{{-- <option {{$measurement->status === 'NEW' ? 'selected' : '' }} value="NEW">NEW</option>--}}
|
|
|
+{{-- <option {{$measurement->status === 'ACCEPTED' ? 'selected' : '' }} value="ACCEPTED">ACCEPTED</option>--}}
|
|
|
+{{-- <option {{$measurement->status === 'REJECTED' ? 'selected' : '' }} value="REJECTED">REJECTED</option>--}}
|
|
|
+{{-- </select>--}}
|
|
|
+{{-- </div>--}}
|
|
|
+{{-- <div class="mb-2">--}}
|
|
|
+{{-- <input type="text" name="statusMemo" placeholder="Status memo" class="form-control form-control-sm">--}}
|
|
|
+{{-- </div>--}}
|
|
|
+{{-- <div class="d-flex align-items-center">--}}
|
|
|
+{{-- <button class="btn btn-sm btn-primary mr-2" submit>Save</button>--}}
|
|
|
+{{-- <button class="btn btn-sm btn-default mr-2 border" cancel>Cancel</button>--}}
|
|
|
+{{-- </div>--}}
|
|
|
+{{-- </form>--}}
|
|
|
+{{-- </span>--}}
|
|
|
+{{-- </span>--}}
|
|
|
+{{-- </td>--}}
|
|
|
+{{-- </tr>--}}
|
|
|
+{{-- @endforeach--}}
|
|
|
+{{-- </tbody>--}}
|
|
|
+{{-- @else--}}
|
|
|
+{{-- <tbody>--}}
|
|
|
+{{-- <tr>--}}
|
|
|
+{{-- <td class="text-secondary p-3">No device measurements for this patient</td>--}}
|
|
|
+{{-- </tr>--}}
|
|
|
+{{-- </tbody>--}}
|
|
|
+{{-- @endif--}}
|
|
|
+{{-- </table>--}}
|
|
|
+{{-- </div>--}}
|
|
|
@endsection
|