Add Diagnosis Exclusion

This commit is contained in:
2022-08-03 11:24:09 +07:00
parent 8c78fd3d84
commit f72a641f56
27 changed files with 20708 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ return new class extends Migration
public function up()
{
Schema::create('import_logs', function (Blueprint $table) {
$table->uuid();
$table->uuid()->primary();
$table->morphs('importable');
$table->string('type')->nullable();
$table->string('file_path')->nullable();

View File

@@ -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.
*
* @return void
*/
public function up()
{
Schema::create('icd', function (Blueprint $table) {
$table->id();
$table->string('rev');
$table->string('version')->nullable();
$table->string('code');
$table->string('name');
$table->text('description')->nullable();
$table->string('parent_code')->nullable()->index();
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('icd_x');
}
};

View File

@@ -0,0 +1,41 @@
<?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('exclusions', function (Blueprint $table) {
$table->id();
$table->foreignId('corporate_id');
$table->string('service_code')->index();
$table->string('type');
$table->morphs('exclusionable');
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exclusions');
}
};

View File

@@ -0,0 +1,40 @@
<?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('exclusion_rules', function (Blueprint $table) {
$table->id();
$table->foreignId('exclusion_id');
$table->string('name');
$table->text('values');
$table->timestamps();
$table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('exclusion_rules');
}
};