Quellcode durchsuchen

Always show allergies and meds in subjective

Vijayakrishnan vor 3 Jahren
Ursprung
Commit
b1a671bd21

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

@@ -467,7 +467,7 @@ SELECT p.id,
        p.last_child_review_point_scoped_note_uid as last_child_review_note_uid,
        p.last_child_plan_point_scoped_note_uid as last_child_plan_note_uid
 FROM point p 
-    left join note_point np on p.id = np.point_id and np.note_id = {$_note->id}
+    left join note_point np on p.id = np.point_id and np.note_id = {$_note->id} and np.is_active = TRUE
 WHERE p.client_id = {$_patient->id} AND p.category = '{$_category}'
     ORDER BY ((p.data)::json->'{$_sortKey}')::text
 ";

+ 1 - 1
resources/views/app/patient/segment-templates/omega_allergies/summary.blade.php

@@ -4,7 +4,7 @@ use App\Models\Point;
 
 /** @var \App\Models\Client $patient */
 
-$points = Point::getIntakePointsOfCategory($patient, 'ALLERGY', $note);
+$points = Point::getPointsOfCategory($patient, 'ALLERGY');
 $tracker = Point::getGlobalSingletonOfCategory($patient, 'NO_KNOWN_TRACKER');
 $numRelevant = 0;
 $plural = 'Allergies';

+ 1 - 1
resources/views/app/patient/segment-templates/omega_medications/summary.blade.php

@@ -4,7 +4,7 @@ use App\Models\Point;
 
 /** @var \App\Models\Client $patient */
 
-$points = Point::getIntakePointsOfCategory($patient, 'MEDICATION', $note);
+$points = Point::getPointsOfCategory($patient, 'MEDICATION');
 $tracker = Point::getGlobalSingletonOfCategory($patient, 'NO_KNOWN_TRACKER');
 $numRelevant = 0;
 $plural = 'Medications';