From 3b9f677804decb630d5a27b45976598b2270b5ee Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Tue, 28 Jan 2025 22:04:40 +0600 Subject: [PATCH] dicom DDL --- ...1_31_074312_create_dicom_servers_table.php | 3 ++- database/seeders/OrganizationSeeder.php | 21 +++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/database/migrations/0000_01_31_074312_create_dicom_servers_table.php b/database/migrations/0000_01_31_074312_create_dicom_servers_table.php index fe8ab3e..ad88f2e 100644 --- a/database/migrations/0000_01_31_074312_create_dicom_servers_table.php +++ b/database/migrations/0000_01_31_074312_create_dicom_servers_table.php @@ -16,7 +16,8 @@ public function up(): void $table->string('server_name')->unique(); $table->string('geo_code', 2)->index(); $table->string('host'); - $table->integer('port'); + $table->integer('http_port'); + $table->integer('dicom_port'); $table->string('rest_api_endpoint'); $table->string('ae_title')->nullable(); $table->string('username')->nullable(); diff --git a/database/seeders/OrganizationSeeder.php b/database/seeders/OrganizationSeeder.php index dad73fb..e160131 100644 --- a/database/seeders/OrganizationSeeder.php +++ b/database/seeders/OrganizationSeeder.php @@ -78,7 +78,8 @@ public function run(): void 'server_name' => 'CTG-1', 'geo_code' => 'BD', 'host' => 'pacs.mylabctg.com', - 'port' => 8042, + 'http_port' => 8042, + 'dicom_port' => 4242, 'rest_api_endpoint' => 'http://pacs.mylabctg.com:8042/', 'wado_path' => 'dicom-web', 'ae_title' => 'RADFUSION', @@ -86,13 +87,29 @@ public function run(): void 'ohif_viewer_path' => 'ohif/viewer', ] ); + DicomServer::create( + [ + 'is_active' => true, + 'server_name' => 'HEL-1', + 'geo_code' => 'FI', + 'host' => 'helsinki.mylabctg.com', + 'http_port' => 8042, + 'dicom_port' => 4242, + 'rest_api_endpoint' => 'http://helsinki.mylabctg.com:8042/', + 'wado_path' => 'dicom-web', + 'ae_title' => 'RADFUSION', + 'stone_viewer_path' => 'stone-webviewer/index.html', + 'ohif_viewer_path' => 'ohif/viewer', + ] + ); DicomServer::create( [ 'is_active' => false, 'server_name' => 'MAA-1', 'host' => 'pacs.mylabctg.com', 'geo_code' => 'IN', - 'port' => 8043, + 'http_port' => 8043, + 'dicom_port' => 4242, 'rest_api_endpoint' => 'http://pacs.mylabctg.com:8042/', 'ae_title' => 'RADFUSION', 'wado_path' => 'dicom-web',