Browse Source

Client dashboard 500 fix (due to GS to TL conv)

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
c55d8484c3

+ 4 - 0
resources/views/app/patient/segment-templates/history_family/edit.blade.php

@@ -8,6 +8,10 @@ use App\Models\Note;
 
 if(!@$segment) $segment = null;
 
+if(!@$sessionKey) {
+    $sessionKey = request()->cookie('sessionKey');
+}
+
 $point = Point::getOrCreateOnlyTopLevelPointOfCategory($note, 'FAMILY_HISTORY', $sessionKey, true);
 
 $contentData = $parsed = false;

+ 4 - 0
resources/views/app/patient/segment-templates/history_screenings/edit.blade.php

@@ -6,6 +6,10 @@ use App\Models\Note;
 /** @var Client $patient */
 /** @var Note $note */
 
+if(!@$sessionKey) {
+    $sessionKey = request()->cookie('sessionKey');
+}
+
 $point = Point::getOrCreateOnlyTopLevelPointOfCategory($note, 'SCREENINGS_HISTORY', $sessionKey, true);
 
 $contentData = $parsed = false;

+ 4 - 0
resources/views/app/patient/segment-templates/history_social/edit.blade.php

@@ -9,6 +9,10 @@ use App\Models\Note;
 
 if(!@$segment) $segment = null;
 
+if(!@$sessionKey) {
+    $sessionKey = request()->cookie('sessionKey');
+}
+
 $fields = [
     [
         "Tobacco" => ["Current every day smoker", "Current some day smoker", "Former smoker", "Heavy tobacco smoker", "Light tobacco smoker", "Never smoker", "Smoker, current status unknown", "Unknown if ever smoked "],

+ 4 - 0
resources/views/app/patient/segment-templates/history_surgical/edit.blade.php

@@ -9,6 +9,10 @@ use App\Models\Note;
 
 if(!@$segment) $segment = null;
 
+if(!@$sessionKey) {
+    $sessionKey = request()->cookie('sessionKey');
+}
+
 $fields = [
     [
         "" => ["Aneurysm repair", "Appendectomy", "Back surgery", "Bariatric surgery/gastric bypass", "Bilateral tubal ligation", "Breast resection/mastectomy", "CABG", "Carotid endarterectomy/stent", "Carpal tunnel release surgery",]

+ 4 - 0
resources/views/app/patient/segment-templates/past_medical_history/edit.blade.php

@@ -9,6 +9,10 @@ use App\Models\Note;
 
 if(!@$segment) $segment = null;
 
+if(!@$sessionKey) {
+    $sessionKey = request()->cookie('sessionKey');
+}
+
 $fields = [
     [
         "Head" => ["Trauma"],