Selaa lähdekoodia

Scheme change: {renderer}/[subjective/plan/...)

Vijayakrishnan 3 vuotta sitten
vanhempi
commit
4cda14382f

+ 0 - 0
resources/views/app/patient/module-specific-summary-renderers/intake_behavior/summary.blade.php → resources/views/app/patient/module-specific-summary-renderers/behavior/subjective.blade.php


+ 0 - 0
resources/views/app/patient/module-specific-summary-renderers/intake_exercise/summary.blade.php → resources/views/app/patient/module-specific-summary-renderers/exercise/subjective.blade.php


+ 0 - 14
resources/views/app/patient/module-specific-summary-renderers/intake_nutrition/summary.blade.php

@@ -1,14 +0,0 @@
-@foreach($points as $point)
-    <div class="d-flex align-items-start" data-uid="{{$point ? $point->uid : ''}}">
-        <b class="mr-2">{{ucwords(str_replace('_', ' ', strtolower($point->category)))}}</b>
-        <div class="flex-grow-1 ml-3">
-            @if($point)
-                <?php
-                include resource_path('views/app/patient/segment-templates/_child_review/last-review-flat.php');
-                ?>
-            @else
-                -
-            @endif
-        </div>
-    </div>
-@endforeach

+ 0 - 0
resources/views/app/patient/module-specific-summary-renderers/intake_generic/summary.blade.php → resources/views/app/patient/module-specific-summary-renderers/nutrition/subjective.blade.php


+ 16 - 16
resources/views/app/patient/segment-templates/omega_subjective_system/summary.blade.php

@@ -8,21 +8,21 @@ use App\Models\Point;
 $points = Point::getIntakePoints($patient, $note);
 
 $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 = [];
@@ -35,7 +35,7 @@ foreach($points as $point){
 
 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
 }