Добавлено формирование отчета

И индикатор реанимации
This commit is contained in:
brusnitsyn
2026-04-24 16:44:58 +09:00
parent 1de9fd3ef8
commit fd0e6ee817
5 changed files with 259 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('reanimation_patient_indicators', function (Blueprint $table) {
$table->id('reanimation_patient_indicator_id');
$table->unsignedBigInteger('rf_department_id');
$table->unsignedBigInteger('rf_report_id')->nullable();
$table->unsignedBigInteger('rf_medicalhistory_id');
$table->string('indicator', 100);
$table->text('comment')->nullable();
$table->unsignedBigInteger('created_by')->nullable();
$table->timestamps();
$table->index(
['rf_department_id', 'rf_medicalhistory_id', 'created_at'],
'idx_reanimation_indicator_department_history_created_at'
);
$table->index(['rf_report_id'], 'idx_reanimation_indicator_report');
});
}
public function down(): void
{
Schema::dropIfExists('reanimation_patient_indicators');
}
};