|
@@ -18,7 +18,7 @@ $vitalLabels = [
|
|
|
"smokingStatus" => "Smoking Status",
|
|
|
];
|
|
|
|
|
|
-$point = Point::where('added_in_segment_id', $segment->id)->where('category', $category)->orderBy('id', 'DESC')->first();
|
|
|
+$point = Point::where('added_in_note_id', $note->id)->where('category', $category)->orderBy('id', 'DESC')->first();
|
|
|
$contentData = null;
|
|
|
if (!!@$point->data) {
|
|
|
$contentData = json_decode($point->data, true);
|
|
@@ -48,7 +48,7 @@ if(!$contentData) {
|
|
|
}
|
|
|
|
|
|
$previousVitals = Point::where('client_id', $patient->id)
|
|
|
- ->where('added_in_segment_id', '<>', $segment->id)
|
|
|
+ ->where('added_in_note_id', '<>', $note->id)
|
|
|
->where('category', $category)
|
|
|
->orderBy('id', 'DESC')
|
|
|
->limit(4)
|