diff --git a/app/Services/Pacs/PacsUrlGen.php b/app/Services/Pacs/PacsUrlGen.php index bad9996..73fb32f 100644 --- a/app/Services/Pacs/PacsUrlGen.php +++ b/app/Services/Pacs/PacsUrlGen.php @@ -28,7 +28,26 @@ 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']); + $url->setQuery([ + 'hangingprotocolId' => 'mprAnd3DVolumeViewport', + 'StudyInstanceUIDs' => $study_uid, + ]); + + return (string) $url; + } + + public static function ohifSegmentation(string $study_uid): string + { + $url = Url::createFromUrl(config('pacs.viewer.ohif.endpoint')); + $url->setPath('/ohif/segmentation'); + $url->setQuery(['StudyInstanceUIDs' => $study_uid]); + + return (string) $url; + } + public static function archive(string $study_uid): string + { + $url = Url::createFromUrl(config('pacs.api.endpoint')); + $url->setPath('/studies/'.$study_uid.'/archive'); return (string) $url; } diff --git a/resources/views/pacs/studies.blade.php b/resources/views/pacs/studies.blade.php index 8ee283c..0da03d1 100644 --- a/resources/views/pacs/studies.blade.php +++ b/resources/views/pacs/studies.blade.php @@ -6,7 +6,7 @@
-
+
@@ -18,9 +18,12 @@ + + + @@ -32,9 +35,26 @@ + + + + @endforeach
Patient Name Patient Sex Patient Birth DateModality Study Date Receive DateSeries Institute Name 
{{ $study->patient_name }} {{ $study->patient_sex }} {{ $study->patient_birthdate }}{{ $study->study_modality }} {{ $study->study_date }} {{ $study->receive_date }}{{ $study->image_count }} / {{ $study->series_count }} {{ $study->institution_name }} + St + | + OHF + @if($study->image_count > 1 && $study->study_modality != 'CR') + | + MPR + | + SEG + @endif + | + ZIP + +