|
@@ -2,6 +2,27 @@
|
|
|
|
|
|
@section('content')
|
|
@section('content')
|
|
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $showProgramsColumn = false;
|
|
|
|
+ foreach($patients as $patient) {
|
|
|
|
+ if(count($patient->clientPrograms)) {
|
|
|
|
+ if($pro->pro_type === 'ADMIN') {
|
|
|
|
+ $showProgramsColumn = true;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ foreach($patient->clientPrograms as $clientProgram) {
|
|
|
|
+ if(in_array($pro->id, [$clientProgram->mcp_pro_id, $clientProgram->manager_pro_id])) {
|
|
|
|
+ $showProgramsColumn = true;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if($showProgramsColumn) break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+
|
|
<div class="p-3 mcp-theme-1">
|
|
<div class="p-3 mcp-theme-1">
|
|
<div class="card">
|
|
<div class="card">
|
|
|
|
|
|
@@ -19,11 +40,11 @@
|
|
<table class="table table-condensed p-0 m-0">
|
|
<table class="table table-condensed p-0 m-0">
|
|
<thead class="bg-light">
|
|
<thead class="bg-light">
|
|
<tr>
|
|
<tr>
|
|
- <th></th>
|
|
|
|
|
|
+ <th class="border-0"></th>
|
|
<th class="px-3 border-0">#</th>
|
|
<th class="px-3 border-0">#</th>
|
|
<th class="border-0">Patient</th>
|
|
<th class="border-0">Patient</th>
|
|
<th class="border-0">Created At</th>
|
|
<th class="border-0">Created At</th>
|
|
- <th class="border-0">Program(s)</th>
|
|
|
|
|
|
+ @if($showProgramsColumn)<th class="border-0">Program(s)</th>@endif
|
|
<th class="border-0">MCN</th>
|
|
<th class="border-0">MCN</th>
|
|
<th class="border-0">PCP</th>
|
|
<th class="border-0">PCP</th>
|
|
{{--<th class="border-0">RMM</th>--}}
|
|
{{--<th class="border-0">RMM</th>--}}
|
|
@@ -47,12 +68,16 @@
|
|
<div>{{ friendly_date_time($patient->dob, false) }}{{ $patient->sex === 'M' ? ', Male' : ($patient->sex === ', F' ? 'Female' : '') }}</div>
|
|
<div>{{ friendly_date_time($patient->dob, false) }}{{ $patient->sex === 'M' ? ', Male' : ($patient->sex === ', F' ? 'Female' : '') }}</div>
|
|
</td>
|
|
</td>
|
|
<td>{{friendly_date_time_short_with_tz($patient->created_at, true, 'EASTERN')}}</td>
|
|
<td>{{friendly_date_time_short_with_tz($patient->created_at, true, 'EASTERN')}}</td>
|
|
|
|
+ @if($showProgramsColumn)
|
|
<td>
|
|
<td>
|
|
<?php $programNumber = 0; ?>
|
|
<?php $programNumber = 0; ?>
|
|
@foreach($patient->clientPrograms as $clientProgram)
|
|
@foreach($patient->clientPrograms as $clientProgram)
|
|
<?php
|
|
<?php
|
|
- $program = $clientProgram->program;
|
|
|
|
- $programNumber++;
|
|
|
|
|
|
+ if($pro->pro_type === 'ADMIN' ||
|
|
|
|
+ in_array($pro->id, [$clientProgram->mcp_pro_id, $clientProgram->manager_pro_id])
|
|
|
|
+ ) {
|
|
|
|
+ $program = $clientProgram->program;
|
|
|
|
+ $programNumber++;
|
|
?>
|
|
?>
|
|
<div class="mb-1 text-nowrap">
|
|
<div class="mb-1 text-nowrap">
|
|
{{ $programNumber }}. {{ $program->title }}
|
|
{{ $programNumber }}. {{ $program->title }}
|
|
@@ -62,11 +87,10 @@
|
|
<span title="Onboarding Complete" class="ml-1 text-secondary"><i class="fa fa-check"></i></span>
|
|
<span title="Onboarding Complete" class="ml-1 text-secondary"><i class="fa fa-check"></i></span>
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
+ <?php } ?>
|
|
@endforeach
|
|
@endforeach
|
|
- @if(!count($patient->clientPrograms))
|
|
|
|
- -
|
|
|
|
- @endif
|
|
|
|
</td>
|
|
</td>
|
|
|
|
+ @endif
|
|
<td>
|
|
<td>
|
|
@if($patient->was_medicare_validation_successful && $patient->is_part_b_primary == 'YES')
|
|
@if($patient->was_medicare_validation_successful && $patient->is_part_b_primary == 'YES')
|
|
Covered <span style="color:green"><i class="fa fa-check-circle"></i></span>
|
|
Covered <span style="color:green"><i class="fa fa-check-circle"></i></span>
|