|
@@ -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++) {
|