|
@@ -25,8 +25,39 @@ use Illuminate\Support\Facades\DB;
|
|
class NoteController extends Controller
|
|
class NoteController extends Controller
|
|
{
|
|
{
|
|
|
|
|
|
- public function dashboard(Request $request, Client $patient, Note $note)
|
|
|
|
|
|
+ public function dashboard(Request $request, Client $patient, $noteUid)
|
|
{
|
|
{
|
|
|
|
+
|
|
|
|
+ $note = Note::with(
|
|
|
|
+ 'client',
|
|
|
|
+ 'hcpPro',
|
|
|
|
+ 'hcpCompanyPro',
|
|
|
|
+ 'noteTemplate',
|
|
|
|
+ 'createdSession',
|
|
|
|
+ 'allyPro',
|
|
|
|
+ 'followUpAppointment',
|
|
|
|
+ 'cmSetupClaim',
|
|
|
|
+ 'naGenericBill',
|
|
|
|
+ 'bills',
|
|
|
|
+ 'addendums',
|
|
|
|
+ 'sections',
|
|
|
|
+ //'segments',
|
|
|
|
+ 'segmentsLeft',
|
|
|
|
+ 'segmentsRight',
|
|
|
|
+ 'coreSegment',
|
|
|
|
+ 'reasonsLog',
|
|
|
|
+ 'claims',
|
|
|
|
+ 'receivedPayments',
|
|
|
|
+ 'hcpCompany',
|
|
|
|
+ 'hcpCompanyProPayer',
|
|
|
|
+ 'hcpCompanyLocation',
|
|
|
|
+ 'flaggedForSupervisingPhysicianReviewBySession',
|
|
|
|
+ 'stampedBySupervisingPhysicianBySession',
|
|
|
|
+ 'currentNotePickupForProcessing',
|
|
|
|
+ 'visitTemplate',
|
|
|
|
+ 'cmSetupManagerSignatureStatusUpdatedBySession'
|
|
|
|
+ )->where('uid', $noteUid)->first();
|
|
|
|
+
|
|
$pros = $this->pros;
|
|
$pros = $this->pros;
|
|
$noteSections = $note->sections;
|
|
$noteSections = $note->sections;
|
|
$allSections = SectionTemplate::where('is_active', true)->get();
|
|
$allSections = SectionTemplate::where('is_active', true)->get();
|