|
@@ -216,6 +216,39 @@
|
|
|
</table>
|
|
|
</div>
|
|
|
|
|
|
+ {{-- device measurements --}}
|
|
|
+ <div class="mt-2 pb-1">
|
|
|
+ <div class="d-flex align-items-center mb-2 py-2 border-top border-bottom">
|
|
|
+ <h6 class="my-0 font-weight-bold text-secondary">Measurements</h6>
|
|
|
+ </div>
|
|
|
+ <table class="table table-sm border-0 my-0 mx-2">
|
|
|
+ <tbody>
|
|
|
+ @foreach($patient->deviceMeasurements as $measurement)
|
|
|
+ <tr>
|
|
|
+ <td class="text-black p-0 border-0">
|
|
|
+ <div class="pb-0">
|
|
|
+ <span class="text-secondary">{{ $measurement->measurement->device_category }}:</span>
|
|
|
+ @if($measurement->measurement->device_category === 'WEIGHT')
|
|
|
+ <b>{{ round($measurement->measurement->value_weight / 1000, 1) }} Kg</b>
|
|
|
+ @elseif($measurement->measurement->device_category === 'BP')
|
|
|
+ <b>{{ $measurement->measurement->value_systolic }}/{{ $measurement->measurement->value_diastolic }} mmHg</b>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ @if(!$patient->deviceMeasurements || count($patient->deviceMeasurements) === 0)
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary p-0 border-0">
|
|
|
+ No measurements
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
{{-- vitals --}}
|
|
|
@include('app/patient/partials/vitals')
|
|
|
|