source: vendor/google/apiclient-services/src/CloudHealthcare/Resource/ProjectsLocationsDatasetsDicomStoresStudies.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 9.2 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\CloudHealthcare\Resource;
19
20use Google\Service\CloudHealthcare\HttpBody;
21use Google\Service\CloudHealthcare\Operation;
22
23/**
24 * The "studies" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $healthcareService = new Google\Service\CloudHealthcare(...);
28 * $studies = $healthcareService->projects_locations_datasets_dicomStores_studies;
29 * </code>
30 */
31class ProjectsLocationsDatasetsDicomStoresStudies extends \Google\Service\Resource
32{
33 /**
34 * DeleteStudy deletes all instances within the given study. Delete requests are
35 * equivalent to the GET requests specified in the Retrieve transaction. The
36 * method returns an Operation which will be marked successful when the deletion
37 * is complete. Warning: Instances cannot be inserted into a study that is being
38 * deleted by an operation until the operation completes. For samples that show
39 * how to call DeleteStudy, see [Delete a study, series, or
40 * instance](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#delete-
41 * dicom). (studies.delete)
42 *
43 * @param string $parent
44 * @param string $dicomWebPath Required. The path of the DeleteStudy request.
45 * For example, `studies/{study_uid}`.
46 * @param array $optParams Optional parameters.
47 * @return Operation
48 * @throws \Google\Service\Exception
49 */
50 public function delete($parent, $dicomWebPath, $optParams = [])
51 {
52 $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
53 $params = array_merge($params, $optParams);
54 return $this->call('delete', [$params], Operation::class);
55 }
56 /**
57 * RetrieveStudyMetadata returns instance associated with the given study
58 * presented as metadata with the bulk data removed. See [RetrieveTransaction] (
59 * http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.4
60 * ). For details on the implementation of RetrieveStudyMetadata, see [Metadata
61 * resources](https://cloud.google.com/healthcare/docs/dicom#metadata_resources)
62 * in the Cloud Healthcare API conformance statement. For samples that show how
63 * to call RetrieveStudyMetadata, see [Retrieve
64 * metadata](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-
65 * metadata). (studies.retrieveMetadata)
66 *
67 * @param string $parent Required. The name of the DICOM store that is being
68 * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
69 * s/{dataset_id}/dicomStores/{dicom_store_id}`.
70 * @param string $dicomWebPath Required. The path of the RetrieveStudyMetadata
71 * DICOMweb request. For example, `studies/{study_uid}/metadata`.
72 * @param array $optParams Optional parameters.
73 * @return HttpBody
74 * @throws \Google\Service\Exception
75 */
76 public function retrieveMetadata($parent, $dicomWebPath, $optParams = [])
77 {
78 $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
79 $params = array_merge($params, $optParams);
80 return $this->call('retrieveMetadata', [$params], HttpBody::class);
81 }
82 /**
83 * RetrieveStudy returns all instances within the given study. See
84 * [RetrieveTransaction] (http://dicom.nema.org/medical/dicom/current/output/htm
85 * l/part18.html#sect_10.4). For details on the implementation of RetrieveStudy,
86 * see [DICOM study/series/instances](https://cloud.google.com/healthcare/docs/d
87 * icom#dicom_studyseriesinstances) in the Cloud Healthcare API conformance
88 * statement. For samples that show how to call RetrieveStudy, see [Retrieve
89 * DICOM data](https://cloud.google.com/healthcare/docs/how-
90 * tos/dicomweb#retrieve-dicom). (studies.retrieveStudy)
91 *
92 * @param string $parent Required. The name of the DICOM store that is being
93 * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
94 * s/{dataset_id}/dicomStores/{dicom_store_id}`.
95 * @param string $dicomWebPath Required. The path of the RetrieveStudy DICOMweb
96 * request. For example, `studies/{study_uid}`.
97 * @param array $optParams Optional parameters.
98 * @return HttpBody
99 * @throws \Google\Service\Exception
100 */
101 public function retrieveStudy($parent, $dicomWebPath, $optParams = [])
102 {
103 $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
104 $params = array_merge($params, $optParams);
105 return $this->call('retrieveStudy', [$params], HttpBody::class);
106 }
107 /**
108 * SearchForInstances returns a list of matching instances. See [Search
109 * Transaction] (http://dicom.nema.org/medical/dicom/current/output/html/part18.
110 * html#sect_10.6). For details on the implementation of SearchForInstances, see
111 * [Search transaction](https://cloud.google.com/healthcare/docs/dicom#search_tr
112 * ansaction) in the Cloud Healthcare API conformance statement. For samples
113 * that show how to call SearchForInstances, see [Search for DICOM
114 * data](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-
115 * dicom). (studies.searchForInstances)
116 *
117 * @param string $parent Required. The name of the DICOM store that is being
118 * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
119 * s/{dataset_id}/dicomStores/{dicom_store_id}`.
120 * @param string $dicomWebPath Required. The path of the
121 * SearchForInstancesRequest DICOMweb request. For example, `instances`,
122 * `series/{series_uid}/instances`, or `studies/{study_uid}/instances`.
123 * @param array $optParams Optional parameters.
124 * @return HttpBody
125 * @throws \Google\Service\Exception
126 */
127 public function searchForInstances($parent, $dicomWebPath, $optParams = [])
128 {
129 $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
130 $params = array_merge($params, $optParams);
131 return $this->call('searchForInstances', [$params], HttpBody::class);
132 }
133 /**
134 * SearchForSeries returns a list of matching series. See [Search Transaction] (
135 * http://dicom.nema.org/medical/dicom/current/output/html/part18.html#sect_10.6
136 * ). For details on the implementation of SearchForSeries, see [Search transact
137 * ion](https://cloud.google.com/healthcare/docs/dicom#search_transaction) in
138 * the Cloud Healthcare API conformance statement. For samples that show how to
139 * call SearchForSeries, see [Search for DICOM
140 * data](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-
141 * dicom). (studies.searchForSeries)
142 *
143 * @param string $parent Required. The name of the DICOM store that is being
144 * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
145 * s/{dataset_id}/dicomStores/{dicom_store_id}`.
146 * @param string $dicomWebPath Required. The path of the SearchForSeries
147 * DICOMweb request. For example, `series` or `studies/{study_uid}/series`.
148 * @param array $optParams Optional parameters.
149 * @return HttpBody
150 * @throws \Google\Service\Exception
151 */
152 public function searchForSeries($parent, $dicomWebPath, $optParams = [])
153 {
154 $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
155 $params = array_merge($params, $optParams);
156 return $this->call('searchForSeries', [$params], HttpBody::class);
157 }
158 /**
159 * StoreInstances stores DICOM instances associated with study instance unique
160 * identifiers (SUID). See [Store Transaction] (http://dicom.nema.org/medical/di
161 * com/current/output/html/part18.html#sect_10.5). For details on the
162 * implementation of StoreInstances, see [Store transaction](https://cloud.googl
163 * e.com/healthcare/docs/dicom#store_transaction) in the Cloud Healthcare API
164 * conformance statement. For samples that show how to call StoreInstances, see
165 * [Store DICOM data](https://cloud.google.com/healthcare/docs/how-
166 * tos/dicomweb#store-dicom). (studies.storeInstances)
167 *
168 * @param string $parent Required. The name of the DICOM store that is being
169 * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
170 * s/{dataset_id}/dicomStores/{dicom_store_id}`.
171 * @param string $dicomWebPath Required. The path of the StoreInstances DICOMweb
172 * request. For example, `studies/[{study_uid}]`. Note that the `study_uid` is
173 * optional.
174 * @param HttpBody $postBody
175 * @param array $optParams Optional parameters.
176 * @return HttpBody
177 * @throws \Google\Service\Exception
178 */
179 public function storeInstances($parent, $dicomWebPath, HttpBody $postBody, $optParams = [])
180 {
181 $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath, 'postBody' => $postBody];
182 $params = array_merge($params, $optParams);
183 return $this->call('storeInstances', [$params], HttpBody::class);
184 }
185}
186
187// Adding a class alias for backwards compatibility with the previous class name.
188class_alias(ProjectsLocationsDatasetsDicomStoresStudies::class, 'Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsDicomStoresStudies');
Note: See TracBrowser for help on using the repository browser.