浏览代码

checked for items in canvas forms

Josh 4 年之前
父节点
当前提交
5345ab081f

+ 9 - 8
resources/views/app/patient/canvas-sections/allergies/form.blade.php

@@ -8,16 +8,17 @@ if(!$contentData) {
             ]
         ]
     ];
+}
 
-    if(!isset($contentData['items'])){
-        $contentData['items'] =  [
-            [
-                "title" => "",
-                "detail" => "",
-            ]
-        ];
-    }
+if(!isset($contentData['items'])){
+    $contentData['items'] =  [
+        [
+            "title" => "",
+            "detail" => "",
+        ]
+    ];
 }
+
 $formID = rand(0, 100000);
 ?>
 <div id="allergySection">

+ 15 - 0
resources/views/app/patient/canvas-sections/care-team/form.blade.php

@@ -14,6 +14,21 @@ if(!$contentData) {
         ]
     ];
 }
+
+if(!isset($contentData['items'])){
+    $contentData['items'] =  [
+        [
+            "name" => "",
+            "specialty" => "",
+            "organization" => "",
+            "phone" => "",
+            "fax" => "",
+            "date" => "",
+            "memo" => "",
+        ]
+    ];
+}
+
 $formID = rand(0, 100000);
 ?>
 <div id="careTeamSection">

+ 13 - 0
resources/views/app/patient/canvas-sections/dx/form.blade.php

@@ -12,6 +12,19 @@ if(!$contentData) {
         ]
     ];
 }
+
+if(!isset($contentData['items'])){
+    $contentData['items'] =  [
+        [
+            "title" => "",
+            "icd" => "",
+            "coa" => "",
+            "detail" => "",
+            "plan" => "",
+        ]
+    ];
+}
+
 $formID = rand(0, 100000);
 ?>
 <div id="dxSection">

+ 12 - 0
resources/views/app/patient/canvas-sections/rx/form.blade.php

@@ -11,6 +11,18 @@ if(!$contentData) {
         ]
     ];
 }
+
+if(!isset($contentData['items'])){
+    $contentData['items'] =  [
+        [
+            title" => "",
+            "strength" => "",
+            "frequency" => "",
+            "detail" => "",
+        ]
+    ];
+}
+
 $formID = rand(0, 100000);
 ?>
 <div id="rxSection">