|
@@ -13,20 +13,23 @@ $plural = 'Care team members';
|
|
|
<?php if (!count($points)): ?>
|
|
|
<div class="text-secondary">-</div>
|
|
|
<?php else: ?>
|
|
|
- <?php foreach ($points as $point): ?>
|
|
|
+ <table class="table table-bordered table-xs table-cage mb-0">
|
|
|
+ <?php $j = 0; foreach ($points as $point): $j++; ?>
|
|
|
<?php if($point->is_removed && $point->is_removed_due_to_entry_error) continue; ?>
|
|
|
<?php $rel = $point->relevanceToNote($note); ?>
|
|
|
<?php $plan = $point->lastChildPlan; ?>
|
|
|
<?php if($plan && @($plan->data)) $plan->data = json_decode($plan->data); ?>
|
|
|
<?php $numVisible++; ?>
|
|
|
- <div class="mb-2">
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
+ <tr>
|
|
|
+ <td class="fit px-2 {{ $rel ? 'font-weight-bold text-info':'' }}">
|
|
|
@if($rel)
|
|
|
- <span class="text-info mr-1">
|
|
|
- <i class="fa fa-star"></i>
|
|
|
- </span>
|
|
|
<?php $numRelevant++; ?>
|
|
|
+ {{ $j }}.*
|
|
|
+ @else
|
|
|
+ {{ $j }}.
|
|
|
@endif
|
|
|
+ </td>
|
|
|
+ <td class="px-2" style="max-width: 300px;">
|
|
|
<div class="<?= $point->is_removed ? 'strike-through' : '' ?>">
|
|
|
<b><?= !!@($point->data->name) ? @($point->data->name) : '-' ?></b>
|
|
|
<?= !!@($point->data->specialty) ? '/ ' . @($point->data->specialty) . '' : '' ?>
|
|
@@ -35,39 +38,39 @@ $plural = 'Care team members';
|
|
|
<?= !!@($point->data->fax) ? ' / Fax: ' . @($point->data->fax) . '<br>' : '' ?>
|
|
|
<?= !!@($point->data->date) ? ' / Date: ' . @($point->data->date) : '' ?>
|
|
|
</div>
|
|
|
- <?php if ($point->is_removed): ?>
|
|
|
- @if($point->removal_reason_category === 'DURING_VISIT')
|
|
|
- <span class="ml-2 text-sm text-secondary">Removed during visit</span>
|
|
|
- @elseif($point->removal_reason_category === 'ON_INTAKE')
|
|
|
- <span class="ml-2 text-sm text-secondary">Removed on intake</span>
|
|
|
- @endif
|
|
|
- <?php elseif ($point->added_in_note_id === $note->id): ?>
|
|
|
- <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
|
|
|
- <span class="ml-2 text-sm text-success">* Added during visit</span>
|
|
|
- <?php else: ?>
|
|
|
- <span class="ml-2 text-sm text-info">* Added on intake</span>
|
|
|
- <?php endif;?>
|
|
|
- <?php endif; ?>
|
|
|
- </div>
|
|
|
- <?php if(!!$plan): ?>
|
|
|
- <div class="pl-3 mt-1 d-flex align-items-baseline">
|
|
|
- <span class="text-secondary font-weight-bold mr-2">Plan:</span>
|
|
|
- <span>{!! $plan->data->value !!}</span>
|
|
|
- </div>
|
|
|
- <?php elseif($rel): ?>
|
|
|
- <div class="relevant-without-plan text-warning-mellow text-sm mt-1" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>"><i class="fa fa-exclamation-triangle mr-1"></i>Plan missing</div>
|
|
|
- <?php endif; ?>
|
|
|
- </div>
|
|
|
+ </td>
|
|
|
+ <td class="px-2" style="max-width:300px;">
|
|
|
+ <div>
|
|
|
+ <?php if(!!$plan): ?>
|
|
|
+ <div class="pl-3 mt-1 d-flex align-items-baseline">
|
|
|
+ <span>{!! $plan->data->value !!}</span>
|
|
|
+ </div>
|
|
|
+ <?php elseif($rel): ?>
|
|
|
+ <div class="relevant-without-plan text-warning-mellow text-sm mt-1" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>"><i class="fa fa-exclamation-triangle mr-1"></i>Plan missing</div>
|
|
|
+ <?php endif; ?>
|
|
|
+ </div>
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
+ <?php if ($point->is_removed): ?>
|
|
|
+ @if($point->removal_reason_category === 'DURING_VISIT')
|
|
|
+ <span class="ml-2 text-sm text-secondary">Removed during visit</span>
|
|
|
+ @elseif($point->removal_reason_category === 'ON_INTAKE')
|
|
|
+ <span class="ml-2 text-sm text-secondary">Removed on intake</span>
|
|
|
+ @endif
|
|
|
+ <?php elseif ($point->added_in_note_id === $note->id): ?>
|
|
|
+ <?php if ($point->addition_reason_category === 'DURING_VISIT'): ?>
|
|
|
+ <span class="ml-2 text-sm text-success">* Added during visit</span>
|
|
|
+ <?php else: ?>
|
|
|
+ <span class="ml-2 text-sm text-info">* Added on intake</span>
|
|
|
+ <?php endif;?>
|
|
|
+ <?php endif; ?>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<?php endforeach; ?>
|
|
|
+ </table>
|
|
|
@if(!$numVisible)
|
|
|
<div class="d-flex align-items-baseline mr-1">
|
|
|
<span class="text-secondary">-</span>
|
|
|
</div>
|
|
|
@endif
|
|
|
- @if($numRelevant)
|
|
|
- <div class="d-flex align-items-baseline text-info mr-1 mt-3">
|
|
|
- <span class="text-sm mr-1"><i class="fa fa-star text-sm"></i></span>
|
|
|
- <span class="text-sm">{{$plural}} relevant to this note</span>
|
|
|
- </div>
|
|
|
- @endif
|
|
|
<?php endif; ?>
|