'CATCH-ALL', 'is_active' => true, ]); $chev = Organization::create([ 'name' => 'Chevron', 'is_active' => true, ]); $cmch = Organization::create([ 'name' => 'CMCH', 'is_active' => true, ]); $dummy = Organization::create([ 'name' => 'Dummy Site', 'is_active' => false, ]); $dept_chev_xr = Department::create( [ 'is_active' => true, 'name' => 'Chev-CR', 'organization_id' => $chev->id, ] ); $chev_dep_ct_mr = Department::create( [ 'is_active' => true, 'name' => 'Chev-MR', 'organization_id' => $chev->id, ] ); $dept_cmch_mr = Department::create( [ 'is_active' => false, 'name' => 'CMCH MR', 'organization_id' => $cmch->id, ] ); $rul_chev_mr_ct = DicomRoutingRule::create( [ 'is_active' => true, 'name' => 'Chevron MR/CT', 'organization_id' => $chev->id, 'department_id' => $chev_dep_ct_mr->id, 'condition' => 'study.institution_name starts with "chevron" and not (study.modality in ["CR", "DX", "MG"])', ] ); $rul_chev_xr = DicomRoutingRule::create( [ 'is_active' => true, 'name' => 'Chevron X-ray', 'organization_id' => $chev->id, 'department_id' => $dept_chev_xr->id, 'condition' => 'study.institution_name starts with "chevron" and study.modality in ["CR", "DX", "MG"]', 'priority' => 99, ] ); DicomServer::create( [ 'is_active' => true, 'server_name' => 'CTG-1', 'geo_code' => 'BD', 'host' => 'pacs.mylabctg.com', 'port' => 8042, 'rest_api_endpoint' => 'http://pacs.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, 'rest_api_endpoint' => 'http://pacs.mylabctg.com:8042/', 'ae_title' => 'RADFUSION', 'wado_path' => 'dicom-web', 'stone_viewer_path' => 'stone-webviewer/index.html', 'ohif_viewer_path' => 'ohif/viewer', 'organization_id' => $chev->id, 'department_id' => $dept_chev_xr->id, ] ); } }