[e3d4e0a] | 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\HealthcareEmpty;
|
---|
| 21 | use Google\Service\CloudHealthcare\HttpBody;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | * The "instances" collection of methods.
|
---|
| 25 | * Typical usage is:
|
---|
| 26 | * <code>
|
---|
| 27 | * $healthcareService = new Google\Service\CloudHealthcare(...);
|
---|
| 28 | * $instances = $healthcareService->projects_locations_datasets_dicomStores_studies_series_instances;
|
---|
| 29 | * </code>
|
---|
| 30 | */
|
---|
| 31 | class ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstances extends \Google\Service\Resource
|
---|
| 32 | {
|
---|
| 33 | /**
|
---|
| 34 | * DeleteInstance deletes an instance associated with the given study, series,
|
---|
| 35 | * and SOP Instance UID. Delete requests are equivalent to the GET requests
|
---|
| 36 | * specified in the Retrieve transaction. Study and series search results can
|
---|
| 37 | * take a few seconds to be updated after an instance is deleted using
|
---|
| 38 | * DeleteInstance. For samples that show how to call DeleteInstance, see [Delete
|
---|
| 39 | * a study, series, or instance](https://cloud.google.com/healthcare/docs/how-
|
---|
| 40 | * tos/dicomweb#delete-dicom). (instances.delete)
|
---|
| 41 | *
|
---|
| 42 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
| 43 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
| 44 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
| 45 | * @param string $dicomWebPath Required. The path of the DeleteInstance request.
|
---|
| 46 | * For example,
|
---|
| 47 | * `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`.
|
---|
| 48 | * @param array $optParams Optional parameters.
|
---|
| 49 | * @return HealthcareEmpty
|
---|
| 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], HealthcareEmpty::class);
|
---|
| 57 | }
|
---|
| 58 | /**
|
---|
| 59 | * RetrieveInstance returns instance associated with the given study, series,
|
---|
| 60 | * and SOP Instance UID. See [RetrieveTransaction] (http://dicom.nema.org/medica
|
---|
| 61 | * l/dicom/current/output/html/part18.html#sect_10.4). For details on the
|
---|
| 62 | * implementation of RetrieveInstance, see [DICOM study/series/instances](https:
|
---|
| 63 | * //cloud.google.com/healthcare/docs/dicom#dicom_studyseriesinstances) and
|
---|
| 64 | * [DICOM
|
---|
| 65 | * instances](https://cloud.google.com/healthcare/docs/dicom#dicom_instances) in
|
---|
| 66 | * the Cloud Healthcare API conformance statement. For samples that show how to
|
---|
| 67 | * call RetrieveInstance, see [Retrieve an
|
---|
| 68 | * instance](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-
|
---|
| 69 | * instance). (instances.retrieveInstance)
|
---|
| 70 | *
|
---|
| 71 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
| 72 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
| 73 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
| 74 | * @param string $dicomWebPath Required. The path of the RetrieveInstance
|
---|
| 75 | * DICOMweb request. For example,
|
---|
| 76 | * `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}`.
|
---|
| 77 | * @param array $optParams Optional parameters.
|
---|
| 78 | * @return HttpBody
|
---|
| 79 | * @throws \Google\Service\Exception
|
---|
| 80 | */
|
---|
| 81 | public function retrieveInstance($parent, $dicomWebPath, $optParams = [])
|
---|
| 82 | {
|
---|
| 83 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
| 84 | $params = array_merge($params, $optParams);
|
---|
| 85 | return $this->call('retrieveInstance', [$params], HttpBody::class);
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * RetrieveInstanceMetadata returns instance associated with the given study,
|
---|
| 89 | * series, and SOP Instance UID presented as metadata with the bulk data
|
---|
| 90 | * removed. See [RetrieveTransaction] (http://dicom.nema.org/medical/dicom/curre
|
---|
| 91 | * nt/output/html/part18.html#sect_10.4). For details on the implementation of
|
---|
| 92 | * RetrieveInstanceMetadata, see [Metadata
|
---|
| 93 | * resources](https://cloud.google.com/healthcare/docs/dicom#metadata_resources)
|
---|
| 94 | * in the Cloud Healthcare API conformance statement. For samples that show how
|
---|
| 95 | * to call RetrieveInstanceMetadata, see [Retrieve
|
---|
| 96 | * metadata](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-
|
---|
| 97 | * metadata). (instances.retrieveMetadata)
|
---|
| 98 | *
|
---|
| 99 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
| 100 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
| 101 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
| 102 | * @param string $dicomWebPath Required. The path of the
|
---|
| 103 | * RetrieveInstanceMetadata DICOMweb request. For example,
|
---|
| 104 | * `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/metadata`.
|
---|
| 105 | * @param array $optParams Optional parameters.
|
---|
| 106 | * @return HttpBody
|
---|
| 107 | * @throws \Google\Service\Exception
|
---|
| 108 | */
|
---|
| 109 | public function retrieveMetadata($parent, $dicomWebPath, $optParams = [])
|
---|
| 110 | {
|
---|
| 111 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
| 112 | $params = array_merge($params, $optParams);
|
---|
| 113 | return $this->call('retrieveMetadata', [$params], HttpBody::class);
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * RetrieveRenderedInstance returns instance associated with the given study,
|
---|
| 117 | * series, and SOP Instance UID in an acceptable Rendered Media Type. See
|
---|
| 118 | * [RetrieveTransaction] (http://dicom.nema.org/medical/dicom/current/output/htm
|
---|
| 119 | * l/part18.html#sect_10.4). For details on the implementation of
|
---|
| 120 | * RetrieveRenderedInstance, see [Rendered
|
---|
| 121 | * resources](https://cloud.google.com/healthcare/docs/dicom#rendered_resources)
|
---|
| 122 | * in the Cloud Healthcare API conformance statement. For samples that show how
|
---|
| 123 | * to call RetrieveRenderedInstance, see [Retrieve consumer image
|
---|
| 124 | * formats](https://cloud.google.com/healthcare/docs/how-tos/dicomweb#retrieve-
|
---|
| 125 | * consumer). (instances.retrieveRendered)
|
---|
| 126 | *
|
---|
| 127 | * @param string $parent Required. The name of the DICOM store that is being
|
---|
| 128 | * accessed. For example, `projects/{project_id}/locations/{location_id}/dataset
|
---|
| 129 | * s/{dataset_id}/dicomStores/{dicom_store_id}`.
|
---|
| 130 | * @param string $dicomWebPath Required. The path of the
|
---|
| 131 | * RetrieveRenderedInstance DICOMweb request. For example,
|
---|
| 132 | * `studies/{study_uid}/series/{series_uid}/instances/{instance_uid}/rendered`.
|
---|
| 133 | * @param array $optParams Optional parameters.
|
---|
| 134 | * @return HttpBody
|
---|
| 135 | * @throws \Google\Service\Exception
|
---|
| 136 | */
|
---|
| 137 | public function retrieveRendered($parent, $dicomWebPath, $optParams = [])
|
---|
| 138 | {
|
---|
| 139 | $params = ['parent' => $parent, 'dicomWebPath' => $dicomWebPath];
|
---|
| 140 | $params = array_merge($params, $optParams);
|
---|
| 141 | return $this->call('retrieveRendered', [$params], HttpBody::class);
|
---|
| 142 | }
|
---|
| 143 | }
|
---|
| 144 |
|
---|
| 145 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 146 | class_alias(ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstances::class, 'Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsDicomStoresStudiesSeriesInstances');
|
---|