|
@@ -400,152 +400,186 @@
|
|
|
|
|
|
<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
|
|
|
+ @if(request()->input('mcpas'))
|
|
|
+ @if(count($newMCPAssociations))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
+ <div class="d-flex align-items-baseline pt-1 mb-2">
|
|
|
+ <p class=""><b>New Patients</b></p>
|
|
|
+ <a href="/" class="ml-auto">Close</a>
|
|
|
+ </div>
|
|
|
+ @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
|
|
|
- @endif
|
|
|
+ </div>
|
|
|
+ <a href="#" class="ack-client-pro-change ml-3" data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
</div>
|
|
|
- <a href="#" class="ack-client-pro-change ml-3" data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- </div>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @else
|
|
|
+ @if(!!$newMCPAssociations)
|
|
|
+ <a href="/?mcpas=1" class="d-block mb-2">You have <b>{{$newMCPAssociations}}</b> new MCP association{{$newMCPAssociations === 1 ? '' : 's'}}</a>
|
|
|
+ @endif
|
|
|
@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 --}}
|
|
|
+ @if(request()->input('naas'))
|
|
|
+ @if(count($newNAAssociations))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container">
|
|
|
+ <div class="d-flex align-items-baseline pt-1 mb-2">
|
|
|
+ <p class=""><b>New Patients</b></p>
|
|
|
+ <a href="/" class="ml-auto">Close</a>
|
|
|
+ </div>
|
|
|
+ @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">
|
|
|
+ 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
|
|
|
- @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>
|
|
|
- <a href="#" class="ack-client-pro-change"
|
|
|
- data-uid="{{$assoc->uid}}">Ack.</a>
|
|
|
- </div>
|
|
|
- @endforeach
|
|
|
- </div>
|
|
|
+ @endforeach
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @else
|
|
|
+ @if(!!$newNAAssociations)
|
|
|
+ <a href="/?naas=1" class="d-block">You have <b>{{$newNAAssociations}}</b> new NA association{{$newNAAssociations === 1 ? '' : 's'}}</a>
|
|
|
+ @endif
|
|
|
@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)
|
|
|
+ @if(request()->input('mcpcm'))
|
|
|
+ @if(count($mcpClientMemos))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container table-responsive">
|
|
|
+ <div class="d-flex align-items-baseline pt-1 mb-2">
|
|
|
+ <p class=""><b>New Patients Memos (MCP)</b></p>
|
|
|
+ <a href="/" class="ml-auto">Close</a>
|
|
|
+ </div>
|
|
|
+ <table class="table table-sm table-hover table-striped table-bordered">
|
|
|
+ <thead class="bg-light">
|
|
|
<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>
|
|
|
+ <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>
|
|
|
- @endforeach
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
+ </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
|
|
|
+ @else
|
|
|
+ @if($mcpClientMemos[0]->count)
|
|
|
+ <a href="/?mcpcm=1" class="d-block mb-2">You have <b>{{$mcpClientMemos[0]->count}}</b> new MCP client memo{{$mcpClientMemos[0]->count === 1 ? '' : 's'}}</a>
|
|
|
+ @endif
|
|
|
@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>
|
|
|
+ @if(request()->input('nacm'))
|
|
|
+ @if(count($naClientMemos))
|
|
|
+ <div class="mb-3 border rounded px-3 py-2 ack-container table-responsive">
|
|
|
+ <div class="d-flex align-items-baseline pt-1 mb-2">
|
|
|
+ <p class=""><b>New Patients Memos (NA)</b></p>
|
|
|
+ <a href="/" class="ml-auto">Close</a>
|
|
|
+ </div>
|
|
|
+ <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
|
|
|
+ @else
|
|
|
+ @if($naClientMemos[0]->count)
|
|
|
+ <a href="/?nacm=1" class="d-block mb-2">You have <b>{{$naClientMemos[0]->count}}</b> new MCP client memo{{$naClientMemos[0]->count === 1 ? '' : 's'}}</a>
|
|
|
+ @endif
|
|
|
@endif
|
|
|
</div>
|
|
|
</div>
|