diff --git a/app/Services/DutyReportService.php b/app/Services/DutyReportService.php index 0e02292..0b9d26c 100644 --- a/app/Services/DutyReportService.php +++ b/app/Services/DutyReportService.php @@ -868,7 +868,7 @@ class DutyReportService { foreach ($observables as $observable) { ObservableMedicalHistory::updateOrCreate([ - 'original_id' => $observable['original_id'], + 'original_id' => $observable['original_id'] ?? $observable['id'], 'source_type' => $observable['source_type'], 'observable_in' => $observable['observable_in'] ?? $reportDuty->period_start, ], [