refx
This commit is contained in:
parent
11d99ee746
commit
b541bdfd17
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Services\StudyRouter;
|
namespace App\Services\StudyRouter;
|
||||||
|
|
||||||
enum RawDicomTag: string
|
enum RawDicomTags: string
|
||||||
{
|
{
|
||||||
case PatientName = '0010,0010'; // Patient's Name
|
case PatientName = '0010,0010'; // Patient's Name
|
||||||
case PatientID = '0010,0020'; // Patient ID
|
case PatientID = '0010,0020'; // Patient ID
|
@ -9,7 +9,7 @@
|
|||||||
use App\Models\DicomRuleCondition;
|
use App\Models\DicomRuleCondition;
|
||||||
use App\Models\DicomServer;
|
use App\Models\DicomServer;
|
||||||
use App\Models\Organization;
|
use App\Models\Organization;
|
||||||
use App\Services\StudyRouter\RawDicomTag;
|
use App\Services\StudyRouter\RawDicomTags;
|
||||||
use Illuminate\Database\Seeder;
|
use Illuminate\Database\Seeder;
|
||||||
|
|
||||||
class OrganizationSeeder extends Seeder
|
class OrganizationSeeder extends Seeder
|
||||||
@ -77,14 +77,14 @@ public function run(): void
|
|||||||
);
|
);
|
||||||
|
|
||||||
DicomRuleCondition::create([
|
DicomRuleCondition::create([
|
||||||
'dicom_tag' => RawDicomTag::InstitutionName->value,
|
'dicom_tag' => RawDicomTags::InstitutionName->value,
|
||||||
'search_pattern' => 'chevron',
|
'search_pattern' => 'chevron',
|
||||||
'dicom_routing_rule_id' => $rul_chev_mr_ct->id,
|
'dicom_routing_rule_id' => $rul_chev_mr_ct->id,
|
||||||
'match_mode' => MatchMode::Contains->value,
|
'match_mode' => MatchMode::Contains->value,
|
||||||
'case_sensitive' => false,
|
'case_sensitive' => false,
|
||||||
]);
|
]);
|
||||||
DicomRuleCondition::create([
|
DicomRuleCondition::create([
|
||||||
'dicom_tag' => RawDicomTag::Modality->value,
|
'dicom_tag' => RawDicomTags::Modality->value,
|
||||||
'search_pattern' => 'MR,CT',
|
'search_pattern' => 'MR,CT',
|
||||||
'dicom_routing_rule_id' => $rul_chev_mr_ct->id,
|
'dicom_routing_rule_id' => $rul_chev_mr_ct->id,
|
||||||
'match_mode' => MatchMode::InList->value,
|
'match_mode' => MatchMode::InList->value,
|
||||||
@ -92,14 +92,14 @@ public function run(): void
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
DicomRuleCondition::create([
|
DicomRuleCondition::create([
|
||||||
'dicom_tag' => RawDicomTag::InstitutionName->value,
|
'dicom_tag' => RawDicomTags::InstitutionName->value,
|
||||||
'search_pattern' => 'chevron',
|
'search_pattern' => 'chevron',
|
||||||
'dicom_routing_rule_id' => $rul_chev_xr->id,
|
'dicom_routing_rule_id' => $rul_chev_xr->id,
|
||||||
'match_mode' => MatchMode::Contains->value,
|
'match_mode' => MatchMode::Contains->value,
|
||||||
'case_sensitive' => false,
|
'case_sensitive' => false,
|
||||||
]);
|
]);
|
||||||
DicomRuleCondition::create([
|
DicomRuleCondition::create([
|
||||||
'dicom_tag' => RawDicomTag::Modality->value,
|
'dicom_tag' => RawDicomTags::Modality->value,
|
||||||
'search_pattern' => 'CR,DX,MG',
|
'search_pattern' => 'CR,DX,MG',
|
||||||
'dicom_routing_rule_id' => $rul_chev_xr->id,
|
'dicom_routing_rule_id' => $rul_chev_xr->id,
|
||||||
'match_mode' => MatchMode::InList->value,
|
'match_mode' => MatchMode::InList->value,
|
||||||
|
Loading…
Reference in New Issue
Block a user