Преглед на файлове

CC default - consider only relevant problems

Vijayakrishnan преди 3 години
родител
ревизия
5482f24d88

+ 3 - 1
resources/views/app/patient/segment-templates/chief_complaint/edit.blade.php

@@ -14,7 +14,9 @@ if(!$parsed || !@$parsed->free_text) {
     $problemPoints = Point::getPointsOfCategory($patient, 'PROBLEM');
     $problemNames = [];
     foreach ($problemPoints as $problemPoint) {
-        $problemNames[] = $problemPoint->data->name;
+        if($problemPoint->relevanceToNote($note)) {
+            $problemNames[] = $problemPoint->data->name;
+        }
     }
     $problems = '';
     for($i = 0; $i < count($problemNames); $i++) {

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

@@ -13,7 +13,9 @@ if(!$parsed || !@$parsed->free_text) {
     $problemPoints = Point::getPointsOfCategory($patient, 'PROBLEM');
     $problemNames = [];
     foreach ($problemPoints as $problemPoint) {
-        $problemNames[] = $problemPoint->data->name;
+        if($problemPoint->relevanceToNote($note)) {
+            $problemNames[] = $problemPoint->data->name;
+        }
     }
     $problems = '';
     for($i = 0; $i < count($problemNames); $i++) {