|
@@ -0,0 +1,109 @@
|
|
|
+@extends('layouts.print')
|
|
|
+
|
|
|
+@section('content')
|
|
|
+ <style>
|
|
|
+ html,
|
|
|
+ body {
|
|
|
+ height: max-content
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <div id="printableScreen" style="padding: 15px;">
|
|
|
+ <div style="text-align:center;margin-top:15px;margin-bottom: 30px;">
|
|
|
+ <h6 class="font-weight-bold text-uppercase">{{ $patient->displayName() }}</h6>
|
|
|
+ <div style="margin-bottom: 5px;font-weight:bold;">NP: {{ $careMonth->mcp ? $careMonth->mcp->displayName() : '---' }}</div>
|
|
|
+ <div>
|
|
|
+ <span class="text-dark font-weight-bold">Care Month</span> for <span
|
|
|
+ class="text-dark font-weight-bold">{{ friendly_month($careMonth->start_date) }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div style="margin-bottom: 30px;">
|
|
|
+ <h6 class="font-weight-bold">RM Reasons</h6>
|
|
|
+ <table class="table table-striped table-sm table-bordered mt-2 mb-0">
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ @include('app.patient.partials.rm-reasons-print-display', ['recordType' => 'CARE_MONTH', 'record' => $careMonth])
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <h6 class="font-weight-bold">Measurements</h6>
|
|
|
+ <table class="table table-striped table-sm table-bordered mt-2 mb-0">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="px-2 text-secondary">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">Stamped</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @php
|
|
|
+ $measurementsInCareMonth = $patient->measurementsInCareMonth($careMonth);
|
|
|
+ $plottableMeasurements = [];
|
|
|
+ @endphp
|
|
|
+ @foreach ($measurementsInCareMonth as $measurement)
|
|
|
+ @if (!empty($measurement->label) && !in_array($measurement->label, ['SBP', 'DBP']) && !$measurement->is_cellular_zero)
|
|
|
+ <tr>
|
|
|
+ <td class="px-2">
|
|
|
+ @if ($measurement->ts)
|
|
|
+ <?php $timestampInSec = floor($measurement->ts / 1000); ?>
|
|
|
+ {{ friendly_date_time_short_with_tz_from_timestamp($timestampInSec, 'EASTERN') }}
|
|
|
+ @else
|
|
|
+ {{ friendly_date_time_short_with_tz($measurement->effective_date, true, 'EASTERN') }}
|
|
|
+ @endif
|
|
|
+ EST
|
|
|
+ </td>
|
|
|
+ <td class="px-2">{{ $measurement->label }}</td>
|
|
|
+ <td class="px-2">
|
|
|
+ @if ($measurement->is_cellular_zero)
|
|
|
+ <i class="font-size-11 fa fa-rss"></i>
|
|
|
+ @elseif($measurement->label === 'BP')
|
|
|
+ {{ $measurement->sbp_mm_hg }}/{{ $measurement->dbp_mm_hg }} mmHg
|
|
|
+ @elseif($measurement->label === 'Wt. (lbs.)')
|
|
|
+ {{ round(floatval($measurement->numeric_value), 2) }} lbs
|
|
|
+ @else
|
|
|
+ {{ $measurement->value }}
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td colspan="px-2">
|
|
|
+ <?php
|
|
|
+ $stamps = ['has_been_stamped_by_mcp', 'has_been_stamped_by_non_hcp', 'has_been_stamped_by_rme', 'has_been_stamped_by_rmm'];
|
|
|
+ $isStamped = false;
|
|
|
+ foreach ($stamps as $stamp) {
|
|
|
+ if ($measurement->{$stamp}) {
|
|
|
+ $isStamped = true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ @if($isStamped)
|
|
|
+ ✓
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ @if (!$patient->measurements || !count($patient->measurements) === 0)
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary p-0 border-0">
|
|
|
+ No items to show
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ <script>
|
|
|
+ function printDiv(divName) {
|
|
|
+ var printContents = document.getElementById(divName).innerHTML;
|
|
|
+ var originalContents = document.body.innerHTML;
|
|
|
+ document.body.innerHTML = printContents;
|
|
|
+ window.print();
|
|
|
+ document.body.innerHTML = originalContents;
|
|
|
+ }
|
|
|
+ document.addEventListener("DOMContentLoaded", function(event) {
|
|
|
+ printDiv('printableScreen');
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+@endsection
|