|
@@ -952,6 +952,7 @@ class PracticeManagementController extends Controller
|
|
|
|
|
|
//Patient | MCP | # Notes Total | # Notes without Billing Closed | # Notes without Claiming Closed
|
|
|
$patientsQuery = Client::where('is_dummy', '=', false)
|
|
|
+ ->whereNull('shadow_pro_id')
|
|
|
->select('id', 'uid', 'name_first', 'name_last', 'mcp_pro_id', 'is_part_b_primary', 'medicare_advantage_plan',
|
|
|
DB::raw("(SELECT name_first||' '||name_last FROM pro where pro.id = client.mcp_pro_id) as mcp"),
|
|
|
DB::raw("(SELECT uid FROM pro where pro.id = mcp_pro_id) as mcp_pro_uid"),
|