Обновление отчета
This commit is contained in:
@@ -40,6 +40,14 @@ class MisMedicalHistory extends Model
|
||||
return $this->where('rf_EmerSignID', 2);
|
||||
}
|
||||
|
||||
/*
|
||||
* Истории с результатом - Умер
|
||||
*/
|
||||
public function scopeDeceased()
|
||||
{
|
||||
return $this->where('rf_kl_VisitResultID', 5);
|
||||
}
|
||||
|
||||
/*
|
||||
* Движения истории
|
||||
*/
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user