]> Softwares of Agnibho - simpleipd.git/blobdiff - lib/db.php
Minor
[simpleipd.git] / lib / db.php
index 1cfdb5aa8ba00e9a7803aac8f2461b649496f20a..1bff6835af7bd22396b154853a34b222a9658068 100644 (file)
@@ -380,6 +380,13 @@ class DB extends SQLite3 {
     $result=$stmt->execute();
     return($result);
   }
+  function getArchivedPatientList(){
+    global $log;
+    if(!checkAccess("info", "dbGet")) return false;
+    $stmt=$this->prepare("SELECT pid,ward,bed,name,diagnosis FROM patients WHERE status!='admitted' ORDER BY UPPER(ward),bed;");
+    $result=$stmt->execute();
+    return($result);
+  }
   function getRequisitionList(){
     global $log;
     if(!checkAccess("requisition", "dbGet")) return false;