|
@@ -20,7 +20,7 @@
|
|
|
}
|
|
|
?>
|
|
|
|
|
|
- <div class="pt-2 pb-3 d-flex align-items-start">
|
|
|
+ <div id="note-single-header" class="pt-2 pb-3 d-flex align-items-start">
|
|
|
<h6 class="my-0 text-secondary d-flex align-items-start w-100">
|
|
|
<a href="/patients/view/{{ $patient->uid }}/notes" class="small text-decoration-none mr-3">
|
|
|
<i class="fa fa-chevron-left"></i>
|
|
@@ -355,6 +355,127 @@
|
|
|
|
|
|
<span class="d-none latest-section-ts">{{ $latestSectionTS }}</span>
|
|
|
|
|
|
+ <div class="p-3 border-bottom">
|
|
|
+ <div class="">
|
|
|
+ <div class="d-flex align-items-center mb-2">
|
|
|
+ <p class="font-weight-bold text-secondary m-0 mr-2">ERx/Orders Summary - {{date('m/d/Y')}}</p>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ @if($ticketsToday && count($ticketsToday))
|
|
|
+ <table class="table table-sm table-bordered mb-0">
|
|
|
+ <thead>
|
|
|
+ <tr class="bg-light">
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 width-30px">Created</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 width-30px">Type</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 width-30px">Pro</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 width-30px">View</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0 width-30px">Status</th>
|
|
|
+ <th class="px-2 text-secondary border-bottom-0">Detail</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach($ticketsToday as $ticket)
|
|
|
+ <?php $data = json_decode($ticket->data); ?>
|
|
|
+ @if($ticket->category === 'erx' || $ticket->category === 'lab' || $ticket->category === 'imaging')
|
|
|
+ <tr class="{{$ticket->is_open ? '' : 'bg-light on-hover-opaque'}}">
|
|
|
+ <td class="px-2 text-nowrap">
|
|
|
+ {{friendly_time($ticket->created_at)}}
|
|
|
+ </td>
|
|
|
+ <td class="px-2 text-nowrap">
|
|
|
+ {{$ticket->category}}
|
|
|
+ </td>
|
|
|
+ <td class="px-2 text-nowrap">
|
|
|
+ @if($ticket->orderingPro)
|
|
|
+ @if($ticket->orderingPro->id !== $pro->id)
|
|
|
+ <b>{{$ticket->orderingPro->displayName()}}</b>
|
|
|
+ @else
|
|
|
+ You
|
|
|
+ @endif
|
|
|
+ @else
|
|
|
+ -
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td class="px-2 text-nowrap">
|
|
|
+ <div class="d-flex align-items-center flex-nowrap">
|
|
|
+ <a href="/patients/view/{{$ticket->patient->uid}}/tickets/{{$ticket->category}}/{{$ticket->uid}}?popupmode=1"
|
|
|
+ native target="_blank"
|
|
|
+ class="ticket-popup-trigger note-dashboard-action d-block text-nowrap mr-3">
|
|
|
+ View
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="px-2 text-nowrap">
|
|
|
+ {{$ticket->is_open ? 'Open' : 'Closed'}}
|
|
|
+ </td>
|
|
|
+ <td class="px-2">
|
|
|
+ @if($ticket->category === 'erx')
|
|
|
+ <div class="font-size-13 mb-1">{{$data->medication}}</div>
|
|
|
+ <div class="d-flex align-items-center flex-wrap text-secondary">
|
|
|
+ @if($data->strength)
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
+ <span class="mx-2 text-secondary">•</span>
|
|
|
+ <span>{{$data->strength}}</span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @if($data->route)
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
+ <span class="mx-2 text-secondary">•</span>
|
|
|
+ <span>{{$data->route}}</span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @if($data->frequency)
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
+ <span class="mx-2 text-secondary">•</span>
|
|
|
+ <span>{{$data->frequency}}</span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @if($data->dispense)
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
+ <span class="mx-2 text-secondary">•</span>
|
|
|
+ <span>Dispense:</span> {{$data->dispense}}
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @if($data->frequency)
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
+ <span class="mx-2 text-secondary">•</span>
|
|
|
+ <span><span>Refills:</span> {{$data->refills}}</span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @if($data->dispense)
|
|
|
+ <span class="d-inline-flex align-items-center">
|
|
|
+ <span class="mx-2 text-secondary">•</span>
|
|
|
+ <span><span>Purpose:</span> {{$data->purpose}}</span>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if($ticket->category === 'lab' || $ticket->category === 'imaging')
|
|
|
+ @if(@$data->tests && is_array($data->tests))
|
|
|
+ <div>
|
|
|
+ <span class="text-secondary">Tests:</span>
|
|
|
+ {{implode(", ", $data->tests)}}
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if(@$data->icds && is_array($data->icds))
|
|
|
+ <div>
|
|
|
+ <span class="text-secondary">ICDs:</span>
|
|
|
+ {{implode(", ", $data->icds)}}
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endif
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ @else
|
|
|
+ <div class="text-secondary">None</div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
<div class="p-3 border-bottom">
|
|
|
<div class="">
|
|
|
<div class="d-flex align-items-center mb-2">
|