|
@@ -8,21 +8,21 @@ use App\Models\Point;
|
|
$points = Point::getIntakePoints($patient, $note);
|
|
$points = Point::getIntakePoints($patient, $note);
|
|
|
|
|
|
$topLevelPointToRendererMap = [
|
|
$topLevelPointToRendererMap = [
|
|
- 'HIGH_SUGAR_BEVERAGES' => 'intake_nutrition',
|
|
|
|
- 'WATER_INTAKE' => 'intake_nutrition',
|
|
|
|
- 'FAST_FOOD' => 'intake_nutrition',
|
|
|
|
- 'SNACKS' => 'intake_nutrition',
|
|
|
|
- 'VEGETABLES' => 'intake_nutrition',
|
|
|
|
- 'PORTION_SIZES' => 'intake_nutrition',
|
|
|
|
- 'DAILY_INTAKE_CARBOHYDRATES' => 'intake_nutrition',
|
|
|
|
- 'DAILY_INTAKE_CALORIES' => 'intake_nutrition',
|
|
|
|
- 'AEROBIC_ACTIVITY' => 'intake_exercise',
|
|
|
|
- 'STRENGTH_TRAINING' => 'intake_exercise',
|
|
|
|
- 'NEAT,' => 'intake_exercise',
|
|
|
|
- 'SELF_MONITORING' => 'intake_behavior',
|
|
|
|
- 'FOOD_TRIGGERS' => 'intake_behavior',
|
|
|
|
- 'CRAVINGS' => 'intake_behavior',
|
|
|
|
- 'SLEEP_HABITS' => 'intake_behavior',
|
|
|
|
|
|
+ 'HIGH_SUGAR_BEVERAGES' => 'nutrition',
|
|
|
|
+ 'WATER_INTAKE' => 'nutrition',
|
|
|
|
+ 'FAST_FOOD' => 'nutrition',
|
|
|
|
+ 'SNACKS' => 'nutrition',
|
|
|
|
+ 'VEGETABLES' => 'nutrition',
|
|
|
|
+ 'PORTION_SIZES' => 'nutrition',
|
|
|
|
+ 'DAILY_INTAKE_CARBOHYDRATES' => 'nutrition',
|
|
|
|
+ 'DAILY_INTAKE_CALORIES' => 'nutrition',
|
|
|
|
+ 'AEROBIC_ACTIVITY' => 'exercise',
|
|
|
|
+ 'STRENGTH_TRAINING' => 'exercise',
|
|
|
|
+ 'NEAT,' => 'exercise',
|
|
|
|
+ 'SELF_MONITORING' => 'behavior',
|
|
|
|
+ 'FOOD_TRIGGERS' => 'behavior',
|
|
|
|
+ 'CRAVINGS' => 'behavior',
|
|
|
|
+ 'SLEEP_HABITS' => 'behavior',
|
|
];
|
|
];
|
|
|
|
|
|
$pointMap = [];
|
|
$pointMap = [];
|
|
@@ -35,7 +35,7 @@ foreach($points as $point){
|
|
|
|
|
|
foreach ($pointMap as $category => $points) {
|
|
foreach ($pointMap as $category => $points) {
|
|
?>
|
|
?>
|
|
- @include('app.patient.module-specific-summary-renderers.' . $topLevelPointToRendererMap[$category] . '.summary', compact('points'))
|
|
|
|
|
|
+ @include('app.patient.module-specific-summary-renderers.' . $topLevelPointToRendererMap[$category] . '.subjective', compact('points'))
|
|
<?php
|
|
<?php
|
|
}
|
|
}
|
|
|
|
|