|
@@ -2,14 +2,20 @@
|
|
|
<?php $parsedReview = json_decode($point->lastChildReview->data); ?>
|
|
|
<div class="<?= $point->last_child_review_point_scoped_note_id === $note->id ? 'bg-warning-mellow p-2 rounded' : '' ?>">
|
|
|
<div><?= @$parsedReview->value ?></div>
|
|
|
- <?php if ($point->last_child_review_point_scoped_note_id === $note->id): ?>
|
|
|
- <span class="text-sm">(reviewed on this note)</span>
|
|
|
+
|
|
|
+ <?php if ($point->last_child_review_point_scoped_note_id === $patient->core_note_id): ?>
|
|
|
+ <span class="text-sm">(reviewed on the patient's chart)</span>
|
|
|
<?php else: ?>
|
|
|
- <a native target="_blank"
|
|
|
- href="<?= route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $point->lastChildReviewNote]) ?>">
|
|
|
- <?= friendlier_date_time($point->last_child_review_effective_date) ?>
|
|
|
- </a>
|
|
|
+ <?php if ($point->last_child_review_point_scoped_note_id === $note->id): ?>
|
|
|
+ <span class="text-sm">(reviewed on this note)</span>
|
|
|
+ <?php else: ?>
|
|
|
+ <a native target="_blank"
|
|
|
+ href="<?= route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $point->lastChildReviewNote]) ?>">
|
|
|
+ <?= friendlier_date_time($point->last_child_review_effective_date) ?>
|
|
|
+ </a>
|
|
|
+ <?php endif; ?>
|
|
|
<?php endif; ?>
|
|
|
+
|
|
|
</div>
|
|
|
<?php else: ?>
|
|
|
<span class="text-secondary text-sm">None</span>
|