From ab91230dfab385f2f3fc054384b6faac2fa2a604 Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Fri, 10 Jan 2025 15:45:43 +0600 Subject: [PATCH] minor fix --- app/Models/Study.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Models/Study.php b/app/Models/Study.php index b31847e..e8b9b0c 100644 --- a/app/Models/Study.php +++ b/app/Models/Study.php @@ -163,7 +163,7 @@ public function getReportStatusLedAttribute(): string public function getArchiveLink(): ?string { if (me()->may(Permission::StudyDownload)) { - return PacsUrlGen::archive($this->orthancHost, $this->study_instance_uid); + return PacsUrlGen::archive($this->orthancHost, $this); } return null; @@ -172,7 +172,7 @@ public function getArchiveLink(): ?string public function getStoneLink(): ?string { if (me()->may(Permission::StudyDownload)) { - return PacsUrlGen::stoneViewer($this->orthancHost, $this->study_instance_uid); + return PacsUrlGen::stoneViewer($this->orthancHost, $this); } return null; @@ -181,7 +181,7 @@ public function getStoneLink(): ?string public function getOhifLink(): ?string { if (me()->may(Permission::StudyDownload)) { - return PacsUrlGen::ohifViewer($this->orthancHost, $this->study_instance_uid); + return PacsUrlGen::ohifViewer($this->orthancHost, $this); } return null; @@ -190,7 +190,7 @@ public function getOhifLink(): ?string public function getOhifSegmentationLink(): ?string { if (me()->may(Permission::StudyDownload)) { - return PacsUrlGen::ohifSegmentation($this->orthancHost, $this->study_instance_uid); + return PacsUrlGen::ohifSegmentation($this->orthancHost, $this); } return null; @@ -199,7 +199,7 @@ public function getOhifSegmentationLink(): ?string public function getOhifMprLink(): ?string { if (me()->may(Permission::StudyDownload)) { - return PacsUrlGen::ohifViewerMpr($this->orthancHost, $this->study_instance_uid); + return PacsUrlGen::ohifViewerMpr($this->orthancHost, $this); } return null;