|
@@ -1,14 +1,38 @@
|
|
-<?php if($point->lastChildReview): ?>
|
|
|
|
- <?php $parsedReview = json_decode($point->lastChildReview->data); ?>
|
|
|
|
- <div><?= $parsedReview->value ?></div>
|
|
|
|
- <div class="text-secondary text-sm"></div>
|
|
|
|
- <?php if($point->last_child_review_point_scoped_note_id === $note->id): ?>
|
|
|
|
- <span class="text-secondary text-sm">(reviewed on this note)</span>
|
|
|
|
|
|
+<?php
|
|
|
|
+if (!@$intakeOrVisit) {
|
|
|
|
+ $intakeOrVisit = 'INTAKE'; // default
|
|
|
|
+}
|
|
|
|
+?>
|
|
|
|
+<?php if ($intakeOrVisit === 'INTAKE'): ?>
|
|
|
|
+ <?php if ($point->lastChildReview): ?>
|
|
|
|
+ <?php $parsedReview = json_decode($point->lastChildReview->data); ?>
|
|
|
|
+ <div><?= $parsedReview->value ?></div>
|
|
|
|
+ <div class="text-secondary text-sm"></div>
|
|
|
|
+ <?php if ($point->last_child_review_point_scoped_note_id === $note->id): ?>
|
|
|
|
+ <span class="text-secondary 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 else: ?>
|
|
<?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>
|
|
|
|
|
|
+ <span class="text-secondary text-sm">None</span>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php else: ?>
|
|
<?php else: ?>
|
|
- <span class="text-secondary text-sm">None</span>
|
|
|
|
-<?php endif; ?>
|
|
|
|
|
|
+ <?php if ($point->lastChildPlan): ?>
|
|
|
|
+ <?php $parsedReview = json_decode($point->lastChildPlan->data); ?>
|
|
|
|
+ <div><?= $parsedReview->value ?></div>
|
|
|
|
+ <div class="text-secondary text-sm"></div>
|
|
|
|
+ <?php if ($point->last_child_plan_point_scoped_note_id === $note->id): ?>
|
|
|
|
+ <span class="text-secondary text-sm">(reviewed on this note)</span>
|
|
|
|
+ <?php else: ?>
|
|
|
|
+ <a native target="_blank"
|
|
|
|
+ href="<?= route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $point->lastChildPlanNote]) ?>">
|
|
|
|
+ <?= friendlier_date_time($point->last_child_plan_effective_date) ?>
|
|
|
|
+ </a>
|
|
|
|
+ <?php endif; ?>
|
|
|
|
+ <?php else: ?>
|
|
|
|
+ <span class="text-secondary text-sm">None</span>
|
|
|
|
+ <?php endif; ?>
|
|
|
|
+<?php endif; ?>
|