Добавил реанимацию

Правки окна операций
This commit is contained in:
brusnitsyn
2026-05-07 22:37:07 +09:00
parent bb9e67ab3d
commit 6cf1ffbb2b
11 changed files with 137 additions and 45 deletions

View File

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