feat: initialize Dr-Panel project with patient file number support
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\LabTest;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class LabTestSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$tests = [
|
||||
'CBC',
|
||||
'PT/PTT/INR',
|
||||
'BS',
|
||||
'HIV/Ab',
|
||||
'HBS/Ag',
|
||||
'Hcv/Ab',
|
||||
];
|
||||
|
||||
foreach ($tests as $name) {
|
||||
LabTest::firstOrCreate(
|
||||
['name' => $name],
|
||||
['is_default' => true, 'is_active' => true],
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user