|
@@ -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
|