Добавил реанимацию
Правки окна операций
This commit is contained in:
@@ -36,6 +36,11 @@ class MedicalHistory extends MaterializedViewModel
|
||||
->latest('ingoing_date');
|
||||
}
|
||||
|
||||
public function reanimations()
|
||||
{
|
||||
return $this->hasMany(Reanimation::class, 'medical_history_id', 'id');
|
||||
}
|
||||
|
||||
public function operationsInDepartment($query, $departmentId)
|
||||
{
|
||||
return $this->operations()->where('department_id', $departmentId);
|
||||
|
||||
Reference in New Issue
Block a user