This commit is contained in:
Duidev Software House
2025-11-29 21:54:46 +07:00
parent 3d093a3c30
commit d228103a89
11 changed files with 169 additions and 118 deletions
@@ -26,6 +26,7 @@ return new class extends Migration
$table->string('atu', 50)->nullable();
$table->string('kelompok', 50)->nullable();
$table->integer('cek')->nullable();
$table->string('setmanual', 255)->nullable();
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
});
@@ -22,6 +22,9 @@ return new class extends Migration
$table->integer('orderid')->nullable();
$table->boolean('printrow')->nullable();
$table->boolean('printcol')->nullable();
$table->string('batasatas', 150)->nullable();
$table->string('midrange', 150)->nullable();
$table->string('batasbawah', 150)->nullable();
$table->timestamp('created_at')->useCurrent();
$table->timestamp('updated_at')->useCurrent();
});
+28 -15
View File
@@ -26,26 +26,39 @@ class DatabaseSeeder extends Seeder
'previlage' => 'developer',
]);
}
$ceksudah = User::where('username', 'doktestes')->count();
if ($ceksudah == 0){
User::create([
'nama' => 'doktestes',
'username' => 'doktestes',
'password' => bcrypt('doktestes'),
'previlage' => 'supervisor',
]);
}
$ceksudah = User::where('username', 'ppdstes')->count();
if ($ceksudah == 0){
User::create([
'nama' => 'ppdstes',
'username' => 'ppdstes',
'password' => bcrypt('ppdstes'),
'previlage' => 'ppds',
]);
}
$ceksudah = User::where('username', 'analistes')->count();
if ($ceksudah == 0){
User::create([
'nama' => 'analistes',
'username' => 'analistes',
'password' => bcrypt('analistes'),
'previlage' => 'analis',
]);
}
$json1 = file_get_contents(database_path('seeders/data/ruangan.json'));
$data1 = json_decode($json1, true);
DB::table('ruangan')->insert($data1);
$this->call(JawabanSeeder::class);
$this->call(OrganismSeeder::class);
$this->call(SirabSeeder::class);
DB::table('poli')->insert([
['poli' => 'Mikrobiologi', 'subpoli' => '10 SPUTUM - 10 3 4 KULTUR AEROB SPUTUM DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '2.3.5 KULTUR AEROB SEKRET DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '1.3.1 PEWARNAAN GRAM URINE', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '7.3.1 PEWARNAAN GRAM SWAB TELINGA', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '8.3.1 PEWARNAAN GRAM SPESIMEN MATA', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '1.3.4 KULTUR AEROP URINE DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '4.3.3 KULTUR DARAH AEROB DEWASA 1 BOTOL DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '4.3.7 KULTUR JAMUR DARAH', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '5.3.1 PEWARNAAN GRAM SWAB TENGGOROK', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '5.3.2 PEWARNAAN NEISSER SWAB TENGGOROK', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '5.3.4 KULTUR AEROB SWAB TENGGOROK DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '10.3.4 KULTUR AEROB SPUTUM DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
['poli' => 'Mikrobiologi', 'subpoli' => '4.3.5 KULTUR DARAH AEROB PEDIATRI 1 BOTOL DAN UJI KEPEKAAN AB', 'subsubpoli' => '', 'modaliti' => '', 'modaliti2' => ''],
]);
$this->call(PoliSeeder::class);
}
}
+2 -1
View File
@@ -22,7 +22,8 @@ class JawabanSeeder extends Seeder
['kategori' => '1', 'judul' => 'Pewarna Langsung', 'subjawaban' => '', 'kesimpulan' => ''],
['kategori' => '1', 'judul' => 'TBC', 'subjawaban' => '', 'kesimpulan' => ''],
['kategori' => '1', 'judul' => 'Viral Load', 'subjawaban' => '', 'kesimpulan' => ''],
['kategori' => '1', 'judul' => 'PCR COVID', 'subjawaban' => '', 'kesimpulan' => '']
['kategori' => '1', 'judul' => 'PCR COVID', 'subjawaban' => '', 'kesimpulan' => ''],
['kategori' => '1', 'judul' => 'IgM/IgG Leptospira', 'subjawaban' => '', 'kesimpulan' => '']
]);
DB::table('dokter')->insert([
[ 'id' => 2, 'nama' => 'NON DOKTER', 'jk' => '', 'tgl_lahir' => null, 'kota' => 'ND', 'alamat' => 'UMUM', 'created_at' => '2025-08-02 07:14:51', 'updated_at' => '2025-08-02 07:14:51'],