Обновлен стартовый экран

Переписаны запросы для статистики, отчетов
Добавлена интеграция отчета сестры
This commit is contained in:
brusnitsyn
2026-05-28 22:10:00 +09:00
parent 90e0d04dfd
commit 739168d427
96 changed files with 6663 additions and 1465 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ObservableMedicalHistory extends Model
{
protected $fillable = [
'source_type',
'original_id',
'observable_in',
'observable_out',
'observable_reason',
'out_reason',
'medical_card_number',
'full_name',
'birth_date',
'recipient_date',
'extract_date',
'death_date',
'male',
'urgency_id',
'hospital_result_id',
'visit_result_id',
'comment',
'user_id',
];
public function medicalHistory(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(ReportDutyPatient::class, 'original_id', 'original_id');
}
}