]> Softwares of Agnibho - simpleipd.git/commitdiff
new access group tech
authorAgnibho Mondal <mondal@agnibho.com>
Thu, 20 May 2021 16:53:16 +0000 (22:23 +0530)
committerAgnibho Mondal <mondal@agnibho.com>
Thu, 20 May 2021 16:53:16 +0000 (22:23 +0530)
access.json
www/treatment.php

index 569c3a5c46906a6224ae1eba18074863a638361e..f4b2374a98692dd94ab7f356242dbcc445392d40 100644 (file)
@@ -5,6 +5,7 @@
         "resident": "all",
         "nursing": "all",
         "lab": "all",
+        "tech": "all",
         "clerk": "view"
     },
     "diagnosis": {
@@ -13,6 +14,7 @@
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "summary": {
@@ -21,6 +23,7 @@
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "admission": {
@@ -29,6 +32,7 @@
         "resident": "all",
         "nursing": "all",
         "lab": "view",
+        "tech": "view",
         "clerk": "all"
     },
     "attachments": {
@@ -37,6 +41,7 @@
         "resident": "all",
         "nursing": "all",
         "lab": "all",
+        "tech": "all",
         "clerk": "view"
     },
     "death": {
@@ -45,6 +50,7 @@
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "discharge": {
@@ -53,6 +59,7 @@
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "history": {
@@ -61,6 +68,7 @@
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "laboratory": {
@@ -69,6 +77,7 @@
         "resident": "all",
         "nursing": "all",
         "lab": "all",
+        "tech": "all",
         "clerk": "view"
     },
     "nursing": {
@@ -77,6 +86,7 @@
         "resident": "view",
         "nursing": "all",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "physician": {
@@ -85,6 +95,7 @@
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "print-discharge": {
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "report": {
         "resident": "all",
         "nursing": "view",
         "lab": "all",
+        "tech": "all",
         "clerk": "view"
     },
     "requisition": {
         "resident": "all",
         "nursing": "all",
         "lab": "all",
+        "tech": "all",
         "clerk": "view"
     },
     "treatment": {
         "resident": "all",
         "nursing": "view",
         "lab": "view",
+        "tech": "view",
         "clerk": "view"
     },
     "view": {
         "resident": "all",
         "nursing": "all",
         "lab": "all",
+        "tech": "all",
         "clerk": "view"
     },
     "vitek": {
         "resident": "all",
         "nursing": "all",
         "lab": "all",
+        "tech": "view",
         "clerk": "view"
     },
 
         "resident": "all",
         "nursing": "view",
         "lab": "all",
+        "tech": "view",
         "clerk": "view"
     }
 }
index 39da3fabf873f2e46d6126ecf56d9d317130a0ac..72b6ad0b1156d580ede12e52699697a3184236ca 100644 (file)
@@ -6,7 +6,7 @@ if(!empty($_GET["pid"])){
     $db->omitDrug($_POST["omit"]);
   }
   elseif(!empty($_POST["drug"])){
-    $db->addDrug($pid, $_POST["drug"], $_POST["dose"], $_POST["route"], $_POST["frequency"], $_POST["date"], $_POST["time"], $_POST["duration"], $_POST["extra-note"]);
+    $db->addDrug($pid, $_POST["drug"], $_POST["dose"], $_POST["route"], $_POST["frequency"], $_POST["date"], $_POST["time"], $_POST["duration"], $_POST["extra_note"]);
   }
   $list=$db->getDrugs($pid);
   $view="";