|
@@ -18,6 +18,7 @@ $numRelevantWithICD = 0;
|
|
|
<?php if($problem->is_removed && $problem->is_removed_due_to_entry_error) continue; ?>
|
|
|
<?php $rel = $problem->relevanceToNote($note); ?>
|
|
|
<?php $review = $problem->childPlanAddedInNote($note); ?>
|
|
|
+ <?php $hpi = $problem->childReviewAddedInNote($note); ?>
|
|
|
|
|
|
<!--show only if: relevant || added-in-note || removed-in-note || added-plan-in-note-->
|
|
|
@if($rel ||
|
|
@@ -34,7 +35,7 @@ $numRelevantWithICD = 0;
|
|
|
<i class="fa fa-star"></i>
|
|
|
</span>
|
|
|
<?php $numRelevant++; ?>
|
|
|
- @if(!!@($problem->data->icd) && !$problem->is_removed)
|
|
|
+ @if(!!@($problem->data->icd) && !!$hpi)
|
|
|
<?php $numRelevantWithICD++; ?>
|
|
|
@endif
|
|
|
@endif
|
|
@@ -57,6 +58,16 @@ $numRelevantWithICD = 0;
|
|
|
<?php endif;?>
|
|
|
<?php endif; ?>
|
|
|
</div>
|
|
|
+ <?php if(!!$hpi): ?>
|
|
|
+ <div class="pl-3 mt-1">
|
|
|
+ <div class="text-secondary font-weight-bold">HPI</div>
|
|
|
+ <div>{!! $hpi->data->value !!}</div>
|
|
|
+ </div>
|
|
|
+ <?php elseif($rel): ?>
|
|
|
+ <div class="relevant-without-review block-signing text-danger text-sm mt-1" data-target-segment="<?= $segment->segmentTemplate->internal_name ?>">
|
|
|
+ <i class="fa fa-exclamation-triangle mr-1"></i>HPI missing
|
|
|
+ </div>
|
|
|
+ <?php endif; ?>
|
|
|
<?php if(!!$review): ?>
|
|
|
<div class="pl-3 mt-1">
|
|
|
<div class="text-secondary font-weight-bold">Plan</div>
|
|
@@ -82,7 +93,7 @@ $numRelevantWithICD = 0;
|
|
|
</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>
|
|
|
+ <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 ICD) with associated HPI before the note can be signed</div>
|
|
|
@endif
|
|
|
<?php endif; ?>
|
|
|
|