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 |
|
---|
18 | namespace Google\Service\CloudHealthcare\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\CloudHealthcare\HttpBody;
|
---|
21 | use Google\Service\CloudHealthcare\Operation;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * The "series" collection of methods.
|
---|
25 | * Typical usage is:
|
---|
26 | * <code>
|
---|
27 | * $healthcareService = new Google\Service\CloudHealthcare(...);
|
---|
28 | * $series = $healthcareService->projects_locations_datasets_dicomStores_studies_series;
|
---|
29 | * </code>
|
---|
30 | */
|
---|
31 | class ProjectsLocationsDatasetsDicomStoresStudiesSeries extends \Google\Service\Resource
|
---|
32 | {
|
---|
33 | /**
|
---|
34 | * DeleteSeries deletes all instances within the given study and series. Delete
|
---|
35 | * requests are equivalent to the GET requests specified in the Retrieve
|
---|
36 | * transaction. The method returns an Operation which will be marked successful
|
---|
37 | * when the deletion is complete. Warning: Instances cannot be inserted into a
|
---|
38 | * series that is being deleted by an operation until the operation completes.
|
---|
39 | * For samples that show how to call DeleteSeries, see [Delete a study, series,
|
---|
40 | * or instance](https://cloud.google.com/healthcare/docs/how-
|
---|
41 | * tos/dicomweb#delete-dicom). (series.delete)
|
---|
42 | *
|
---|
43 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
44 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
45 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
46 | * @param string $dicomWebPath Required. The path of the DeleteSeries request.
|
---|
47 | * For example, `studies/{study_uid}/series/{series_uid}`.
|
---|
48 | * @param array $optParams Optional parameters.
|
---|
49 | * @return Operation
|
---|
50 | * @throws \Google\Service\Exception
|
---|
51 | */
|
---|
52 | public function delete($parent, $dicomWebPath, $optParams = [])
|
---|
53 | {
|
---|
54 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
55 | $params = array_merge($params, $optParams);
|
---|
56 | return $this->call('delete', [$params], Operation::class);
|
---|
57 | }
|
---|
58 | /**
|
---|
59 | * RetrieveSeriesMetadata returns instance associated with the given study and
|
---|
60 | * series, presented as metadata with the bulk data removed. See
|
---|
61 | * [RetrieveTransaction] (http://dicom.nema.org/medical/dicom/current/output/htm
|
---|
62 | * l/part18.html#sect_10.4). For details on the implementation of
|
---|
63 | * RetrieveSeriesMetadata, see [Metadata
|
---|
64 | * resources](https://cloud.google.com/healthcare/docs/dicom#metadata_resources)
|
---|
65 | * in the Cloud Healthcare API conformance statement. For samples that show how
|
---|
66 | * to call RetrieveSeriesMetadata, see [Retrieve
|
---|
67 | * metadata](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-
|
---|
68 | * metadata). (series.retrieveMetadata)
|
---|
69 | *
|
---|
70 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
71 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
72 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
73 | * @param string $dicomWebPath Required. The path of the RetrieveSeriesMetadata
|
---|
74 | * DICOMweb request. For example,
|
---|
75 | * `studies/{study_uid}/series/{series_uid}/metadata`.
|
---|
76 | * @param array $optParams Optional parameters.
|
---|
77 | * @return HttpBody
|
---|
78 | * @throws \Google\Service\Exception
|
---|
79 | */
|
---|
80 | public function retrieveMetadata($parent, $dicomWebPath, $optParams = [])
|
---|
81 | {
|
---|
82 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
83 | $params = array_merge($params, $optParams);
|
---|
84 | return $this->call('retrieveMetadata', [$params], HttpBody::class);
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * RetrieveSeries returns all instances within the given study and series. See
|
---|
88 | * [RetrieveTransaction] (http://dicom.nema.org/medical/dicom/current/output/htm
|
---|
89 | * l/part18.html#sect_10.4). For details on the implementation of
|
---|
90 | * RetrieveSeries, see [DICOM study/series/instances](https://cloud.google.com/h
|
---|
91 | * ealthcare/docs/dicom#dicom_studyseriesinstances) in the Cloud Healthcare API
|
---|
92 | * conformance statement. For samples that show how to call RetrieveSeries, see
|
---|
93 | * [Retrieve DICOM data](https://cloud.google.com/healthcare/docs/how-
|
---|
94 | * tos/dicomweb#retrieve-dicom). (series.retrieveSeries)
|
---|
95 | *
|
---|
96 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
97 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
98 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
99 | * @param string $dicomWebPath Required. The path of the RetrieveSeries DICOMweb
|
---|
100 | * request. For example, `studies/{study_uid}/series/{series_uid}`.
|
---|
101 | * @param array $optParams Optional parameters.
|
---|
102 | * @return HttpBody
|
---|
103 | * @throws \Google\Service\Exception
|
---|
104 | */
|
---|
105 | public function retrieveSeries($parent, $dicomWebPath, $optParams = [])
|
---|
106 | {
|
---|
107 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
108 | $params = array_merge($params, $optParams);
|
---|
109 | return $this->call('retrieveSeries', [$params], HttpBody::class);
|
---|
110 | }
|
---|
111 | /**
|
---|
112 | * SearchForInstances returns a list of matching instances. See [Search
|
---|
113 | * Transaction] (http://dicom.nema.org/medical/dicom/current/output/html/part18.
|
---|
114 | * html#sect_10.6). For details on the implementation of SearchForInstances, see
|
---|
115 | * [Search transaction](https://cloud.google.com/healthcare/docs/dicom#search_tr
|
---|
116 | * ansaction) in the Cloud Healthcare API conformance statement. For samples
|
---|
117 | * that show how to call SearchForInstances, see [Search for DICOM
|
---|
118 | * data](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#search-
|
---|
119 | * dicom). (series.searchForInstances)
|
---|
120 | *
|
---|
121 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
122 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
123 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
124 | * @param string $dicomWebPath Required. The path of the
|
---|
125 | * SearchForInstancesRequest DICOMweb request. For example, `instances`,
|
---|
126 | * `series/{series_uid}/instances`, or `studies/{study_uid}/instances`.
|
---|
127 | * @param array $optParams Optional parameters.
|
---|
128 | * @return HttpBody
|
---|
129 | * @throws \Google\Service\Exception
|
---|
130 | */
|
---|
131 | public function searchForInstances($parent, $dicomWebPath, $optParams = [])
|
---|
132 | {
|
---|
133 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
134 | $params = array_merge($params, $optParams);
|
---|
135 | return $this->call('searchForInstances', [$params], HttpBody::class);
|
---|
136 | }
|
---|
137 | }
|
---|
138 |
|
---|
139 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
140 | class_alias(ProjectsLocationsDatasetsDicomStoresStudiesSeries::class, 'Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsDicomStoresStudiesSeries');
|
---|