From a1b6856fbc37a74247b9643d714e83eead9283c8 Mon Sep 17 00:00:00 2001 From: Masroor Ehsan Date: Mon, 30 Dec 2024 19:06:28 +0600 Subject: [PATCH] enhance --- app/Services/Pacs/OrthancRestClient.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/app/Services/Pacs/OrthancRestClient.php b/app/Services/Pacs/OrthancRestClient.php index 84529ef..91b9ec0 100644 --- a/app/Services/Pacs/OrthancRestClient.php +++ b/app/Services/Pacs/OrthancRestClient.php @@ -20,6 +20,27 @@ public function getStudyStatistics(string $study_id): array return json_decode($response->getBody()->getContents(), true); } + public function getServerStatistics(): array + { + $response = $this->getClient()->get('/statistics'); + + return json_decode($response->getBody()->getContents(), true); + } + + public function getStudySeries(string $study_id): array + { + $response = $this->getClient()->get('/studies/'.$study_id.'/series?expand'); + + return json_decode($response->getBody()->getContents(), true); + } + + public function getStudyInstances(string $study_id): array + { + $response = $this->getClient()->get('/studies/'.$study_id.'/instances?expand'); + + return json_decode($response->getBody()->getContents(), true); + } + public function getStudyDetails(string $study_id): array { $query = [