From b541bdfd17ff11d0cb1c48ab8c379e824d92c102 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Thu, 23 Jan 2025 14:24:34 +0600 Subject: [PATCH] refx --- .../StudyRouter/{RawDicomTag.php => RawDicomTags.php} | 2 +- database/seeders/OrganizationSeeder.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename app/Services/StudyRouter/{RawDicomTag.php => RawDicomTags.php} (99%) diff --git a/app/Services/StudyRouter/RawDicomTag.php b/app/Services/StudyRouter/RawDicomTags.php similarity index 99% rename from app/Services/StudyRouter/RawDicomTag.php rename to app/Services/StudyRouter/RawDicomTags.php index bdd0f64..32ed94f 100644 --- a/app/Services/StudyRouter/RawDicomTag.php +++ b/app/Services/StudyRouter/RawDicomTags.php @@ -2,7 +2,7 @@ namespace App\Services\StudyRouter; -enum RawDicomTag: string +enum RawDicomTags: string { case PatientName = '0010,0010'; // Patient's Name case PatientID = '0010,0020'; // Patient ID diff --git a/database/seeders/OrganizationSeeder.php b/database/seeders/OrganizationSeeder.php index 7d23fa6..1183b7c 100644 --- a/database/seeders/OrganizationSeeder.php +++ b/database/seeders/OrganizationSeeder.php @@ -9,7 +9,7 @@ use App\Models\DicomRuleCondition; use App\Models\DicomServer; use App\Models\Organization; -use App\Services\StudyRouter\RawDicomTag; +use App\Services\StudyRouter\RawDicomTags; use Illuminate\Database\Seeder; class OrganizationSeeder extends Seeder @@ -77,14 +77,14 @@ public function run(): void ); DicomRuleCondition::create([ - 'dicom_tag' => RawDicomTag::InstitutionName->value, + 'dicom_tag' => RawDicomTags::InstitutionName->value, 'search_pattern' => 'chevron', 'dicom_routing_rule_id' => $rul_chev_mr_ct->id, 'match_mode' => MatchMode::Contains->value, 'case_sensitive' => false, ]); DicomRuleCondition::create([ - 'dicom_tag' => RawDicomTag::Modality->value, + 'dicom_tag' => RawDicomTags::Modality->value, 'search_pattern' => 'MR,CT', 'dicom_routing_rule_id' => $rul_chev_mr_ct->id, 'match_mode' => MatchMode::InList->value, @@ -92,14 +92,14 @@ public function run(): void ]); DicomRuleCondition::create([ - 'dicom_tag' => RawDicomTag::InstitutionName->value, + 'dicom_tag' => RawDicomTags::InstitutionName->value, 'search_pattern' => 'chevron', 'dicom_routing_rule_id' => $rul_chev_xr->id, 'match_mode' => MatchMode::Contains->value, 'case_sensitive' => false, ]); DicomRuleCondition::create([ - 'dicom_tag' => RawDicomTag::Modality->value, + 'dicom_tag' => RawDicomTags::Modality->value, 'search_pattern' => 'CR,DX,MG', 'dicom_routing_rule_id' => $rul_chev_xr->id, 'match_mode' => MatchMode::InList->value,