* добавил удаление карты, если она была добавлена не из МИС
* добавил диалог при удалении карты * добавил сохранение движения * добавил вывод сохраненного отчета * изменил логику сохранения отчета
This commit is contained in:
@@ -92,9 +92,10 @@ class MigrationPatient extends MaterializedViewModel
|
||||
return $query->where('is_actually_current', true);
|
||||
}
|
||||
|
||||
public function scopeCurrentMigration($query, $historyId)
|
||||
public function scopeCurrentMigration($query, $historyId, $departmentId)
|
||||
{
|
||||
return $query->where('medical_history_id', $historyId)
|
||||
->department($departmentId)
|
||||
->orderBy('ingoing_date', 'desc')
|
||||
->limit(1)->first();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user