Pārlūkot izejas kodu

Resolved conflict

Samson Mutunga 1 gadu atpakaļ
vecāks
revīzija
03052a5379
1 mainītis faili ar 30 papildinājumiem un 1 dzēšanām
  1. 30 1
      app/Http/Controllers/NoteController.php

+ 30 - 1
app/Http/Controllers/NoteController.php

@@ -26,8 +26,37 @@ use Illuminate\Support\Facades\DB;
 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;
         $noteSections = $note->sections;