This commit is contained in:
Dr Masroor Ehsan 2025-01-10 14:41:37 +06:00
parent d7f3eaf85b
commit 0bcdd065be
2 changed files with 6 additions and 0 deletions

View File

@ -12,9 +12,11 @@ public function up(): void
{ {
Schema::create('orthanc_hosts', static function (Blueprint $table) { Schema::create('orthanc_hosts', static function (Blueprint $table) {
$table->id(); $table->id();
$table->boolean('is_active')->index();
$table->string('server_name')->unique(); $table->string('server_name')->unique();
$table->string('host'); $table->string('host');
$table->integer('port'); $table->integer('port');
$table->string('rest_api_endpoint');
$table->string('ae_title')->nullable(); $table->string('ae_title')->nullable();
$table->string('username')->nullable(); $table->string('username')->nullable();
$table->string('password')->nullable(); $table->string('password')->nullable();

View File

@ -53,17 +53,21 @@ public function run(): void
OrthancHost::create( OrthancHost::create(
[ [
'is_active' => true,
'server_name' => 'Orthanc Main', 'server_name' => 'Orthanc Main',
'host' => 'pacs.mylabctg.com', 'host' => 'pacs.mylabctg.com',
'port' => 8042, 'port' => 8042,
'rest_api_endpoint' => 'http://pacs.mylabctg.com:8042/',
'ae_title' => 'RADFUSION', 'ae_title' => 'RADFUSION',
] ]
); );
OrthancHost::create( OrthancHost::create(
[ [
'is_active' => false,
'server_name' => 'Orthanc XR', 'server_name' => 'Orthanc XR',
'host' => 'pacs.mylabctg.com', 'host' => 'pacs.mylabctg.com',
'port' => 8043, 'port' => 8043,
'rest_api_endpoint' => 'http://pacs.mylabctg.com:8042/',
'ae_title' => 'RADFUSION', 'ae_title' => 'RADFUSION',
'institute_id' => $chev->id, 'institute_id' => $chev->id,
'facility_id' => $chev_xr->id, 'facility_id' => $chev_xr->id,