|
@@ -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>
|