Pārlūkot izejas kodu

Limit patient aquisition chart update

Vijayakrishnan 4 gadi atpakaļ
vecāks
revīzija
93f66aface

+ 1 - 1
app/Http/Controllers/HomeController.php

@@ -598,7 +598,7 @@ WHERE measurement.label NOT IN ('SBP', 'DBP')
             $patientAcquisitionData = DB::select(DB::raw(
                 "SELECT count(id) as count, DATE(created_at) as date " .
                 "FROM client " .
-                // "WHERE DATE(created_at) >= '$startDate' " .
+                "WHERE shadow_pro_id IS NULL " .
                 "GROUP BY DATE(created_at) " .
                 "ORDER BY DATE(created_at) DESC " .
                 "LIMIT 30"));

+ 1 - 1
resources/views/app/patients.blade.php

@@ -274,7 +274,7 @@
                         // xFormat: '%Y%m%d', // 'xFormat' can be used as custom format of 'x'
                         columns: [
                             ['x', <?= implode(", ", array_map(function($_x) { return "'" . $_x . "'"; }, $dates)) ?>],
-                            ['Patient Aquisition', <?= implode(", ", array_map(function($_x) { return "'" . $_x . "'"; }, $acquisitions)) ?>],
+                            ['New Patients', <?= implode(", ", array_map(function($_x) { return "'" . $_x . "'"; }, $acquisitions)) ?>],
                         ]
                     },
                     axis: {