|
@@ -1,3 +1,38 @@
|
|
|
<?php
|
|
|
-$category = 'ROS';
|
|
|
-include resource_path('views/app/patient/segment-templates/_simple_text_segment/summary.php');
|
|
|
+
|
|
|
+use App\Models\Point;
|
|
|
+
|
|
|
+/** @var \App\Models\Client $patient */
|
|
|
+
|
|
|
+$aerobicActivity = Point::getOnlyPointOfCategory($patient, 'AEROBIC_ACTIVITY');
|
|
|
+$strengthTraining = Point::getOnlyPointOfCategory($patient, 'STRENGTH_TRAINING');
|
|
|
+$neat = Point::getOnlyPointOfCategory($patient, 'NEAT');
|
|
|
+
|
|
|
+$points = [
|
|
|
+ ["category" => 'AEROBIC_ACTIVITY', "name" => 'Aerobic Activity', "point" => $aerobicActivity],
|
|
|
+ ["category" => 'STRENGTH_TRAINING', "name" => 'Strength Training', "point" => $strengthTraining],
|
|
|
+ ["category" => 'NEAT', "name" => 'Non-Exercise Activity Time (NEAT)', "point" => $neat],
|
|
|
+];
|
|
|
+?>
|
|
|
+
|
|
|
+<?php foreach ($points as $p): ?>
|
|
|
+<?php $point = $p['point']; ?>
|
|
|
+<?php if(!!$point): ?>
|
|
|
+<?php $review = $point->lastChildReview; ?>
|
|
|
+<?php if ($review && @($review->data)) $review->data = json_decode($review->data); ?>
|
|
|
+<div class="mb-2">
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
+ <b><?= $p['name'] ?></b>
|
|
|
+ </div>
|
|
|
+ <?php if(!!$review): ?>
|
|
|
+ <div class="pl-3 mt-1 d-flex align-items-baseline">
|
|
|
+ <span class="text-secondary font-weight-bold mr-2">Subjective:</span>
|
|
|
+ <div class="inline-html-container">
|
|
|
+ <?php $review = $review->data; ?>
|
|
|
+ <?php include(resource_path('views/app/patient/segment-templates/_child_review/exercise/' . $p['category'] . '/view-review.php')); ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php endif; ?>
|
|
|
+</div>
|
|
|
+<?php endif; ?>
|
|
|
+<?php endforeach; ?>
|