* добавил удаление карты, если она была добавлена не из МИС
* добавил диалог при удалении карты * добавил сохранение движения * добавил вывод сохраненного отчета * изменил логику сохранения отчета
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('report_nurse_migration_patients', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignIdFor( \App\Models\ReportNursePatient::class, 'medical_history_id');
|
||||
$table->dateTime('ingoing_date')->nullable();
|
||||
$table->dateTime('out_date')->nullable();
|
||||
$table->integer('diagnosis_id')->nullable();
|
||||
$table->string('diagnosis_code')->nullable();
|
||||
$table->string('diagnosis_name')->nullable();
|
||||
$table->integer('interrupted_event_id')->nullable();
|
||||
$table->integer('stationar_branch_id')->nullable();
|
||||
$table->integer('department_id')->nullable();
|
||||
$table->integer('visit_result_id')->nullable();
|
||||
$table->integer('stat_cure_result_id')->nullable();
|
||||
$table->foreignIdFor(\App\Models\User::class, 'user_id')->nullable();
|
||||
$table->integer('mis_user_id')->nullable();
|
||||
$table->text('comment')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique('medical_history_id', 'uniq_rnmp_medical_history_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('report_nurse_migration_patients');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user