Samson Mutunga 3 anni fa
parent
commit
54d6602936

+ 21 - 21
resources/views/app/patient/segment-templates/covid_intake/summary.blade.php

@@ -192,9 +192,9 @@ if (!!@$point->data) {
             <li>You'll never get a bill or anything.</li>
         </ul>
     </div>
-    @if($contentData['ans_has_worked_with_an_np_before_expl_feedback'] == 'yes')
+    @if(@$contentData['ans_has_worked_with_an_np_before_expl_feedback'] == 'yes')
     <?= segment_template_summary_value_display('Patient verbalized understanding.') ?>
-    @elseif($contentData['ans_has_worked_with_an_np_before_expl_feedback'] == 'no')
+    @elseif(@$contentData['ans_has_worked_with_an_np_before_expl_feedback'] == 'no')
     <?= segment_template_summary_value_display('Patient verbalized lack of understanding.') ?>
     @else
     <?= segment_template_summary_value_display('') ?>
@@ -265,9 +265,9 @@ if (!!@$point->data) {
 
         <div class="mb-2">
             <label class="mb-1">Asked patient if they have heard that normal body temperature is 98.6 F?. To which they responded:</label>
-            @if($contentData['ans_normal_temp_is_986'] == 'yes')
+            @if(@$contentData['ans_normal_temp_is_986'] == 'yes')
             <?= segment_template_summary_value_display('Yes') ?>
-            @elseif($contentData['ans_normal_temp_is_986'] == 'no')
+            @elseif(@$contentData['ans_normal_temp_is_986'] == 'no')
             <?= segment_template_summary_value_display('No') ?>
             @else
             <?= segment_template_summary_value_display('') ?>
@@ -285,11 +285,11 @@ if (!!@$point->data) {
             <li>So if someone with a baseline temperature of 97.7 measures in at 98.6, it could mean that <b>they’re not actually normal</b> - in fact they are starting to run a fever!</li>
         </ul>
     </div>
-    @if($contentData['ans_baseline_expl_feedback_1'] == 'yes')
+    @if(@$contentData['ans_baseline_expl_feedback_1'] == 'yes')
     <div class="mb-2">
         <?= segment_template_summary_value_display('Patient verbalized understanding.') ?>
     </div>
-    @elseif($contentData['ans_baseline_expl_feedback_1'] == 'no')
+    @elseif(@$contentData['ans_baseline_expl_feedback_1'] == 'no')
     <div class="mb-2">
         <?= segment_template_summary_value_display('Patient verbalized lack of understanding.') ?>
     </div>
@@ -301,9 +301,9 @@ if (!!@$point->data) {
 
     <div class="mt-3 mb-2">
         <label><b>Explained to patient that the numbers they read on self-monitoring equipment mean different things to different people.</b> So we’re going to go through patient's vital signs and each meter one by one, and ask you some questions about each of them.</label>
-        @if($contentData['ans_baseline_expl_feedback_2'] == 'yes')
+        @if(@$contentData['ans_baseline_expl_feedback_2'] == 'yes')
         <?= segment_template_summary_value_display('Patient verbalized understanding.') ?>
-        @elseif($contentData['ans_baseline_expl_feedback_2'] == 'no')
+        @elseif(@$contentData['ans_baseline_expl_feedback_2'] == 'no')
         <?= segment_template_summary_value_display('Patient verbalized lack of understanding.') ?>
         @else
         <?= segment_template_summary_value_display('') ?>
@@ -350,9 +350,9 @@ if (!!@$point->data) {
     </div>
     <div class="mb-2">
         <label>Discussed risk of asymptomatic hypoxia during COVID.</label>
-        @if($contentData['ans_blood_ox_expl_feedback'] == 'yes')
+        @if(@$contentData['ans_blood_ox_expl_feedback'] == 'yes')
         <?= segment_template_summary_value_display('Patient verbalized understanding.') ?>
-        @elseif($contentData['ans_blood_ox_expl_feedback'] == 'no')
+        @elseif(@$contentData['ans_blood_ox_expl_feedback'] == 'no')
         <?= segment_template_summary_value_display('Patient verbalized lack of understanding.') ?>
         @else
         <?= segment_template_summary_value_display('') ?>
@@ -363,9 +363,9 @@ if (!!@$point->data) {
             <li>
                 <div>
                     <label>Asked patient if they have ever had COVID, to which:</label>
-                    @if($contentData['ans_blood_ox_condition_covid'] == 'yes')
+                    @if(@$contentData['ans_blood_ox_condition_covid'] == 'yes')
                         <?= segment_template_summary_value_display('Patient reports having COVID.') ?>
-                    @elseif($contentData['ans_blood_ox_condition_covid'] == 'no')
+                    @elseif(@$contentData['ans_blood_ox_condition_covid'] == 'no')
                         <?= segment_template_summary_value_display('Patient denies having COVID.') ?>
                     @else
                         <?= segment_template_summary_value_display('') ?>
@@ -390,9 +390,9 @@ if (!!@$point->data) {
             <li>
                 <div>
                     <label>Asked patient if they have ever had asthma, to which:</label>
-                    @if($contentData['ans_blood_ox_condition_asthma'] == 'yes')
+                    @if(@$contentData['ans_blood_ox_condition_asthma'] == 'yes')
                         <?= segment_template_summary_value_display('Patient reports having Asthma.') ?>
-                    @elseif($contentData['ans_blood_ox_condition_asthma'] == 'no')
+                    @elseif(@$contentData['ans_blood_ox_condition_asthma'] == 'no')
                         <?= segment_template_summary_value_display('Patient denies having Asthma.') ?>
                     @else
                         <?= segment_template_summary_value_display('') ?>
@@ -402,9 +402,9 @@ if (!!@$point->data) {
             <li>
                 <div>
                     <label>Asked patient if they have ever had COPD, to which:</label>
-                    @if($contentData['ans_blood_ox_condition_copd'] == 'yes')
+                    @if(@$contentData['ans_blood_ox_condition_copd'] == 'yes')
                         <?= segment_template_summary_value_display('Patient reports having COPD.') ?>
-                    @elseif($contentData['ans_blood_ox_condition_copd'] == 'no')
+                    @elseif(@$contentData['ans_blood_ox_condition_copd'] == 'no')
                         <?= segment_template_summary_value_display('Patient denies having COPD.') ?>
                     @else
                         <?= segment_template_summary_value_display('') ?>
@@ -452,7 +452,7 @@ if (!!@$point->data) {
 
         <div class="mb-3 ml-3">
             <label class="mb-2">BP medicine reported:</label>
-            @if(!strlen($contentData['ans_bp_medicine_1_type']) && !strlen($contentData['ans_bp_medicine_2_type']) && !strlen($contentData['ans_bp_medicine_3_type']))
+            @if(!strlen(@$contentData['ans_bp_medicine_1_type']) && !strlen(@$contentData['ans_bp_medicine_2_type']) && !strlen(@$contentData['ans_bp_medicine_3_type']))
                 <?= segment_template_summary_value_display('None') ?>
             @endif
             <div class="pl-3">
@@ -546,7 +546,7 @@ if (!!@$point->data) {
     <hr class="my-3">
 
     <p>Regarding vaccine status:
-        @if($contentData['ans_vaccine_status_declined_to_answer'] == 'yes')
+        @if(@$contentData['ans_vaccine_status_declined_to_answer'] == 'yes')
             <?= segment_template_summary_value_display('Patient declined to provide vaccine status.') ?>
         @else
             @if(@$contentData['ans_vaccine_status'])
@@ -558,7 +558,7 @@ if (!!@$point->data) {
     </p>
 
     <p>Regarding booster status:
-        @if($contentData['ans_booster_status_declined_to_answer'] == 'yes')
+        @if(@$contentData['ans_booster_status_declined_to_answer'] == 'yes')
             <?= segment_template_summary_value_display('Patient declined to provide booster status.') ?>
         @else
             @if(@$contentData['ans_booster_status'])
@@ -575,7 +575,7 @@ if (!!@$point->data) {
     </div>
 
     <p>Education Provided:
-    @if(!strlen($contentData['ans_edu_provided_use_of_smd']) && !strlen($contentData['ans_edu_provided_asymptomatic_hypoxia']) && !strlen($contentData['ans_edu_provided_cdc_guidelines']))
+    @if(!strlen(@$contentData['ans_edu_provided_use_of_smd']) && !strlen(@$contentData['ans_edu_provided_asymptomatic_hypoxia']) && !strlen(@$contentData['ans_edu_provided_cdc_guidelines']))
         <?= segment_template_summary_value_display('') ?>
     @endif
     </p>
@@ -590,7 +590,7 @@ if (!!@$point->data) {
             ▸ Asymptomatic hypoxia
         </div>
         @endif
-        @if($contentData['ans_edu_provided_cdc_guidelines'] == 'yes')
+        @if(@$contentData['ans_edu_provided_cdc_guidelines'] == 'yes')
         <div>
             ▸ CDC guidelines
         </div>