36 lines
984 B
PHP
36 lines
984 B
PHP
<?php
|
|
|
|
namespace App\Services\Pacs;
|
|
|
|
use League\Url\Url;
|
|
|
|
final class PacsUrlGen
|
|
{
|
|
public static function stoneViewer(string $study_uid): string
|
|
{
|
|
$url = Url::createFromUrl(config('pacs.viewer.stone.endpoint'));
|
|
$url->setPath('/stone-webviewer/index.html');
|
|
$url->setQuery(['study' => $study_uid]);
|
|
|
|
return (string) $url;
|
|
}
|
|
|
|
public static function ohifViewer(string $study_uid): string
|
|
{
|
|
$url = Url::createFromUrl(config('pacs.viewer.ohif.endpoint'));
|
|
$url->setPath('/ohif/viewer');
|
|
$url->setQuery(['StudyInstanceUIDs' => $study_uid]);
|
|
|
|
return (string) $url;
|
|
}
|
|
|
|
public static function ohifViewerMpr(string $study_uid): string
|
|
{
|
|
$url = Url::createFromUrl(config('pacs.viewer.ohif.endpoint'));
|
|
$url->setPath('/ohif/viewer');
|
|
$url->setQuery(['StudyInstanceUIDs' => $study_uid, 'hangingprotocolId' => 'mprAnd3DVolumeViewport']);
|
|
|
|
return (string) $url;
|
|
}
|
|
}
|