Explorar o código

attempt on notes

= %!s(int64=3) %!d(string=hai) anos
pai
achega
a50477780e
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      resources/views/app/patient/page-sections/rx/summary.php

+ 2 - 1
resources/views/app/patient/page-sections/rx/summary.php

@@ -4,7 +4,7 @@ use App\Models\Page;
 
 $medicationsAddedOnIntake = Page::where('client_id', $patient->id)
     ->where('category', 'MEDICATION')
-    ->whereRaw("(is_active IS TRUE AND added_during_note_uid = ? AND added_reason_category = 'ADDED_ON_INTAKE') ",[$note->uid])
+    ->whereRaw("(is_active IS TRUE AND  added_reason_category = 'ADDED_ON_INTAKE') ") //TODO fix query
     ->get();
 
 $medicationsRemovedOnIntake = Page::where('client_id', $patient->id)
@@ -17,6 +17,7 @@ $medicationsRemovedOnIntake = Page::where('client_id', $patient->id)
 <?php if(!count($medicationsAddedOnIntake)): ?>
     <div>No medications</div>
 <?php else: ?>
+    <div><h1><?php echo count($medicationsAddedOnIntake); ?></h1></div>
     <div class="d-flex">
         <table>
             <thead>