Работа над журналом для ст. мед сестер
This commit is contained in:
@@ -138,6 +138,10 @@ class MisClinicalDataSource
|
||||
$reanimationByMedicalHistory = MisReanimation::query()
|
||||
->join('stt_migrationpatient as mp', 'mp.MigrationPatientID', '=', 'stt_reanimation.rf_MigrationPatientID')
|
||||
->where('mp.rf_StationarBranchID', $branchId)
|
||||
->where(function ($q) use ($dateRange) {
|
||||
$q->where('stt_reanimation.DateIn', '<=', $dateRange->endSql())
|
||||
->where('stt_reanimation.DateOut', '>=', $dateRange->startSql());
|
||||
})
|
||||
->where('mp.rf_MedicalHistoryID', '<>', 0)
|
||||
->whereIn('mp.rf_MedicalHistoryID', $reportCohortIds)
|
||||
->selectRaw('
|
||||
|
||||
Reference in New Issue
Block a user