trgc
This commit is contained in:
parent
8ba341e6cf
commit
37681bf286
@ -18,17 +18,8 @@ final class DicomStudyRouter
|
|||||||
private static ?Collection $rules;
|
private static ?Collection $rules;
|
||||||
private static ?Collection $activeRads;
|
private static ?Collection $activeRads;
|
||||||
private static int $catchAll = -1;
|
private static int $catchAll = -1;
|
||||||
const int CACHE_TTL = 15;
|
|
||||||
|
|
||||||
private static function fallbackRoute(): array
|
const int CACHE_TTL = 15;
|
||||||
{
|
|
||||||
return [
|
|
||||||
'institute_id' => self::$catchAll,
|
|
||||||
'facility_id' => null,
|
|
||||||
'rule_id' => null,
|
|
||||||
'radiologists' => null,
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function matchStudy(array $dicomHeaders): array
|
public static function matchStudy(array $dicomHeaders): array
|
||||||
{
|
{
|
||||||
@ -58,6 +49,16 @@ public static function matchStudy(array $dicomHeaders): array
|
|||||||
return self::fallbackRoute();
|
return self::fallbackRoute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static function fallbackRoute(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'institute_id' => self::$catchAll,
|
||||||
|
'facility_id' => null,
|
||||||
|
'rule_id' => null,
|
||||||
|
'radiologists' => null,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
private static function initialize(): void
|
private static function initialize(): void
|
||||||
{
|
{
|
||||||
if (is_null(self::$rules)) {
|
if (is_null(self::$rules)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user