Samson Mutunga 3 lat temu
rodzic
commit
489589f4c5

+ 8 - 1
app/Http/Controllers/PracticeManagementController.php

@@ -3517,7 +3517,14 @@ ORDER BY c.name_last, c.name_first
 
         $pro = $this->performer()->pro;
         if($pro->pro_type !== 'ADMIN') {
-            $patients = $patients->where('mcp_pro_id', $this->performer()->pro->id);
+            if($pro->is_hcp){
+               $patients = $patients->where('mcp_pro_id', $this->performer()->pro->id); 
+            }
+            if($pro->is_considered_for_dna){
+                $patients = $patients->where('default_na_pro_id', $this->performer()->pro->id); 
+             }
+            
+
         }
 
         // filters