|
@@ -290,7 +290,7 @@ class Point extends Model
|
|
}
|
|
}
|
|
|
|
|
|
public static function getPlanPoints(Client $_patient, Note $_note, $_assoc = false) {
|
|
public static function getPlanPoints(Client $_patient, Note $_note, $_assoc = false) {
|
|
-
|
|
|
|
|
|
+
|
|
$points = Point
|
|
$points = Point
|
|
::where('client_id', $_patient->id)
|
|
::where('client_id', $_patient->id)
|
|
->where('is_removed_due_to_entry_error', false)
|
|
->where('is_removed_due_to_entry_error', false)
|
|
@@ -494,6 +494,7 @@ class Point extends Model
|
|
->where('intention', 'TOP_LEVEL')
|
|
->where('intention', 'TOP_LEVEL')
|
|
->first();
|
|
->first();
|
|
|
|
|
|
|
|
+
|
|
if(!$point) {
|
|
if(!$point) {
|
|
$response = callJava('/visitPoint/addTopLevel', [
|
|
$response = callJava('/visitPoint/addTopLevel', [
|
|
"category" => $_category,
|
|
"category" => $_category,
|
|
@@ -555,5 +556,5 @@ class Point extends Model
|
|
|
|
|
|
return $point;
|
|
return $point;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|