|
@@ -187,160 +187,6 @@
|
|
|
@endif
|
|
|
</div>
|
|
|
<div class="col-md-9">
|
|
|
-
|
|
|
- <div class="row">
|
|
|
- <div class="col-6">
|
|
|
-
|
|
|
- <!-- new associations -->
|
|
|
- @if(count($newMCPAssociations))
|
|
|
- <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
- <p class="pt-1 mb-2"><b>New Patients</b></p>
|
|
|
- @foreach($newMCPAssociations as $assoc)
|
|
|
- <div class="d-flex align-items-start bg-light mb-2 px-2 py-1">
|
|
|
- <div class="flex-grow-1">
|
|
|
- You are now the MCP for
|
|
|
- <a href="/patients/view/{{$assoc->patient->uid}}"
|
|
|
- class="">{{$assoc->patient->displayName()}}</a>
|
|
|
- <?php $nextAppt = $assoc->patient->nextAppointment(); ?>
|
|
|
- @if($nextAppt)
|
|
|
- <div class="font-size-11">
|
|
|
- <span class="text-secondary font-size-11">Appt.</span>
|
|
|
- {{$nextAppt->pro->displayName()}}
|
|
|
- <span class="text-secondary font-size-11">on</span>
|
|
|
- {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
|
|
|
- </div>
|
|
|
- @if($nextAppt->status === 'PENDING') {{-- WIP: ALIX overhaul --}}
|
|
|
- <div
|
|
|
- class="text-warning-mellow font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-exclamation-triangle"></i>
|
|
|
- Confirmation pending
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if($nextAppt->status === 'CONFIRMED')
|
|
|
- <div class="text-success font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- Confirmed by the patient
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if($nextAppt->status === 'CANCELLED')
|
|
|
- <div class="text-danger font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-stop"></i>
|
|
|
- Cancelled
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <a href="#" class="ack-client-pro-change ml-3" data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- </div>
|
|
|
- @endif
|
|
|
-
|
|
|
- @if(count($newNAAssociations))
|
|
|
- <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
- <p class="pt-1 mb-2"><b>New Patients</b></p>
|
|
|
- @foreach($newNAAssociations as $assoc)
|
|
|
- <div class="d-flex align-items-start bg-light mb-2 px-2 py-1">
|
|
|
- <div class="flex-grow-1">
|
|
|
- You are now the Care Coordinator for
|
|
|
- <a href="/patients/view/{{$assoc->patient->uid}}"
|
|
|
- class="">{{$assoc->patient->displayName()}}</a>
|
|
|
- <?php $nextAppt = $assoc->patient->nextAppointment(); ?>
|
|
|
- @if($nextAppt)
|
|
|
- <div class="font-size-11">
|
|
|
- <span class="text-secondary font-size-11">Appt.</span>
|
|
|
- {{$nextAppt->pro->displayName()}}
|
|
|
- <span class="text-secondary font-size-11">on</span>
|
|
|
- {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
|
|
|
- </div>
|
|
|
- @if($nextAppt->status === 'PENDING') {{-- WIP: ALIX overhaul --}}
|
|
|
- <div
|
|
|
- class="text-warning-mellow font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-exclamation-triangle"></i>
|
|
|
- Confirmation pending
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if($nextAppt->status === 'CONFIRMED')
|
|
|
- <div class="text-success font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-check"></i>
|
|
|
- Confirmed by the patient
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if($nextAppt->status === 'CANCELLED')
|
|
|
- <div class="text-danger font-weight-bold font-size-11 mt-1">
|
|
|
- <i class="fa fa-stop"></i>
|
|
|
- Cancelled
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <a href="#" class="ack-client-pro-change"
|
|
|
- data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- <div class="col-6">
|
|
|
- @if(count($mcpClientMemos))
|
|
|
- <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
- <p class="pt-1 mb-2"><b>New Patients Memos (MCP)</b></p>
|
|
|
- <table class="table table-sm table-hover table-bordered">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Patient</th>
|
|
|
- <th>Memo</th>
|
|
|
- <th>Created</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach($mcpClientMemos as $memo)
|
|
|
- <tr>
|
|
|
- <td class="">
|
|
|
- <a href="/patients/view/{{$memo->client_uid}}">{{$memo->name_first}} {{$memo->name_last}}</a>
|
|
|
- </td>
|
|
|
- <td>{!! $memo->content !!}</td>
|
|
|
- <td class="text-nowrap">{{friendlier_date_time($memo->created_at)}}</td>
|
|
|
- <td><a href="#" class="ack-client-memo"
|
|
|
- data-uid="{{$memo->uid}}">Ack.</a></td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- @if(count($naClientMemos))
|
|
|
- <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
- <p class="pt-1 mb-2"><b>New Patients Memos (NA)</b></p>
|
|
|
- <table class="table table-sm table-hover table-bordered">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th>Patient</th>
|
|
|
- <th>Memo</th>
|
|
|
- <th>Created</th>
|
|
|
- <th></th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- @foreach($naClientMemos as $memo)
|
|
|
- <tr>
|
|
|
- <td class="">
|
|
|
- <a href="/patients/view/{{$memo->client_uid}}">{{$memo->name_first}} {{$memo->name_last}}</a>
|
|
|
- </td>
|
|
|
- <td>{!! $memo->content !!}</td>
|
|
|
- <td class="text-nowrap">{{friendlier_date_time($memo->created_at)}}</td>
|
|
|
- <td><a href="#" class="ack-client-memo"
|
|
|
- data-uid="{{$memo->uid}}">Ack.</a></td>
|
|
|
- </tr>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li class="nav-item">
|
|
|
<a native data-tab="appointments" class="nav-link"
|
|
@@ -506,6 +352,159 @@
|
|
|
@include('app.dashboard.supply_orders')
|
|
|
</div>
|
|
|
</div>
|
|
|
+
|
|
|
+ <div class="row mt-3">
|
|
|
+ <div class="col-6">
|
|
|
+ <!-- new associations -->
|
|
|
+ @if(count($newMCPAssociations))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
+ <p class="pt-1 mb-2"><b>New Patients</b></p>
|
|
|
+ @foreach($newMCPAssociations as $assoc)
|
|
|
+ <div class="d-flex align-items-start bg-light mb-2 px-2 py-1">
|
|
|
+ <div class="flex-grow-1">
|
|
|
+ You are now the MCP for
|
|
|
+ <a href="/patients/view/{{$assoc->patient->uid}}"
|
|
|
+ class="">{{$assoc->patient->displayName()}}</a>
|
|
|
+ <?php $nextAppt = $assoc->patient->nextAppointment(); ?>
|
|
|
+ @if($nextAppt)
|
|
|
+ <div class="font-size-11">
|
|
|
+ <span class="text-secondary font-size-11">Appt.</span>
|
|
|
+ {{$nextAppt->pro->displayName()}}
|
|
|
+ <span class="text-secondary font-size-11">on</span>
|
|
|
+ {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
|
|
|
+ </div>
|
|
|
+ @if($nextAppt->status === 'PENDING') {{-- WIP: ALIX overhaul --}}
|
|
|
+ <div
|
|
|
+ class="text-warning-mellow font-weight-bold font-size-11 mt-1">
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>
|
|
|
+ Confirmation pending
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if($nextAppt->status === 'CONFIRMED')
|
|
|
+ <div class="text-success font-weight-bold font-size-11 mt-1">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ Confirmed by the patient
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if($nextAppt->status === 'CANCELLED')
|
|
|
+ <div class="text-danger font-weight-bold font-size-11 mt-1">
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
+ Cancelled
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <a href="#" class="ack-client-pro-change ml-3" data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+
|
|
|
+ @if(count($newNAAssociations))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
+ <p class="pt-1 mb-2"><b>New Patients</b></p>
|
|
|
+ @foreach($newNAAssociations as $assoc)
|
|
|
+ <div class="d-flex align-items-start bg-light mb-2 px-2 py-1">
|
|
|
+ <div class="flex-grow-1">
|
|
|
+ You are now the Care Coordinator for
|
|
|
+ <a href="/patients/view/{{$assoc->patient->uid}}"
|
|
|
+ class="">{{$assoc->patient->displayName()}}</a>
|
|
|
+ <?php $nextAppt = $assoc->patient->nextAppointment(); ?>
|
|
|
+ @if($nextAppt)
|
|
|
+ <div class="font-size-11">
|
|
|
+ <span class="text-secondary font-size-11">Appt.</span>
|
|
|
+ {{$nextAppt->pro->displayName()}}
|
|
|
+ <span class="text-secondary font-size-11">on</span>
|
|
|
+ {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
|
|
|
+ </div>
|
|
|
+ @if($nextAppt->status === 'PENDING') {{-- WIP: ALIX overhaul --}}
|
|
|
+ <div
|
|
|
+ class="text-warning-mellow font-weight-bold font-size-11 mt-1">
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>
|
|
|
+ Confirmation pending
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if($nextAppt->status === 'CONFIRMED')
|
|
|
+ <div class="text-success font-weight-bold font-size-11 mt-1">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ Confirmed by the patient
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if($nextAppt->status === 'CANCELLED')
|
|
|
+ <div class="text-danger font-weight-bold font-size-11 mt-1">
|
|
|
+ <i class="fa fa-stop"></i>
|
|
|
+ Cancelled
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <a href="#" class="ack-client-pro-change"
|
|
|
+ data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
+ </div>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ <div class="col-6">
|
|
|
+ @if(count($mcpClientMemos))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container table-responsive">
|
|
|
+ <p class="pt-1 mb-2"><b>New Patients Memos (MCP)</b></p>
|
|
|
+ <table class="table table-sm table-hover table-striped table-bordered">
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr>
|
|
|
+ <th class="border-bottom-0">Patient</th>
|
|
|
+ <th class="border-bottom-0">Memo</th>
|
|
|
+ <th class="border-bottom-0">Created</th>
|
|
|
+ <th class="border-bottom-0"></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach($mcpClientMemos as $memo)
|
|
|
+ <tr>
|
|
|
+ <td class="">
|
|
|
+ <a href="/patients/view/{{$memo->client_uid}}">{{$memo->name_first}} {{$memo->name_last}}</a>
|
|
|
+ </td>
|
|
|
+ <td>{!! $memo->content !!}</td>
|
|
|
+ <td class="text-nowrap">{{friendlier_date_time($memo->created_at)}}</td>
|
|
|
+ <td><a href="#" class="ack-client-memo"
|
|
|
+ data-uid="{{$memo->uid}}">Ack.</a></td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @if(count($naClientMemos))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container table-responsive">
|
|
|
+ <p class="pt-1 mb-2"><b>New Patients Memos (NA)</b></p>
|
|
|
+ <table class="table table-sm table-hover table-striped table-bordered">
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr>
|
|
|
+ <th class="border-bottom-0">Patient</th>
|
|
|
+ <th class="border-bottom-0">Memo</th>
|
|
|
+ <th class="border-bottom-0">Created</th>
|
|
|
+ <th class="border-bottom-0"></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach($naClientMemos as $memo)
|
|
|
+ <tr>
|
|
|
+ <td class="">
|
|
|
+ <a href="/patients/view/{{$memo->client_uid}}">{{$memo->name_first}} {{$memo->name_last}}</a>
|
|
|
+ </td>
|
|
|
+ <td>{!! $memo->content !!}</td>
|
|
|
+ <td class="text-nowrap">{{friendlier_date_time($memo->created_at)}}</td>
|
|
|
+ <td><a href="#" class="ack-client-memo"
|
|
|
+ data-uid="{{$memo->uid}}">Ack.</a></td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|