|
@@ -1,66 +1,19 @@
|
|
|
<?php if ($point->lastChildReview): ?>
|
|
|
- <?php $parsedReview = json_decode($point->lastChildReview->data); ?>
|
|
|
- <div class="border px-2 py-1 bg-light">
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">Explain the problem.</label>
|
|
|
- <div class="ml-2" data-name="problem_explanation"><?= $parsedReview ? @$parsedReview->problem_explanation : '' ?></div>
|
|
|
- </div>
|
|
|
- <?php if ($point->lastChildReview && $point->last_child_review_point_scoped_note_id !== $note->id): ?>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">What happened between today and our last visit?</label>
|
|
|
- <div class="ml-2" data-name="events_between_last_visit_and_this"><?= $parsedReview ? @$parsedReview->events_between_last_visit_and_this : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">How did it go with the plan I gave you?</label>
|
|
|
- <div class="ml-2" data-name="current_plan_status"><?= $parsedReview ? @$parsedReview->current_plan_status : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">What barriers have you felt following the plan?</label>
|
|
|
- <div class="ml-2" data-name="barriers_following_current_plan"><?= $parsedReview ? @$parsedReview->barriers_following_current_plan : '' ?></div>
|
|
|
- </div>
|
|
|
+ <?php
|
|
|
+ $review = json_decode($point->lastChildReview->data);
|
|
|
+ include resource_path('views/app/patient/segment-templates/_review/problem/view.php');
|
|
|
+ ?>
|
|
|
+ <div class="mb-2">
|
|
|
+ <?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: ?>
|
|
|
+ <span class="text-sm">Reviewed on:</span>
|
|
|
+ <a native target="_blank" class="text-sm"
|
|
|
+ href="<?= route('patients.view.notes.view.dashboard', ['patient' => $patient, 'note' => $point->lastChildReviewNote]) ?>">
|
|
|
+ <?= friendlier_date_time($point->last_child_review_effective_date) ?>
|
|
|
+ </a>
|
|
|
<?php endif; ?>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">How long have you had this?</label>
|
|
|
- <div class="ml-2" data-name="how_long"><?= $parsedReview ? @$parsedReview->how_long : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">When does it get worse?</label>
|
|
|
- <div class="ml-2" data-name="when_worse"><?= $parsedReview ? @$parsedReview->when_worse : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">When does it get better?</label>
|
|
|
- <div class="ml-2" data-name="when_better"><?= $parsedReview ? @$parsedReview->when_better : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">What have you done for treatment?</label>
|
|
|
- <div class="ml-2" data-name="treatments_done"><?= $parsedReview ? @$parsedReview->treatments_done : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">How does it affect your ADLs?</label>
|
|
|
- <div class="ml-2" data-name="how_it_affects_ADLs"><?= $parsedReview ? @$parsedReview->how_it_affects_ADLs : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">How do you cope?</label>
|
|
|
- <div class="ml-2" data-name="how_cope"><?= $parsedReview ? @$parsedReview->how_cope : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="mb-1">
|
|
|
- <label class="text-secondary text-sm mb-0">How does this affect you emotionally?</label>
|
|
|
- <div class="ml-2" data-name="how_affect_emotionally"><?= $parsedReview ? @$parsedReview->how_affect_emotionally : '' ?></div>
|
|
|
- </div>
|
|
|
- <div class="">
|
|
|
- <label class="text-secondary text-sm mb-0">Memo</label>
|
|
|
- <div class="ml-2" data-name="memo"><?= $parsedReview ? @$parsedReview->memo : '' ?></div>
|
|
|
- </div>
|
|
|
</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: ?>
|
|
|
<span class="text-secondary text-sm">None</span>
|
|
|
<?php endif; ?>
|