ubah ke docker mode
This commit is contained in:
No files matched your search
@@ -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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->text('session_id')->nullable();
|
||||
$table->string('nama', 150);
|
||||
$table->string('username')->unique();
|
||||
$table->string('password', 150);
|
||||
$table->string('previlage', 150)->nullable();
|
||||
$table->string('api_token', 150)->nullable();
|
||||
$table->string('tandatangan', 150)->nullable();
|
||||
$table->string('photo', 150)->nullable();
|
||||
$table->text('firebase')->nullable();
|
||||
$table->integer('active_status')->nullable();
|
||||
$table->timestamp('last_activity')->nullable();
|
||||
$table->rememberToken();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('users');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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('password_reset_tokens', function (Blueprint $table) {
|
||||
$table->string('email')->primary();
|
||||
$table->string('token');
|
||||
$table->timestamp('created_at')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('password_reset_tokens');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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('failed_jobs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('uuid')->unique();
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
$table->longText('payload');
|
||||
$table->longText('exception');
|
||||
$table->timestamp('failed_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('failed_jobs');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('personal_access_tokens', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->morphs('tokenable');
|
||||
$table->string('name');
|
||||
$table->string('token', 64)->unique();
|
||||
$table->text('abilities')->nullable();
|
||||
$table->timestamp('last_used_at')->nullable();
|
||||
$table->timestamp('expires_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('personal_access_tokens');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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('sessions', function (Blueprint $table) {
|
||||
$table->string('id')->primary();
|
||||
$table->foreignId('user_id')->nullable()->index();
|
||||
$table->string('ip_address', 45)->nullable();
|
||||
$table->text('user_agent')->nullable();
|
||||
$table->longText('payload');
|
||||
$table->integer('last_activity')->index();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sessions');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dokter', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nama', 100)->nullable();
|
||||
$table->string('jk', 1)->nullable();
|
||||
$table->date('tgl_lahir')->nullable();
|
||||
$table->string('kota', 100)->nullable();
|
||||
$table->string('alamat', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dokter');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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('db_logbooklist', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('kelompok', 11)->nullable();
|
||||
$table->string('kode', 10)->nullable();
|
||||
$table->string('kepanjangan', 150)->nullable();
|
||||
$table->integer('kuota')->nullable();
|
||||
$table->integer('target')->nullable();
|
||||
$table->integer('kuota2')->nullable();
|
||||
$table->integer('target2')->nullable();
|
||||
$table->integer('kuota3')->nullable();
|
||||
$table->integer('target3')->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('db_logbooklist');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,46 @@
|
||||
<?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('db_rekapppds', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('idkasus')->nullable();
|
||||
$table->integer('idppds')->nullable();
|
||||
$table->string('sebagai', 15)->nullable();
|
||||
$table->string('namappds', 255)->nullable();
|
||||
$table->string('kelompokstase', 150)->nullable();
|
||||
$table->string('kodestase', 150)->nullable();
|
||||
$table->string('kepanjangan', 150)->nullable();
|
||||
$table->integer('target')->nullable();
|
||||
$table->integer('idstase')->nullable();
|
||||
$table->string('nofoto', 100)->nullable();
|
||||
$table->timestamp('verifikasi')->nullable();
|
||||
$table->string('supervisor', 250)->nullable();
|
||||
$table->string('layanan', 250)->nullable();
|
||||
$table->string('klinis', 250)->nullable();
|
||||
$table->string('modality', 50)->nullable();
|
||||
$table->string('ruangan', 150)->nullable();
|
||||
$table->string('durasi', 150)->nullable();
|
||||
$table->string('marking', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('db_rekapppds');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,71 @@
|
||||
<?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('db_syncinsitu', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('noloket')->nullable();
|
||||
$table->string('nofoto', 50)->nullable();
|
||||
$table->string('noregister', 50)->nullable();
|
||||
$table->string('asalpasien', 150)->nullable();
|
||||
$table->string('nmrs', 150)->nullable();
|
||||
$table->string('nmpasien', 250)->nullable();
|
||||
$table->string('jkpasien', 15)->nullable();
|
||||
$table->date('tgllahirpasien')->nullable();
|
||||
$table->string('tlppasien', 150)->nullable();
|
||||
$table->string('alamatpasien', 250)->nullable();
|
||||
$table->string('reques', 150)->nullable();
|
||||
$table->string('usia', 25)->nullable();
|
||||
$table->decimal('berat', $precision = 8, $scale = 2)->nullable();
|
||||
$table->string('ruangan', 50)->nullable();
|
||||
$table->string('nmdokter', 250)->nullable();
|
||||
$table->string('nmppdssenior', 250)->nullable();
|
||||
$table->string('nmmiddleppds', 250)->nullable();
|
||||
$table->string('nmppdsjunior', 250)->nullable();
|
||||
$table->string('nmppdsmiddle2', 250)->nullable();
|
||||
$table->string('nmppdsjunior2', 250)->nullable();
|
||||
$table->string('nmradiografer', 250)->nullable();
|
||||
$table->string('nmexcutor', 250)->nullable();
|
||||
$table->string('klinisi', 250)->nullable();
|
||||
$table->string('klinis', 250)->nullable();
|
||||
$table->text('keterangan')->nullable();
|
||||
$table->string('asuransi', 25)->nullable();
|
||||
$table->string('urgensi', 25)->nullable();
|
||||
$table->string('diagnosa', 250)->nullable();
|
||||
$table->string('diagnosa2', 250)->nullable();
|
||||
$table->string('modality', 50)->nullable();
|
||||
$table->string('kd_spesimen', 255)->nullable();
|
||||
$table->string('nm_spesimen', 255)->nullable();
|
||||
$table->string('dlp', 50)->nullable();
|
||||
$table->timestamp('daftar')->nullable();
|
||||
$table->timestamp('foto')->nullable();
|
||||
$table->timestamp('tgldraft')->nullable();
|
||||
$table->timestamp('baca')->nullable();
|
||||
$table->timestamp('verifikasi')->nullable();
|
||||
$table->timestamp('export')->nullable();
|
||||
$table->timestamp('tgladendum')->nullable();
|
||||
$table->string('status', 150)->nullable();
|
||||
$table->string('spvsender', 150)->nullable();
|
||||
$table->string('created_by', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('db_syncinsitu');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,70 @@
|
||||
<?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('jadwalperiksan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamp('mulai')->nullable();
|
||||
$table->timestamp('akhir')->nullable();
|
||||
$table->string('nofoto', 50)->nullable();
|
||||
$table->integer('noloket')->nullable();
|
||||
$table->string('noregister', 150)->nullable();
|
||||
$table->string('ayah', 150)->nullable();
|
||||
$table->string('asalpasien', 250)->nullable();
|
||||
$table->string('nmrs', 150)->nullable();
|
||||
$table->integer('pasien_id')->nullable();
|
||||
$table->string('reques', 150)->nullable();
|
||||
$table->string('usia', 25)->nullable();
|
||||
$table->decimal('berat', $precision = 8, $scale = 2)->nullable();
|
||||
$table->integer('ruangan_id')->nullable();
|
||||
$table->string('ruangan', 250)->nullable();
|
||||
$table->integer('dokter_id')->nullable();
|
||||
$table->integer('ppdssenior')->nullable();
|
||||
$table->integer('middleppds')->nullable();
|
||||
$table->integer('ppdsjunior')->nullable();
|
||||
$table->integer('radiografer')->nullable();
|
||||
$table->integer('excutor')->nullable();
|
||||
$table->integer('poli_id')->nullable();
|
||||
$table->string('klinisi', 250)->nullable();
|
||||
$table->string('klinis', 250)->nullable();
|
||||
$table->text('keterangan')->nullable();
|
||||
$table->text('kesimpulan')->nullable();
|
||||
$table->string('asuransi', 25)->nullable();
|
||||
$table->string('urgensi', 25)->nullable();
|
||||
$table->integer('diagnosa')->nullable();
|
||||
$table->string('modality', 50)->nullable();
|
||||
$table->string('kilovolt', 50)->nullable();
|
||||
$table->string('mas', 25)->nullable();
|
||||
$table->string('dlp', 50)->nullable();
|
||||
$table->timestamp('daftar')->nullable();
|
||||
$table->timestamp('foto')->nullable();
|
||||
$table->timestamp('baca')->nullable();
|
||||
$table->timestamp('verifikasi')->nullable();
|
||||
$table->timestamp('export')->nullable();
|
||||
$table->string('filefoto', 150)->nullable();
|
||||
$table->string('status', 150)->nullable();
|
||||
$table->string('tandatangan', 150)->nullable();
|
||||
$table->integer('jenisfont')->nullable();
|
||||
$table->integer('jumlah')->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('jadwalperiksan');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,28 @@
|
||||
<?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('jawaban', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->text('jawaban')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('jawaban');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
<?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('pasien', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('norm', 150)->nullable();
|
||||
$table->string('nama', 150)->nullable();
|
||||
$table->string('jk', 1)->nullable();
|
||||
$table->date('tgl_lahir')->nullable();
|
||||
$table->string('kota', 50)->nullable();
|
||||
$table->string('alamat', 100)->nullable();
|
||||
$table->string('telpon', 50)->nullable();
|
||||
$table->string('nik', 50)->nullable();
|
||||
$table->string('bpjs', 50)->nullable();
|
||||
$table->text('keterangan')->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('pasien');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,104 @@
|
||||
<?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('periksa', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->timestamp('mulai')->nullable();
|
||||
$table->timestamp('akhir')->nullable();
|
||||
$table->string('nofoto', 50)->nullable();
|
||||
$table->integer('noloket')->nullable();
|
||||
$table->string('noregister', 150)->nullable();
|
||||
$table->string('asalpasien', 250)->nullable();
|
||||
$table->string('nmrs', 150)->nullable();
|
||||
$table->integer('pasien_id')->nullable();
|
||||
$table->string('nmpasien', 200)->nullable();
|
||||
$table->string('jkpasien', 5)->nullable();
|
||||
$table->date('tgllahirpasien')->nullable();
|
||||
$table->string('tlppasien', 50)->nullable();
|
||||
$table->string('alamatpasien', 50)->nullable();
|
||||
$table->string('reques', 150)->nullable();
|
||||
$table->string('usia', 25)->nullable();
|
||||
$table->string('ktp', 25)->nullable();
|
||||
$table->string('bpjs', 25)->nullable();
|
||||
$table->decimal('berat', $precision = 8, $scale = 2)->nullable();
|
||||
$table->integer('ruangan_id')->nullable();
|
||||
$table->string('ruangan', 250)->nullable();
|
||||
$table->integer('dokter_id')->nullable();
|
||||
$table->integer('ppdssenior')->nullable();
|
||||
$table->integer('middleppds')->nullable();
|
||||
$table->integer('ppdsjunior')->nullable();
|
||||
$table->integer('ppdsmiddle2')->nullable();
|
||||
$table->integer('ppdsjunior2')->nullable();
|
||||
$table->integer('analis')->nullable();
|
||||
$table->integer('excutor')->nullable();
|
||||
$table->string('nmdokter', 250)->nullable();
|
||||
$table->string('nmppdssenior', 250)->nullable();
|
||||
$table->string('nmmiddleppds', 250)->nullable();
|
||||
$table->string('nmppdsjunior', 250)->nullable();
|
||||
$table->string('nmppdsmiddle2', 250)->nullable();
|
||||
$table->string('nmppdsjunior2', 250)->nullable();
|
||||
$table->string('nmanalis', 250)->nullable();
|
||||
$table->string('nmexcutor', 250)->nullable();
|
||||
$table->string('klinisi', 250)->nullable();
|
||||
$table->string('klinis', 250)->nullable();
|
||||
$table->integer('poli_id')->nullable();
|
||||
$table->text('keterangan')->nullable();
|
||||
$table->text('kesimpulan')->nullable();
|
||||
$table->string('asuransi', 25)->nullable();
|
||||
$table->string('urgensi', 25)->nullable();
|
||||
$table->integer('diagnosa')->nullable();
|
||||
$table->string('diagnosa2', 250)->nullable();
|
||||
$table->string('modality', 50)->nullable();
|
||||
$table->string('kd_spesimen', 255)->nullable();
|
||||
$table->string('nm_spesimen', 255)->nullable();
|
||||
$table->string('dlp', 50)->nullable();
|
||||
$table->timestamp('daftar')->nullable();
|
||||
$table->timestamp('foto')->nullable();
|
||||
$table->timestamp('tgldraft')->nullable();
|
||||
$table->timestamp('baca')->nullable();
|
||||
$table->timestamp('verifikasi')->nullable();
|
||||
$table->timestamp('export')->nullable();
|
||||
$table->timestamp('tgladendum')->nullable();
|
||||
$table->string('nmdrafter', 250)->nullable();
|
||||
$table->string('nmpembaca', 250)->nullable();
|
||||
$table->string('nmadendum', 250)->nullable();
|
||||
$table->string('filefoto', 150)->nullable();
|
||||
$table->string('status', 150)->nullable();
|
||||
$table->string('tandatangan', 150)->nullable();
|
||||
$table->string('pendaftar')->nullable();
|
||||
$table->string('nmpendaftar')->nullable();
|
||||
$table->integer('bhp_media')->nullable();
|
||||
$table->integer('bhp_potsputum')->nullable();
|
||||
$table->integer('bhp_poturine')->nullable();
|
||||
$table->integer('bhp_oshe')->nullable();
|
||||
$table->integer('bhp_obyekglass')->nullable();
|
||||
$table->integer('bhp_botolbd')->nullable();
|
||||
$table->integer('bhp_parafilm')->nullable();
|
||||
$table->integer('bhp_tips')->nullable();
|
||||
$table->integer('bhp_cottonswab')->nullable();
|
||||
$table->integer('bhp_antibiotiktambahan')->nullable();
|
||||
$table->string('id_esbl', 5)->nullable();
|
||||
$table->string('id_mrsa', 5)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('periksa');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('poli', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('poli', 250)->nullable();
|
||||
$table->string('subpoli', 250)->nullable();
|
||||
$table->string('subsubpoli', 250)->nullable();
|
||||
$table->string('modaliti', 150)->nullable();
|
||||
$table->string('modaliti2', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('poli');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('riwayatjawaban', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nofoto', 250)->nullable();
|
||||
$table->mediumText('jawaban')->nullable();
|
||||
$table->string('inputor', 250)->nullable();
|
||||
$table->string('keterangan', 150)->nullable();
|
||||
$table->string('verifikasi', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('riwayatjawaban');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('ruangan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('poli', 250)->nullable();
|
||||
$table->string('ruangan', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('ruangan');
|
||||
}
|
||||
};
|
||||
@@ -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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('setting', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->ipAddress('pacs')->nullable();
|
||||
$table->ipAddress('zfp')->nullable();
|
||||
$table->integer('port')->nullable();
|
||||
$table->integer('portzfp')->nullable();
|
||||
$table->string('username', 250)->nullable();
|
||||
$table->string('password', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('setting');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,32 @@
|
||||
<?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('subjawaban', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('kategori')->nullable();
|
||||
$table->string('judul', 250)->nullable();
|
||||
$table->text('subjawaban')->nullable();
|
||||
$table->text('kesimpulan')->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('subjawaban');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('worklist', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('aetitle', 250)->nullable();
|
||||
$table->integer('portnumber')->nullable();
|
||||
$table->ipAddress('ipaddress')->nullable();
|
||||
$table->string('location', 250)->nullable();
|
||||
$table->string('modaliti', 25)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('worklist');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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('x_files', function (Blueprint $table) {
|
||||
$table->increments('xid');
|
||||
$table->string('xmarking', 250)->unique();
|
||||
$table->text('xtabel')->nullable();
|
||||
$table->string('xjenis', 250)->nullable();
|
||||
$table->longText('xfile')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('x_files');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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('notifications', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('type');
|
||||
$table->morphs('notifiable');
|
||||
$table->text('data');
|
||||
$table->timestamp('read_at')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('notifications');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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('samples', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('patient_name', 250)->nullable();
|
||||
$table->string('test_details', 255)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('samples');
|
||||
}
|
||||
};
|
||||
@@ -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
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('test_results', function (Blueprint $table) {
|
||||
$table->id(); // ID primary key
|
||||
$table->unsignedBigInteger('sample_id'); // Kolom referensi
|
||||
$table->text('result'); // Kolom result
|
||||
$table->string('status', 50); // Kolom status
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
// Foreign key
|
||||
$table->foreign('sample_id')->references('id')->on('samples')->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('test_results');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,84 @@
|
||||
<?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('resultraw', function (Blueprint $table) {
|
||||
// Header Record
|
||||
$table->id();
|
||||
$table->string('sender_name')->nullable();
|
||||
$table->string('version_number')->nullable();
|
||||
$table->timestamp('message_datetime')->nullable();
|
||||
|
||||
// Patient Record
|
||||
$table->string('patient_id')->nullable();
|
||||
$table->string('patient_name_last')->nullable();
|
||||
$table->string('patient_name_first')->nullable();
|
||||
$table->string('patient_name_middle')->nullable();
|
||||
$table->string('patient_name_suffix')->nullable();
|
||||
$table->string('patient_name_title')->nullable();
|
||||
$table->timestamp('patient_dob')->nullable();
|
||||
$table->string('patient_sex')->nullable();
|
||||
$table->string('address_street')->nullable();
|
||||
$table->string('address_city')->nullable();
|
||||
$table->string('address_state')->nullable();
|
||||
$table->string('address_zip')->nullable();
|
||||
$table->string('address_country')->nullable();
|
||||
$table->string('patient_phone')->nullable();
|
||||
$table->string('admitting_physician')->nullable();
|
||||
$table->text('patient_diagnosis')->nullable();
|
||||
$table->json('patient_therapy')->nullable(); // For patient therapies
|
||||
$table->timestamp('admit_datetime')->nullable();
|
||||
$table->string('room_number')->nullable();
|
||||
$table->string('hospital_service')->nullable();
|
||||
$table->string('hospital_client')->nullable();
|
||||
|
||||
// Order Record
|
||||
$table->string('accession_number')->nullable();
|
||||
$table->string('isolate_number')->nullable();
|
||||
$table->string('organism')->nullable();
|
||||
$table->string('specimen_type')->nullable();
|
||||
$table->string('body_site')->nullable();
|
||||
$table->boolean('exclude_isolate_from_statistics')->nullable();
|
||||
$table->string('test_id')->nullable();
|
||||
|
||||
// Result Record
|
||||
$table->string('result_type_code')->nullable();
|
||||
$table->string('antibiotic')->nullable();
|
||||
$table->string('antibiotic_concentration')->nullable();
|
||||
$table->string('antibiotic_concentration_units')->nullable();
|
||||
$table->string('test_status')->nullable();
|
||||
$table->text('result_data')->nullable();
|
||||
$table->string('preliminary_final_status')->nullable();
|
||||
$table->timestamp('test_start_datetime')->nullable();
|
||||
$table->timestamp('result_status_datetime')->nullable();
|
||||
$table->timestamp('test_complete_datetime')->nullable();
|
||||
$table->timestamp('media_setup_datetime')->nullable();
|
||||
$table->string('instrument_type')->nullable();
|
||||
$table->string('media_assay_type')->nullable();
|
||||
$table->string('protocol_length')->nullable();
|
||||
$table->string('instrument_number')->nullable();
|
||||
$table->string('instrument_location')->nullable();
|
||||
$table->string('protocol_name')->nullable();
|
||||
$table->json('additional_result')->nullable(); // To handle multiple results (1-5)
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('resultraw');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,51 @@
|
||||
<?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('patientraw', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('sender_name');
|
||||
$table->string('version_number');
|
||||
$table->timestamp('message_datetime');
|
||||
$table->string('patient_id');
|
||||
$table->string('patient_last_name');
|
||||
$table->string('patient_first_name')->nullable();
|
||||
$table->string('patient_middle_name')->nullable();
|
||||
$table->string('patient_suffix')->nullable();
|
||||
$table->string('patient_title')->nullable();
|
||||
$table->date('date_of_birth');
|
||||
$table->char('patient_sex');
|
||||
$table->string('address_street');
|
||||
$table->string('address_city')->nullable();
|
||||
$table->string('address_state')->nullable();
|
||||
$table->string('address_zip')->nullable();
|
||||
$table->string('address_country')->nullable();
|
||||
$table->string('phone_number')->nullable();
|
||||
$table->string('admitting_physician');
|
||||
$table->string('diagnosis')->nullable();
|
||||
$table->string('therapy')->nullable();
|
||||
$table->timestamp('admit_datetime');
|
||||
$table->string('room_number');
|
||||
$table->string('hospital_service');
|
||||
$table->string('hospital_client');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('patientraw');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateOrganismsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('organisms', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('category');
|
||||
$table->string('kelompok');
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('organisms');
|
||||
}
|
||||
}
|
||||
@@ -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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('sirab', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('family', 150)->nullable();
|
||||
$table->string('spesies', 150)->nullable();
|
||||
$table->string('antibiotik', 150)->nullable();
|
||||
$table->string('subantibiotik', 150)->nullable();
|
||||
$table->string('diskcontent', 100)->nullable();
|
||||
$table->integer('batasatas')->nullable();
|
||||
$table->string('midrange', 150)->nullable();
|
||||
$table->integer('batasbawah')->nullable();
|
||||
$table->string('sumber', 255)->nullable();
|
||||
$table->string('kodedok', 50)->nullable();
|
||||
$table->string('atu', 50)->nullable();
|
||||
$table->string('kelompok', 50)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sirab');
|
||||
}
|
||||
};
|
||||
@@ -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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('rekapantibiotik', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('antibiotic', 150)->nullable();
|
||||
$table->string('resistance', 150)->nullable();
|
||||
$table->string('value', 150)->nullable();
|
||||
$table->string('interpretation', 150)->nullable();
|
||||
$table->string('glassreportname', 150)->nullable();
|
||||
$table->integer('orderid')->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('rekapantibiotik');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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('simbhpjenis', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('kodejenis', 150)->nullable();
|
||||
$table->string('jenis', 150)->nullable();
|
||||
$table->string('satuan', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('simbhpjenis');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,37 @@
|
||||
<?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('simbhpreport', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('tanggal')->nullable();
|
||||
$table->integer('bulan')->nullable();
|
||||
$table->integer('tahun')->nullable();
|
||||
$table->text('deskripsi')->nullable();
|
||||
$table->integer('pemasukan')->nullable();
|
||||
$table->integer('pengeluaran')->nullable();
|
||||
$table->string('jenis', 150)->nullable();
|
||||
$table->string('keterangan', 150)->nullable();
|
||||
$table->string('marking', 150)->nullable();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
$table->timestamp('updated_at')->useCurrent();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('simbhpreport');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user