|
@@ -17,6 +17,8 @@ else {
|
|
|
}
|
|
|
|
|
|
$numRelevant = 0;
|
|
|
+
|
|
|
+$numRelevantWithICD = 0;
|
|
|
?>
|
|
|
|
|
|
<?php if (!count($problems)): ?>
|
|
@@ -31,6 +33,9 @@ $numRelevant = 0;
|
|
|
<i class="fa fa-star"></i>
|
|
|
</span>
|
|
|
<?php $numRelevant++; ?>
|
|
|
+ @if(!!@($problem->data->icd) && !$problem->is_removed)
|
|
|
+ <?php $numRelevantWithICD++; ?>
|
|
|
+ @endif
|
|
|
@endif
|
|
|
<div class="<?= $problem->is_removed ? 'strike-through' : '' ?> <?= !in_array($problem->uid, $relevance) ? 'on-hover-opaque' : '' ?>">
|
|
|
<b><?= !!@($problem->data->name) ? @($problem->data->name) : '-' ?></b>
|
|
@@ -57,8 +62,10 @@ $numRelevant = 0;
|
|
|
<div class="text-secondary font-weight-bold">Plan</div>
|
|
|
<div>{!! $review->data->value !!}</div>
|
|
|
</div>
|
|
|
- <?php elseif(in_array($problem->uid, $relevance)): ?>
|
|
|
- <div class="relevant-without-plan block-signing text-danger mt-1" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>"><i class="fa fa-exclamation-triangle mr-1"></i>Plan missing</div>
|
|
|
+ <?php elseif(in_array($problem->uid, $relevance) && !$problem->is_removed): ?>
|
|
|
+ <div class="relevant-without-plan block-signing text-danger 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>
|
|
|
<?php endforeach; ?>
|
|
@@ -68,5 +75,8 @@ $numRelevant = 0;
|
|
|
<span class="text-sm">Problems relevant to this note</span>
|
|
|
</div>
|
|
|
@endif
|
|
|
+ @if(!$numRelevantWithICD)
|
|
|
+ <div class="no-relevant-with-icd block-signing text-danger mt-1 text-sm" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>"><i class="fa fa-exclamation-triangle mr-1"></i>Need at least 1 relevant problem with an ICD before the note can be signed</div>
|
|
|
+ @endif
|
|
|
<?php endif; ?>
|
|
|
|