|
@@ -12,53 +12,56 @@ $plural = 'Care team members';
|
|
<?php if (!count($points)): ?>
|
|
<?php if (!count($points)): ?>
|
|
<div class="text-secondary">-</div>
|
|
<div class="text-secondary">-</div>
|
|
<?php else: ?>
|
|
<?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 $rel = $point->relevanceToNote($note); ?>
|
|
<?php $rel = $point->relevanceToNote($note); ?>
|
|
- <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)
|
|
@if($rel)
|
|
- <span class="text-info mr-1">
|
|
|
|
- <i class="fa fa-star"></i>
|
|
|
|
- </span>
|
|
|
|
<?php $numRelevant++; ?>
|
|
<?php $numRelevant++; ?>
|
|
|
|
+ {{ $j }}.*
|
|
|
|
+ @else
|
|
|
|
+ {{ $j }}.
|
|
@endif
|
|
@endif
|
|
- <div class="<?= $point->is_removed ? 'strike-through' : '' ?>">
|
|
|
|
- <b><?= !!@($point->data->name) ? @($point->data->name) : '-' ?></b>
|
|
|
|
- <?= !!@($point->data->specialty) ? '/ ' . @($point->data->specialty) . '' : '' ?>
|
|
|
|
- <?= !!@($point->data->organization) ? '/ ' . @($point->data->organization) . '' : '' ?><br>
|
|
|
|
- <?= !!@($point->data->phone) ? 'Ph: ' . @($point->data->phone) . '' : '' ?>
|
|
|
|
- <?= !!@($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 $review = $point->childReviewAddedInNote($note); ?>
|
|
|
|
- <?php if(!!$review): ?>
|
|
|
|
- <div class="pl-3 mt-1 d-flex align-items-baseline">
|
|
|
|
- <span class="text-secondary font-weight-bold mr-2">Subjective:</span>
|
|
|
|
- <span>{!! $review->data->value !!}</span>
|
|
|
|
|
|
+ </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) . '' : '' ?>
|
|
|
|
+ <?= !!@($point->data->organization) ? '/ ' . @($point->data->organization) . '' : '' ?><br>
|
|
|
|
+ <?= !!@($point->data->phone) ? 'Ph: ' . @($point->data->phone) . '' : '' ?>
|
|
|
|
+ <?= !!@($point->data->fax) ? ' / Fax: ' . @($point->data->fax) . '<br>' : '' ?>
|
|
|
|
+ <?= !!@($point->data->date) ? ' / Date: ' . @($point->data->date) : '' ?>
|
|
</div>
|
|
</div>
|
|
- <?php elseif($rel): ?>
|
|
|
|
- <div class="relevant-without-review text-warning-mellow mt-1 text-sm" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>"><i class="fa fa-exclamation-triangle mr-1"></i>Subjective missing</div>
|
|
|
|
- <?php endif; ?>
|
|
|
|
- </div>
|
|
|
|
|
|
+ </td>
|
|
|
|
+ <td class="px-2" style="max-width:300px;">
|
|
|
|
+ <div>
|
|
|
|
+ <?php $review = $point->childReviewAddedInNote($note); ?>
|
|
|
|
+ <?php if(!!$review): ?>
|
|
|
|
+ <div class="pl-3 mt-1 d-flex align-items-baseline">
|
|
|
|
+ <span>{!! $review->data->value !!}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <?php elseif($rel): ?>
|
|
|
|
+ <div class="relevant-without-review text-warning-mellow mt-1 text-sm" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>"><i class="fa fa-exclamation-triangle mr-1"></i>Subjective 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; ?>
|
|
<?php endforeach; ?>
|
|
- @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
|
|
|
|
|
|
+ </table>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|