Добавил вывод метрик для врача дежурного
This commit is contained in:
@@ -70,6 +70,11 @@ class ReportDuty extends Model
|
||||
return $this->hasMany(DutyUnwantedEvent::class, 'report_duty_id', 'id');
|
||||
}
|
||||
|
||||
public function metrikaResult()
|
||||
{
|
||||
return $this->hasMany(DutyReportMetricResult::class, 'rf_report_id', 'id');
|
||||
}
|
||||
|
||||
public function getLoadedDepartmentAttribute(int $patientsInDepartment)
|
||||
{
|
||||
$beds = DutyReportMetricResult::where('rf_report_id', $this->id)
|
||||
|
||||
Reference in New Issue
Block a user