|
@@ -38,12 +38,16 @@ class McpController extends Controller
|
|
public function patients(Request $request)
|
|
public function patients(Request $request)
|
|
{
|
|
{
|
|
$patients = Client::paginate(5);
|
|
$patients = Client::paginate(5);
|
|
|
|
+ // SELECT * FROM client WHERE mcp_pro_id = :me.id
|
|
return view('app.mcp.patients', compact('patients'));
|
|
return view('app.mcp.patients', compact('patients'));
|
|
}
|
|
}
|
|
|
|
|
|
public function notes(Request $request)
|
|
public function notes(Request $request)
|
|
{
|
|
{
|
|
$notes = Note::paginate(5);
|
|
$notes = Note::paginate(5);
|
|
|
|
+
|
|
|
|
+ // SELECT * FROM note WHERE client_id IN (SELECT id FROM client WHERE mcp_pro_id = :me.id);
|
|
|
|
+
|
|
return view('app.mcp.notes', compact('notes'));
|
|
return view('app.mcp.notes', compact('notes'));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -87,10 +91,12 @@ class McpController extends Controller
|
|
|
|
|
|
public function new_patients_awaiting_visit(Request $request){
|
|
public function new_patients_awaiting_visit(Request $request){
|
|
$data = [];
|
|
$data = [];
|
|
|
|
+ // SELECT * FROM client WHERE mcp_pro_id = :me.id AND has_mcp_done_onboarding_visit != 'YES'
|
|
return view('app.mcp.new_patients_awaiting_visit', $data);
|
|
return view('app.mcp.new_patients_awaiting_visit', $data);
|
|
}
|
|
}
|
|
public function notes_pending_signature(Request $request){
|
|
public function notes_pending_signature(Request $request){
|
|
$data = [];
|
|
$data = [];
|
|
|
|
+ // SELECT * FROM note WHERE hcp_pro_id = :me.id AND
|
|
return view('app.mcp.notes_pending_signature', $data);
|
|
return view('app.mcp.notes_pending_signature', $data);
|
|
}
|
|
}
|
|
public function notes_pending_billing(Request $request){
|
|
public function notes_pending_billing(Request $request){
|