Kaynağa Gözat

added claims resolver view

unknown 4 yıl önce
ebeveyn
işleme
b9bd6853a6

+ 2 - 2
app/Http/Controllers/PatientController.php

@@ -28,11 +28,11 @@ class PatientController extends Controller
 
     public function claimsResolver(Request $request, Client $patient)
     {
-        $notes = $patient->notesAscending();
+        $notes = $patient->notesAscending;
         $hcpSignedNotes = 0;
         foreach($notes as $note){
             if($note->is_signed_by_hcp){
-                $hcpSignedNotes++;
+                $hcpSignedNotes += 1;
             }
         }
         $data = [

+ 4 - 0
resources/views/app/patient/claims-resolver.blade.php

@@ -3,4 +3,8 @@
 @section('inner-content')
     <h1>Here is the story of all the notes, bills, and claims for this patient.</h1>
     <h2>HCP Signed Notes: {{$hcpSignedNotes}}</h2>
+    <h2>All Notes:</h2>
+    @foreach($patient->notesAscending as $note)
+        <h3>Note: $note->effective_dateest</h3>
+    @endforeach
 @endsection