Добавил реанимацию
Правки окна операций
This commit is contained in:
@@ -31,6 +31,12 @@ class MigrationPatient extends MaterializedViewModel
|
||||
->orderBy('end_date', 'desc');
|
||||
}
|
||||
|
||||
public function reanimations()
|
||||
{
|
||||
return $this->hasMany(Reanimation::class, 'migration_patient_id', 'id')
|
||||
->orderBy('out_date', 'desc');
|
||||
}
|
||||
|
||||
// Пересечение с отчетным периодом
|
||||
public function scopeDateRange($query, string $from, string $to)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user