Răsfoiți Sursa

lsrx review ==> Summary UI

Vijayakrishnan 4 ani în urmă
părinte
comite
9a936b8c56

+ 56 - 56
resources/views/app/patient/canvas-sections/lifestyle_rx_review/form.blade.php

@@ -208,7 +208,7 @@ $formID = rand(0, 100000);
         </tr>
         </thead>
 
-        <tbody v-if="data['{{$sectionPro->uid}}']['adherence']['seated']['active'] || data['{{$sectionPro->uid}}']['adherence']['arm']['active'] || data['{{$sectionPro->uid}}']['adherence']['aquatic']['active']">
+        <tbody class="border-0" v-if="data['{{$sectionPro->uid}}']['adherence']['seated']['active'] || data['{{$sectionPro->uid}}']['adherence']['arm']['active'] || data['{{$sectionPro->uid}}']['adherence']['aquatic']['active']">
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['seated']['active']">
                 <td class="px-2 align-middle">
                     Seated Exercises
@@ -216,22 +216,22 @@ $formID = rand(0, 100000);
                 <td class="px-2 align-middle" v-html="data['{{$sectionPro->uid}}']['adherence']['seated']['memo']"></td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['seated']['adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['seated']['adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['seated']['adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['seated']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['seated']['adherence_memo']">
                 </td>
             </tr>
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['arm']['active']">
@@ -241,22 +241,22 @@ $formID = rand(0, 100000);
                 <td class="px-2 align-middle" v-html="data['{{$sectionPro->uid}}']['adherence']['arm']['memo']"></td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['arm']['adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['arm']['adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['arm']['adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['arm']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['arm']['adherence_memo']">
                 </td>
             </tr>
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['aquatic']['active']">
@@ -266,30 +266,30 @@ $formID = rand(0, 100000);
                 <td class="px-2 align-middle" v-html="data['{{$sectionPro->uid}}']['adherence']['aquatic']['memo']"></td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['aquatic']['adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['aquatic']['adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['aquatic']['adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['aquatic']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['aquatic']['adherence_memo']">
                 </td>
             </tr>
         </tbody>
 
-        <tbody v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['active']">
+        <tbody class="border-0" v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['active']">
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['active']">
                 <td class="px-2 align-middle">
-                    Walk
+                    Aerobic → Walk
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['intensity']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['intensity']"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['days_per_week']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['days_per_week'] + ' days/wk'"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['minutes_per_day']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['minutes_per_day'] + ' mins/days'"></span>
@@ -312,12 +312,12 @@ $formID = rand(0, 100000);
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['walk']['adherence_memo']">
                 </td>
             </tr>
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['active']">
                 <td class="px-2 align-middle">
-                    Jog
+                    Aerobic → Jog
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['intensity']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['intensity']"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['days_per_week']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['days_per_week'] + ' days/wk'"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['minutes_per_day']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['minutes_per_day'] + ' mins/days'"></span>
@@ -340,12 +340,12 @@ $formID = rand(0, 100000);
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['jog']['adherence_memo']">
                 </td>
             </tr>
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['active']">
                 <td class="px-2 align-middle">
-                    Elliptical
+                    Aerobic → Elliptical
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['intensity']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['intensity']"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['days_per_week']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['days_per_week'] + ' days/wk'"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['minutes_per_day']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['minutes_per_day'] + ' mins/days'"></span>
@@ -368,12 +368,12 @@ $formID = rand(0, 100000);
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['elliptical']['adherence_memo']">
                 </td>
             </tr>
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['active']">
                 <td class="px-2 align-middle">
-                    Swim
+                    Aerobic → Swim
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['intensity']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['intensity']"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['days_per_week']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['days_per_week'] + ' days/wk'"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['minutes_per_day']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['minutes_per_day'] + ' mins/days'"></span>
@@ -396,12 +396,12 @@ $formID = rand(0, 100000);
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['swim']['adherence_memo']">
                 </td>
             </tr>
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['active']">
                 <td class="px-2 align-middle">
-                    Bike
+                    Aerobic → Bike
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['intensity']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['intensity']"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['days_per_week']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['days_per_week'] + ' days/wk'"></span>
                     <span v-if="data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['minutes_per_day']" v-html="' / ' + data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['minutes_per_day'] + ' mins/days'"></span>
@@ -424,17 +424,17 @@ $formID = rand(0, 100000);
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['aerobic']['bike']['adherence_memo']">
                 </td>
             </tr>
         </tbody>
 
 
-        <tbody v-if="data['{{$sectionPro->uid}}']['adherence']['strength']['active']">
+        <tbody class="border-0" v-if="data['{{$sectionPro->uid}}']['adherence']['strength']['active']">
 
             <tr v-for="(exercise) in data['{{$sectionPro->uid}}']['adherence']['strength']['exercises']">
                 <td class="px-2 align-middle">
-                    <span v-html="exercise.name"></span>
+                    Strength → <span v-html="exercise.name"></span>
                     <span v-if="exercise.intensity" v-html="' / ' + exercise.intensity"></span>
                     <span v-if="exercise.reps" v-html="' / ' + exercise.reps + ' reps'"></span>
                     <span v-if="exercise.days_per_week" v-html="' / ' + exercise.days_per_week + ' days/wk'"></span>
@@ -442,150 +442,150 @@ $formID = rand(0, 100000);
                 <td class="px-2 align-middle" v-html="exercise['memo']"></td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="exercise['adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="exercise['adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="exercise['adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="exercise['adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="exercise['adherence_memo']">
                 </td>
             </tr>
         </tbody>
 
-        <tbody v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['active']">
+        <tbody class="border-0" v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['active']">
 
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['park_farther']">
                 <td class="px-2 align-middle" colspan="2">
-                    Park farther away from entrances
+                    NEAT → Park farther away from entrances
                 </td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['park_farther_adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['park_farther_adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['park_farther_adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['park_farther_adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['park_farther_adherence_memo']">
                 </td>
             </tr>
 
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_instead_of_elevator']">
                 <td class="px-2 align-middle" colspan="2">
-                    Take the stairs instead of escalator/elevator
+                    NEAT → Take the stairs instead of escalator/elevator
                 </td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence_memo']">
                 </td>
             </tr>
 
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['stand_instead_of_sit']">
                 <td class="px-2 align-middle" colspan="2">
-                    Stand instead of sit
+                    NEAT → Stand instead of sit
                 </td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence_memo']">
                 </td>
             </tr>
 
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day']">
                 <td class="px-2 align-middle" colspan="2">
-                    Steps goal / day: <b v-html="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day']"></b>
+                    NEAT → Steps goal / day: <b v-html="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day']"></b>
                 </td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day_adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day_adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day_adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day_adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['steps_goal_per_day_adherence_memo']">
                 </td>
             </tr>
 
             <tr v-if="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other']">
                 <td class="px-2 align-middle" colspan="2">
-                    Other: <b v-html="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other']"></b>
+                    NEAT → Other: <b v-html="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other']"></b>
                 </td>
                 <td class="px-2 align-middle">
                     <div class="d-flex align-items-center">
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other_adherence']" value="Yes">
                             <span class="ml-1">Yes</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other_adherence']" value="No">
                             <span class="ml-1">No</span>
                         </label>
-                        <label class="d-inline-flex align-items-center mr-3">
+                        <label class="d-inline-flex align-items-center mr-3 my-0">
                             <input type="radio" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other_adherence']" value="Other">
                             <span class="ml-1">Other</span>
                         </label>
                     </div>
                 </td>
                 <td class="px-0 align-middle">
-                    <input type="text" class="form-control form-control-sm" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other_adherence_memo']">
+                    <input type="text" class="form-control form-control-sm border-0" v-model="data['{{$sectionPro->uid}}']['adherence']['neat']['recommendations']['other_adherence_memo']">
                 </td>
             </tr>
 

+ 202 - 45
resources/views/app/patient/canvas-sections/lifestyle_rx_review/summary.php

@@ -29,53 +29,210 @@ if($contentData === false || !isset($contentData[$sectionPro->uid])) {
     <?php
 }
 else {
-    print_r($contentData);
-    // $lines = $contentData[$sectionPro->uid]['current_cch']['list'];
-    /*
+    $lsRxReview = $contentData[$sectionPro->uid];
     ?>
-    <p class="font-weight-bold mb-2">CC</p>
-    <table class="table table-sm table-bordered mb-2 table-edit-sheet">
-        <thead>
-        <tr class="bg-light">
-            <th class="px-2 py-1 text-secondary border-bottom-0 width-30px text-center">#</th>
-            <th class="px-2 py-1 text-secondary border-bottom-0 w-25">Category</th>
-            <th class="px-2 py-1 text-secondary border-bottom-0">Title</th>
-            <th class="px-2 py-1 text-secondary border-bottom-0">ICD</th>
-            <th class="px-2 py-1 text-secondary border-bottom-0 w-35">Memo</th>
-        </tr>
-        </thead>
-        <tbody class="bg-white">
-        <?php foreach($lines as $i => $line): ?>
-        <tr class="bg-white">
-            <td class="bg-white px-2 py-1 text-center text-sm font-weight-bold"><?= ++$i ?></td>
-            <td class="bg-white px-2 py-1"><?= ucwords($line['category']) ?></td>
-            <td class="bg-white px-2 py-1"><?= $line['name'] ?></td>
-            <td class="bg-white px-2 py-1"><?= $line['icd'] ?></td>
-            <td class="bg-white px-2 py-1"><?= $line['memo'] ?></td>
-        </tr>
-        <?php endforeach; ?>
-        </tbody>
-    </table>
-    <p class="font-weight-bold mb-2">HPI</p>
-    <table class="table table-sm table-bordered mb-2 table-edit-sheet">
-        <thead>
-        <tr class="bg-light">
-            <th class="px-2 py-1 text-secondary border-bottom-0 width-30px text-center">#</th>
-            <th class="px-2 py-1 text-secondary border-bottom-0 w-25">Issue</th>
-            <th class="px-2 py-1 text-secondary border-bottom-0">HPI</th>
-        </tr>
-        </thead>
-        <tbody class="bg-white">
-        <?php foreach($lines as $i => $line): ?>
-            <tr>
-                <td class="px-2 bg-white py-1 text-center text-sm font-weight-bold"><?= ++$i ?></td>
-                <td class="px-2 bg-white py-1"><?= ucwords($line['category']) ?><?= $line['name'] ? ' <span class="text-secondary on-hover-opaque">/</span> ' . $line['name'] : '' ?><?= $line['icd'] ? ' <span class="text-secondary on-hover-opaque">/</span> ' . $line['icd'] : ''?></td>
-                <td class="px-2 bg-white py-1"><?= $line['hpi']['free_text'] ?></td>
+    <p class="font-weight-bold text-secondary my-2">Current Physical Activity</p>
+    <p class="my-2">
+        <b><?= $lsRxReview['physical_activity']['type'] ?></b>
+        <?php if($lsRxReview['physical_activity']['frequency']): ?>
+            <span class="text-secondary">&nbsp;/&nbsp;<?= @$lsRxReview['physical_activity']['frequency'] ?></span>
+        <?php endif; ?>
+        <?php if($lsRxReview['physical_activity']['time']): ?>
+            <span class="text-secondary">&nbsp;/&nbsp;<?= @$lsRxReview['physical_activity']['time'] ?></span>
+        <?php endif; ?>
+        <?php if($lsRxReview['physical_activity']['intensity']): ?>
+            <span class="text-secondary">&nbsp;/&nbsp;<?= @$lsRxReview['physical_activity']['intensity'] ?></span>
+        <?php endif; ?>
+        <?php if($lsRxReview['physical_activity']['enjoyment']): ?>
+            <span class="text-secondary">&nbsp;/&nbsp;<?= @$lsRxReview['physical_activity']['enjoyment'] ?></span>
+        <?php endif; ?>
+    </p>
+    <p class="font-weight-bold text-secondary my-2">Barriers To Physical Activity: <?= @$lsRxReview['physical_activity']['barriers'] ?></p>
+    <p class="font-weight-bold text-secondary my-2">Assessment of Physical Activity Level: <?= @$lsRxReview['physical_activity']['assessment'] ?></p>
+    <p class="font-weight-bold text-secondary my-2">Lifestyle Rx Adherence</p>
+
+    <div class="pl-3 border-left mb-3">
+        <table class="table table-sm table-bordered mb-2 table-edit-sheet bg-white">
+            <thead>
+            <tr class="bg-light">
+                <th class="px-2 text-secondary border-bottom-0 width-100px text-nowrap">Lifestyle Rx</th>
+                <th class="px-2 text-secondary border-bottom-0 width-100px text-nowrap">Rx Memo</th>
+                <th class="px-2 text-secondary border-bottom-0 width-100px text-nowrap">Adherence</th>
+                <th class="px-2 text-secondary border-bottom-0 width-100px text-nowrap">Adherence Memo</th>
             </tr>
-        <?php endforeach; ?>
-        </tbody>
-    </table>
+            </thead>
+
+            <?php if ($lsRxReview['adherence']['seated']['active'] || $lsRxReview['adherence']['arm']['active'] || $lsRxReview['adherence']['aquatic']['active']): ?>
+                <tbody class="border-0">
+                <?php if ($lsRxReview['adherence']['seated']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">Seated Exercises</td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['seated']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['seated']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['seated']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['arm']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">Arm Exercises</td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['arm']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['arm']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['arm']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['aquatic']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">Aquatic Exercises</td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['aquatic']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['aquatic']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $lsRxReview['adherence']['aquatic']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                </tbody>
+            <?php endif; ?>
+
+            <?php if ($lsRxReview['adherence']['aerobic']['active']): ?>
+                <tbody class="border-0">
+                <?php if ($lsRxReview['adherence']['aerobic']['walk']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">
+                            Aerobic → Walk
+                            <?= @$lsRxReview['adherence']['aerobic']['walk']['intensity'] ? ' / ' . $lsRxReview['adherence']['aerobic']['walk']['intensity'] : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['walk']['days_per_week'] ? ' / ' . $lsRxReview['adherence']['aerobic']['walk']['days_per_week'] . ' days/wk' : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['walk']['minutes_per_day'] ? ' / ' . $lsRxReview['adherence']['aerobic']['walk']['minutes_per_day'] . ' mins/day' : '' ?>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['walk']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['walk']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['walk']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['aerobic']['jog']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">
+                            Aerobic → Jog
+                            <?= @$lsRxReview['adherence']['aerobic']['jog']['intensity'] ? ' / ' . $lsRxReview['adherence']['aerobic']['jog']['intensity'] : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['jog']['days_per_week'] ? ' / ' . $lsRxReview['adherence']['aerobic']['jog']['days_per_week'] . ' days/wk' : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['jog']['minutes_per_day'] ? ' / ' . $lsRxReview['adherence']['aerobic']['jog']['minutes_per_day'] . ' mins/day' : '' ?>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['jog']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['jog']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['jog']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['aerobic']['elliptical']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">
+                            Aerobic → Elliptical
+                            <?= @$lsRxReview['adherence']['aerobic']['elliptical']['intensity'] ? ' / ' . $lsRxReview['adherence']['aerobic']['elliptical']['intensity'] : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['elliptical']['days_per_week'] ? ' / ' . $lsRxReview['adherence']['aerobic']['elliptical']['days_per_week'] . ' days/wk' : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['elliptical']['minutes_per_day'] ? ' / ' . $lsRxReview['adherence']['aerobic']['elliptical']['minutes_per_day'] . ' mins/day' : '' ?>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['elliptical']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['elliptical']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['elliptical']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['aerobic']['swim']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">
+                            Aerobic → Swim
+                            <?= @$lsRxReview['adherence']['aerobic']['swim']['intensity'] ? ' / ' . $lsRxReview['adherence']['aerobic']['swim']['intensity'] : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['swim']['days_per_week'] ? ' / ' . $lsRxReview['adherence']['aerobic']['swim']['days_per_week'] . ' days/wk' : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['swim']['minutes_per_day'] ? ' / ' . $lsRxReview['adherence']['aerobic']['swim']['minutes_per_day'] . ' mins/day' : '' ?>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['swim']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['swim']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['swim']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['aerobic']['bike']['active']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">
+                            Aerobic → Bike
+                            <?= @$lsRxReview['adherence']['aerobic']['bike']['intensity'] ? ' / ' . $lsRxReview['adherence']['aerobic']['bike']['intensity'] : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['bike']['days_per_week'] ? ' / ' . $lsRxReview['adherence']['aerobic']['bike']['days_per_week'] . ' days/wk' : '' ?>
+                            <?= @$lsRxReview['adherence']['aerobic']['bike']['minutes_per_day'] ? ' / ' . $lsRxReview['adherence']['aerobic']['bike']['minutes_per_day'] . ' mins/day' : '' ?>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['bike']['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['bike']['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['aerobic']['bike']['adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                </tbody>
+            <?php endif; ?>
+
+            <?php if ($lsRxReview['adherence']['strength']['active']): ?>
+                <tbody class="border-0">
+                <?php foreach ($lsRxReview['adherence']['strength']['exercises'] as $exercise): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white">
+                            Strength → <?= @$exercise['name'] ?>
+                            <?= @$exercise['intensity'] ? ' / ' . $exercise['intensity'] : '' ?>
+                            <?= @$exercise['reps'] ? ' / ' . $exercise['reps'] . ' reps' : '' ?>
+                            <?= @$exercise['days_per_week'] ? ' / ' . $exercise['days_per_week'] . ' days/wk' : '' ?>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $exercise['memo'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $exercise['adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= $exercise['adherence_memo'] ?></td>
+                    </tr>
+                <?php endforeach; ?>
+                </tbody>
+            <?php endif; ?>
+
+            <?php if ($lsRxReview['adherence']['neat']['active']): ?>
+                <tbody class="border-0">
+                <?php if ($lsRxReview['adherence']['neat']['recommendations']['park_farther']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white" colspan="2">
+                            NEAT → Park farther away from entrances
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['park_farther_adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['park_farther_adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['neat']['recommendations']['steps_instead_of_elevator']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white" colspan="2">
+                            NEAT → Take the stairs instead of escalator/elevator
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['steps_instead_of_elevator_adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['neat']['recommendations']['stand_instead_of_sit']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white" colspan="2">
+                            NEAT → Stand instead of sit
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['stand_instead_of_sit_adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['neat']['recommendations']['steps_goal_per_day']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white" colspan="2">
+                            NEAT → Steps goal / day:
+                            <b><?= @$lsRxReview['adherence']['neat']['recommendations']['steps_goal_per_day'] ?></b>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['steps_goal_per_day_adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['steps_goal_per_day_adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                <?php if ($lsRxReview['adherence']['neat']['recommendations']['other']): ?>
+                    <tr>
+                        <td class="px-2 align-middle py-1 bg-white" colspan="2">
+                            NEAT → Other: <b><?= @$lsRxReview['adherence']['neat']['recommendations']['other'] ?></b>
+                        </td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['other_adherence'] ?></td>
+                        <td class="px-2 align-middle py-1 bg-white"><?= @$lsRxReview['adherence']['neat']['recommendations']['other_adherence_memo'] ?></td>
+                    </tr>
+                <?php endif; ?>
+                </tbody>
+            <?php endif; ?>
+
+        </table>
+    </div>
+
     <?php
-    */
 }
 ?>