Обновление отчета

This commit is contained in:
brusnitsyn
2026-01-20 09:26:47 +09:00
parent 62d7e9efd4
commit 8a0fdf9470
12 changed files with 83 additions and 41 deletions

View File

@@ -40,6 +40,14 @@ class MisMedicalHistory extends Model
return $this->where('rf_EmerSignID', 2);
}
/*
* Истории с результатом - Умер
*/
public function scopeDeceased()
{
return $this->where('rf_kl_VisitResultID', 5);
}
/*
* Движения истории
*/

View File

@@ -15,4 +15,9 @@ class ObservationPatient extends Model
'rf_department_id',
'rf_report_id',
];
public function history()
{
return $this->belongsTo(MisMedicalHistory::class, 'rf_medicalhistory_id', 'MedicalHistoryID');
}
}