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/** 19 * The "fhir" collection of methods. 20 * Typical usage is: 21 * <code> 22 * $healthcareService = new Google_Service_CloudHealthcare(...); 23 * $fhir = $healthcareService->fhir; 24 * </code> 25 */ 26class Google_Service_CloudHealthcare_Resource_ProjectsLocationsDatasetsFhirStoresFhir extends Google_Service_Resource 27{ 28 /** 29 * Retrieves the N most recent `Observation` resources for a subject matching 30 * search criteria specified as query parameters, grouped by `Observation.code`, 31 * sorted from most recent to oldest. 32 * 33 * Implements the FHIR extended operation [Observation- 34 * lastn](http://hl7.org/implement/standards/fhir/STU3/observation- 35 * operations.html#lastn). 36 * 37 * Search terms are provided as query parameters following the same pattern as 38 * the search method. This operation accepts an additional query parameter 39 * `max`, which specifies N, the maximum number of Observations to return from 40 * each group, with a default of 1. 41 * 42 * On success, the response body will contain a JSON-encoded representation of a 43 * `Bundle` resource of type `searchset`, containing the results of the 44 * operation. Errors generated by the FHIR store will contain a JSON-encoded 45 * `OperationOutcome` resource describing the reason for the error. If the 46 * request cannot be mapped to a valid API method on a FHIR store, a generic GCP 47 * error might be returned instead. (fhir.ObservationLastn) 48 * 49 * @param string $parent Name of the FHIR store to retrieve resources from. 50 * @param array $optParams Optional parameters. 51 * @return Google_Service_CloudHealthcare_HttpBody 52 */ 53 public function ObservationLastn($parent, $optParams = array()) 54 { 55 $params = array('parent' => $parent); 56 $params = array_merge($params, $optParams); 57 return $this->call('Observation-lastn', array($params), "Google_Service_CloudHealthcare_HttpBody"); 58 } 59 /** 60 * Retrieves all the resources in the patient compartment for a `Patient` 61 * resource. 62 * 63 * Implements the FHIR extended operation [Patient- 64 * everything](http://hl7.org/implement/standards/fhir/STU3/patient- 65 * operations.html#everything). 66 * 67 * On success, the response body will contain a JSON-encoded representation of a 68 * `Bundle` resource of type `searchset`, containing the results of the 69 * operation. Errors generated by the FHIR store will contain a JSON-encoded 70 * `OperationOutcome` resource describing the reason for the error. If the 71 * request cannot be mapped to a valid API method on a FHIR store, a generic GCP 72 * error might be returned instead. (fhir.PatientEverything) 73 * 74 * @param string $name Name of the `Patient` resource for which the information 75 * is required. 76 * @param array $optParams Optional parameters. 77 * 78 * @opt_param string end The response includes records prior to the end date. If 79 * no end date is provided, all records subsequent to the start date are in 80 * scope. 81 * @opt_param string start The response includes records subsequent to the start 82 * date. If no start date is provided, all records prior to the end date are in 83 * scope. 84 * @return Google_Service_CloudHealthcare_HttpBody 85 */ 86 public function PatientEverything($name, $optParams = array()) 87 { 88 $params = array('name' => $name); 89 $params = array_merge($params, $optParams); 90 return $this->call('Patient-everything', array($params), "Google_Service_CloudHealthcare_HttpBody"); 91 } 92 /** 93 * Deletes all the historical versions of a resource (excluding the current 94 * version) from the FHIR store. To remove all versions of a resource, first 95 * delete the current version and then call this method. 96 * 97 * This is not a FHIR standard operation. (fhir.ResourcePurge) 98 * 99 * @param string $name The name of the resource to purge. 100 * @param array $optParams Optional parameters. 101 * @return Google_Service_CloudHealthcare_HealthcareEmpty 102 */ 103 public function ResourcePurge($name, $optParams = array()) 104 { 105 $params = array('name' => $name); 106 $params = array_merge($params, $optParams); 107 return $this->call('Resource-purge', array($params), "Google_Service_CloudHealthcare_HealthcareEmpty"); 108 } 109 /** 110 * Gets the FHIR [capability statement](http://hl7.org/implement/standards/fhir/ 111 * STU3/capabilitystatement.html) for the store, which contains a description of 112 * functionality supported by the server. 113 * 114 * Implements the FHIR standard [capabilities interaction](http://hl7.org/implem 115 * ent/standards/fhir/STU3/http.html#capabilities). 116 * 117 * On success, the response body will contain a JSON-encoded representation of a 118 * `CapabilityStatement` resource. (fhir.capabilities) 119 * 120 * @param string $name Name of the FHIR store to retrieve the capabilities for. 121 * @param array $optParams Optional parameters. 122 * @return Google_Service_CloudHealthcare_HttpBody 123 */ 124 public function capabilities($name, $optParams = array()) 125 { 126 $params = array('name' => $name); 127 $params = array_merge($params, $optParams); 128 return $this->call('capabilities', array($params), "Google_Service_CloudHealthcare_HttpBody"); 129 } 130 /** 131 * Deletes FHIR resources that match a search query. 132 * 133 * Implements the FHIR standard [conditional delete interaction](http://hl7.org/ 134 * implement/standards/fhir/STU3/http.html#2.21.0.13.1). If multiple resources 135 * match, all of them will be deleted. 136 * 137 * Search terms are provided as query parameters following the same pattern as 138 * the search method. 139 * 140 * Note: Unless resource versioning is disabled by setting the 141 * disable_resource_versioning flag on the FHIR store, the deleted resources 142 * will be moved to a history repository that can still be retrieved through 143 * vread and related methods, unless they are removed by the purge method. 144 * (fhir.conditionalDelete) 145 * 146 * @param string $parent The name of the FHIR store this resource belongs to. 147 * @param string $type The FHIR resource type to delete, such as Patient or 148 * Observation. For a complete list, see the [FHIR Resource 149 * Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). 150 * @param array $optParams Optional parameters. 151 * @return Google_Service_CloudHealthcare_HealthcareEmpty 152 */ 153 public function conditionalDelete($parent, $type, $optParams = array()) 154 { 155 $params = array('parent' => $parent, 'type' => $type); 156 $params = array_merge($params, $optParams); 157 return $this->call('conditionalDelete', array($params), "Google_Service_CloudHealthcare_HealthcareEmpty"); 158 } 159 /** 160 * If a resource is found based on the search criteria specified in the query 161 * parameters, updates part of that resource by applying the operations 162 * specified in a [JSON Patch](http://jsonpatch.com/) document. 163 * 164 * Implements the FHIR standard [conditional patch 165 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch). 166 * 167 * Search terms are provided as query parameters following the same pattern as 168 * the search method. 169 * 170 * If the search criteria identify more than one match, the request will return 171 * a `412 Precondition Failed` error. 172 * 173 * The request body must contain a JSON Patch document, and the request headers 174 * must contain `Content-Type: application/json-patch+json`. 175 * 176 * On success, the response body will contain a JSON-encoded representation of 177 * the updated resource, including the server-assigned version ID. Errors 178 * generated by the FHIR store will contain a JSON-encoded `OperationOutcome` 179 * resource describing the reason for the error. If the request cannot be mapped 180 * to a valid API method on a FHIR store, a generic GCP error might be returned 181 * instead. (fhir.conditionalPatch) 182 * 183 * @param string $parent The name of the FHIR store this resource belongs to. 184 * @param string $type The FHIR resource type to update, such as Patient or 185 * Observation. For a complete list, see the [FHIR Resource 186 * Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). 187 * @param Google_Service_CloudHealthcare_HttpBody $postBody 188 * @param array $optParams Optional parameters. 189 * @return Google_Service_CloudHealthcare_HttpBody 190 */ 191 public function conditionalPatch($parent, $type, Google_Service_CloudHealthcare_HttpBody $postBody, $optParams = array()) 192 { 193 $params = array('parent' => $parent, 'type' => $type, 'postBody' => $postBody); 194 $params = array_merge($params, $optParams); 195 return $this->call('conditionalPatch', array($params), "Google_Service_CloudHealthcare_HttpBody"); 196 } 197 /** 198 * If a resource is found based on the search criteria specified in the query 199 * parameters, updates the entire contents of that resource. 200 * 201 * Implements the FHIR standard [conditional update 202 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cond- 203 * update). 204 * 205 * Search terms are provided as query parameters following the same pattern as 206 * the search method. 207 * 208 * If the search criteria identify more than one match, the request will return 209 * a `412 Precondition Failed` error. If the search criteria identify zero 210 * matches, and the supplied resource body contains an `id`, and the FHIR store 211 * has enable_update_create set, creates the resource with the client-specified 212 * ID. If the search criteria identify zero matches, and the supplied resource 213 * body does not contain an `id`, the resource will be created with a server- 214 * assigned ID as per the create method. 215 * 216 * The request body must contain a JSON-encoded FHIR resource, and the request 217 * headers must contain `Content-Type: application/fhir+json`. 218 * 219 * On success, the response body will contain a JSON-encoded representation of 220 * the updated resource, including the server-assigned version ID. Errors 221 * generated by the FHIR store will contain a JSON-encoded `OperationOutcome` 222 * resource describing the reason for the error. If the request cannot be mapped 223 * to a valid API method on a FHIR store, a generic GCP error might be returned 224 * instead. (fhir.conditionalUpdate) 225 * 226 * @param string $parent The name of the FHIR store this resource belongs to. 227 * @param string $type The FHIR resource type to update, such as Patient or 228 * Observation. For a complete list, see the [FHIR Resource 229 * Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). Must 230 * match the resource type in the provided content. 231 * @param Google_Service_CloudHealthcare_HttpBody $postBody 232 * @param array $optParams Optional parameters. 233 * @return Google_Service_CloudHealthcare_HttpBody 234 */ 235 public function conditionalUpdate($parent, $type, Google_Service_CloudHealthcare_HttpBody $postBody, $optParams = array()) 236 { 237 $params = array('parent' => $parent, 'type' => $type, 'postBody' => $postBody); 238 $params = array_merge($params, $optParams); 239 return $this->call('conditionalUpdate', array($params), "Google_Service_CloudHealthcare_HttpBody"); 240 } 241 /** 242 * Creates a FHIR resource. 243 * 244 * Implements the FHIR standard [create 245 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#create), 246 * which creates a new resource with a server-assigned resource ID. 247 * 248 * Also supports the FHIR standard [conditional create 249 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#ccreate), 250 * specified by supplying an `If-None-Exist` header containing a FHIR search 251 * query. If no resources match this search query, the server processes the 252 * create operation as normal. 253 * 254 * The request body must contain a JSON-encoded FHIR resource, and the request 255 * headers must contain `Content-Type: application/fhir+json`. 256 * 257 * On success, the response body will contain a JSON-encoded representation of 258 * the resource as it was created on the server, including the server-assigned 259 * resource ID and version ID. Errors generated by the FHIR store will contain a 260 * JSON-encoded `OperationOutcome` resource describing the reason for the error. 261 * If the request cannot be mapped to a valid API method on a FHIR store, a 262 * generic GCP error might be returned instead. (fhir.create) 263 * 264 * @param string $parent The name of the FHIR store this resource belongs to. 265 * @param string $type The FHIR resource type to create, such as Patient or 266 * Observation. For a complete list, see the [FHIR Resource 267 * Index](http://hl7.org/implement/standards/fhir/STU3/resourcelist.html). Must 268 * match the resource type in the provided content. 269 * @param Google_Service_CloudHealthcare_HttpBody $postBody 270 * @param array $optParams Optional parameters. 271 * @return Google_Service_CloudHealthcare_HttpBody 272 */ 273 public function create($parent, $type, Google_Service_CloudHealthcare_HttpBody $postBody, $optParams = array()) 274 { 275 $params = array('parent' => $parent, 'type' => $type, 'postBody' => $postBody); 276 $params = array_merge($params, $optParams); 277 return $this->call('create', array($params), "Google_Service_CloudHealthcare_HttpBody"); 278 } 279 /** 280 * Deletes a FHIR resource. 281 * 282 * Implements the FHIR standard [delete 283 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#delete). 284 * 285 * Note: Unless resource versioning is disabled by setting the 286 * disable_resource_versioning flag on the FHIR store, the deleted resources 287 * will be moved to a history repository that can still be retrieved through 288 * vread and related methods, unless they are removed by the purge method. 289 * (fhir.delete) 290 * 291 * @param string $name The name of the resource to delete. 292 * @param array $optParams Optional parameters. 293 * @return Google_Service_CloudHealthcare_HttpBody 294 */ 295 public function delete($name, $optParams = array()) 296 { 297 $params = array('name' => $name); 298 $params = array_merge($params, $optParams); 299 return $this->call('delete', array($params), "Google_Service_CloudHealthcare_HttpBody"); 300 } 301 /** 302 * Executes all the requests in the given Bundle. 303 * 304 * Implements the FHIR standard [batch/transaction interaction](http://hl7.org/i 305 * mplement/standards/fhir/STU3/http.html#transaction). 306 * 307 * Supports all interactions within a bundle, except search. This method accepts 308 * Bundles of type `batch` and `transaction`, processing them according to the 309 * [batch processing 310 * rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.1) 311 * and [transaction processing 312 * rules](http://hl7.org/implement/standards/fhir/STU3/http.html#2.21.0.17.2). 313 * 314 * The request body must contain a JSON-encoded FHIR `Bundle` resource, and the 315 * request headers must contain `Content-Type: application/fhir+json`. 316 * 317 * For a batch bundle or a successful transaction the response body will contain 318 * a JSON-encoded representation of a `Bundle` resource of type `batch-response` 319 * or `transaction-response` containing one entry for each entry in the request, 320 * with the outcome of processing the entry. In the case of an error for a 321 * transaction bundle, the response body will contain a JSON-encoded 322 * `OperationOutcome` resource describing the reason for the error. If the 323 * request cannot be mapped to a valid API method on a FHIR store, a generic GCP 324 * error might be returned instead. (fhir.executeBundle) 325 * 326 * @param string $parent Name of the FHIR store in which this bundle will be 327 * executed. 328 * @param Google_Service_CloudHealthcare_HttpBody $postBody 329 * @param array $optParams Optional parameters. 330 * @return Google_Service_CloudHealthcare_HttpBody 331 */ 332 public function executeBundle($parent, Google_Service_CloudHealthcare_HttpBody $postBody, $optParams = array()) 333 { 334 $params = array('parent' => $parent, 'postBody' => $postBody); 335 $params = array_merge($params, $optParams); 336 return $this->call('executeBundle', array($params), "Google_Service_CloudHealthcare_HttpBody"); 337 } 338 /** 339 * Lists all the versions of a resource (including the current version and 340 * deleted versions) from the FHIR store. 341 * 342 * Implements the per-resource form of the FHIR standard [history 343 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#history). 344 * 345 * On success, the response body will contain a JSON-encoded representation of a 346 * `Bundle` resource of type `history`, containing the version history sorted 347 * from most recent to oldest versions. Errors generated by the FHIR store will 348 * contain a JSON-encoded `OperationOutcome` resource describing the reason for 349 * the error. If the request cannot be mapped to a valid API method on a FHIR 350 * store, a generic GCP error might be returned instead. (fhir.history) 351 * 352 * @param string $name The name of the resource to retrieve. 353 * @param array $optParams Optional parameters. 354 * 355 * @opt_param string page Used to retrieve the first, previous, next, or last 356 * page of resource versions when using pagination. Value should be set to the 357 * value of the `link.url` field returned in the response to the previous 358 * request, where `link.relation` is "first", "previous", "next" or "last". 359 * 360 * Omit `page` if no previous request has been made. 361 * @opt_param string at Only include resource versions that were current at some 362 * point during the time period specified in the date time value. The date 363 * parameter format is yyyy-mm-ddThh:mm:ss[Z|(+|-)hh:mm] 364 * 365 * Clients may specify any of the following: 366 * 367 * * An entire year: `_at=2019` * An entire month: `_at=2019-01` * A specific 368 * day: `_at=2019-01-20` * A specific second: `_at=2018-12-31T23:59:58Z` 369 * @opt_param int count The maximum number of search results on a page. Defaults 370 * to 1000. 371 * @opt_param string since Only include resource versions that were created at 372 * or after the given instant in time. The instant in time uses the format YYYY- 373 * MM-DDThh:mm:ss.sss+zz:zz (for example 2015-02-07T13:28:17.239+02:00 or 374 * 2017-01-01T00:00:00Z). The time must be specified to the second and include a 375 * time zone. 376 * @return Google_Service_CloudHealthcare_HttpBody 377 */ 378 public function history($name, $optParams = array()) 379 { 380 $params = array('name' => $name); 381 $params = array_merge($params, $optParams); 382 return $this->call('history', array($params), "Google_Service_CloudHealthcare_HttpBody"); 383 } 384 /** 385 * Updates part of an existing resource by applying the operations specified in 386 * a [JSON Patch](http://jsonpatch.com/) document. 387 * 388 * Implements the FHIR standard [patch 389 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#patch). 390 * 391 * The request body must contain a JSON Patch document, and the request headers 392 * must contain `Content-Type: application/json-patch+json`. 393 * 394 * On success, the response body will contain a JSON-encoded representation of 395 * the updated resource, including the server-assigned version ID. Errors 396 * generated by the FHIR store will contain a JSON-encoded `OperationOutcome` 397 * resource describing the reason for the error. If the request cannot be mapped 398 * to a valid API method on a FHIR store, a generic GCP error might be returned 399 * instead. (fhir.patch) 400 * 401 * @param string $name The name of the resource to update. 402 * @param Google_Service_CloudHealthcare_HttpBody $postBody 403 * @param array $optParams Optional parameters. 404 * @return Google_Service_CloudHealthcare_HttpBody 405 */ 406 public function patch($name, Google_Service_CloudHealthcare_HttpBody $postBody, $optParams = array()) 407 { 408 $params = array('name' => $name, 'postBody' => $postBody); 409 $params = array_merge($params, $optParams); 410 return $this->call('patch', array($params), "Google_Service_CloudHealthcare_HttpBody"); 411 } 412 /** 413 * Gets the contents of a FHIR resource. 414 * 415 * Implements the FHIR standard [read 416 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#read). 417 * 418 * Also supports the FHIR standard [conditional read 419 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#cread) 420 * specified by supplying an `If-Modified-Since` header with a date/time value 421 * or an `If-None-Match` header with an ETag value. 422 * 423 * On success, the response body will contain a JSON-encoded representation of 424 * the resource. Errors generated by the FHIR store will contain a JSON-encoded 425 * `OperationOutcome` resource describing the reason for the error. If the 426 * request cannot be mapped to a valid API method on a FHIR store, a generic GCP 427 * error might be returned instead. (fhir.read) 428 * 429 * @param string $name The name of the resource to retrieve. 430 * @param array $optParams Optional parameters. 431 * @return Google_Service_CloudHealthcare_HttpBody 432 */ 433 public function read($name, $optParams = array()) 434 { 435 $params = array('name' => $name); 436 $params = array_merge($params, $optParams); 437 return $this->call('read', array($params), "Google_Service_CloudHealthcare_HttpBody"); 438 } 439 /** 440 * Searches for resources in the given FHIR store according to criteria 441 * specified as query parameters. 442 * 443 * Implements the FHIR standard [search 444 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#search) 445 * using the search semantics described in the [FHIR Search 446 * specification](http://hl7.org/implement/standards/fhir/STU3/search.html). 447 * 448 * Supports three methods of search defined by the specification: 449 * 450 * * `GET [base]?[parameters]` to search across all resources. * `GET 451 * [base]/[type]?[parameters]` to search resources of a specified type. * `POST 452 * [base]/[type]/_search?[parameters]` as an alternate form having the same 453 * semantics as the `GET` method. 454 * 455 * The `GET` methods do not support compartment searches. The `POST` method does 456 * not support `application/x-www-form-urlencoded` search parameters. 457 * 458 * On success, the response body will contain a JSON-encoded representation of a 459 * `Bundle` resource of type `searchset`, containing the results of the search. 460 * Errors generated by the FHIR store will contain a JSON-encoded 461 * `OperationOutcome` resource describing the reason for the error. If the 462 * request cannot be mapped to a valid API method on a FHIR store, a generic GCP 463 * error might be returned instead. 464 * 465 * # Search Parameters 466 * 467 * The server's capability statement, retrieved through capabilities, indicates 468 * what search parameters are supported on each FHIR resource. A list of all 469 * search parameters defined by the specification can be found in the [FHIR 470 * Search Parameter Registry](http://hl7.org/implement/standards/fhir/STU3 471 * /searchparameter-registry.html). 472 * 473 * # Search Modifiers 474 * 475 * Modifier | Supported ----------- | --------- `:missing` | Yes `:exact` 476 * | Yes `:contains` | Yes `:text` | Yes `:in` | Yes `:not-in` | Yes 477 * `:above` | Yes `:below` | Yes `:[type]` | Yes `:not` | Yes 478 * `:recurse` | No (fhir.search) 479 * 480 * @param string $parent Name of the FHIR store to retrieve resources from. 481 * @param Google_Service_CloudHealthcare_SearchResourcesRequest $postBody 482 * @param array $optParams Optional parameters. 483 * @return Google_Service_CloudHealthcare_HttpBody 484 */ 485 public function search($parent, Google_Service_CloudHealthcare_SearchResourcesRequest $postBody, $optParams = array()) 486 { 487 $params = array('parent' => $parent, 'postBody' => $postBody); 488 $params = array_merge($params, $optParams); 489 return $this->call('search', array($params), "Google_Service_CloudHealthcare_HttpBody"); 490 } 491 /** 492 * Updates the entire contents of a resource. 493 * 494 * Implements the FHIR standard [update 495 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#update). 496 * 497 * If the specified resource does not exist and the FHIR store has 498 * enable_update_create set, creates the resource with the client-specified ID. 499 * 500 * The request body must contain a JSON-encoded FHIR resource, and the request 501 * headers must contain `Content-Type: application/fhir+json`. The resource must 502 * contain an `id` element having an identical value to the ID in the REST path 503 * of the request. 504 * 505 * On success, the response body will contain a JSON-encoded representation of 506 * the updated resource, including the server-assigned version ID. Errors 507 * generated by the FHIR store will contain a JSON-encoded `OperationOutcome` 508 * resource describing the reason for the error. If the request cannot be mapped 509 * to a valid API method on a FHIR store, a generic GCP error might be returned 510 * instead. (fhir.update) 511 * 512 * @param string $name The name of the resource to update. 513 * @param Google_Service_CloudHealthcare_HttpBody $postBody 514 * @param array $optParams Optional parameters. 515 * @return Google_Service_CloudHealthcare_HttpBody 516 */ 517 public function update($name, Google_Service_CloudHealthcare_HttpBody $postBody, $optParams = array()) 518 { 519 $params = array('name' => $name, 'postBody' => $postBody); 520 $params = array_merge($params, $optParams); 521 return $this->call('update', array($params), "Google_Service_CloudHealthcare_HttpBody"); 522 } 523 /** 524 * Gets the contents of a version (current or historical) of a FHIR resource by 525 * version ID. 526 * 527 * Implements the FHIR standard [vread 528 * interaction](http://hl7.org/implement/standards/fhir/STU3/http.html#vread). 529 * 530 * On success, the response body will contain a JSON-encoded representation of 531 * the resource. Errors generated by the FHIR store will contain a JSON-encoded 532 * `OperationOutcome` resource describing the reason for the error. If the 533 * request cannot be mapped to a valid API method on a FHIR store, a generic GCP 534 * error might be returned instead. (fhir.vread) 535 * 536 * @param string $name The name of the resource version to retrieve. 537 * @param array $optParams Optional parameters. 538 * @return Google_Service_CloudHealthcare_HttpBody 539 */ 540 public function vread($name, $optParams = array()) 541 { 542 $params = array('name' => $name); 543 $params = array_merge($params, $optParams); 544 return $this->call('vread', array($params), "Google_Service_CloudHealthcare_HttpBody"); 545 } 546} 547