update backend claim history hospital

This commit is contained in:
2023-10-27 09:28:08 +07:00
parent a53a546f1f
commit 63af52cb85
10 changed files with 317 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('claim_history_cares', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->string('service_code');
$table->date('admision_date');
$table->date('discharge_date');
$table->integer('claim_id');
$table->integer('organization_id');
$table->integer('practitioner_id');
$table->string('medical_record_number');
$table->string('symptoms');
$table->string('sign');
$table->integer('main_diagnosis_id');
$table->integer('status');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('claim_history_cares');
}
};

View File

@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diagnosis_secondary_claim_history_care', function (Blueprint $table) {
$table->id();
$table->timestamps();
$table->integer('claim_history_care_id');
$table->integer('icd_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diagnosis_secondary_claim_history_care');
}
};