This commit is contained in:
Dr Masroor Ehsan 2025-01-10 14:30:13 +06:00
parent a8ce963fac
commit d7f3eaf85b

View File

@ -3,7 +3,9 @@
namespace Database\Seeders;
use App\Domain\Rule\NameMatchModes;
use App\Models\Facility;
use App\Models\Institute;
use App\Models\OrthancHost;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
@ -28,6 +30,16 @@ public function run(): void
'is_active' => false,
]);
$chev_xr = Facility::create(
[
'server_name' => 'Orthanc Main',
'host' => 'pacs.mylabctg.com',
'port' => 8042,
'ae_title' => 'RADFUSION',
'institute_id' => $chev->id,
]
);
DB::table('institute_names')->insert([
'name' => 'CHEVRON CLINICAL LABORATORY , PANCHLAISH,CTG',
'institute_id' => $chev->id,
@ -38,5 +50,24 @@ public function run(): void
'institute_id' => $chev->id,
'match_mode' => NameMatchModes::StartsWith->value,
]);
OrthancHost::create(
[
'server_name' => 'Orthanc Main',
'host' => 'pacs.mylabctg.com',
'port' => 8042,
'ae_title' => 'RADFUSION',
]
);
OrthancHost::create(
[
'server_name' => 'Orthanc XR',
'host' => 'pacs.mylabctg.com',
'port' => 8043,
'ae_title' => 'RADFUSION',
'institute_id' => $chev->id,
'facility_id' => $chev_xr->id,
]
);
}
}