Full name: projects.locations.datasets.fhirStores.fhir.conditionalPatch
If a resource is found based on the search criteria specified in the query parameters, updates part of that resource by applying the operations specified in a JSON Patch document.
Implements the FHIR standard conditional patch interaction.
Search terms are provided as query parameters following the same pattern as the search
method.
If the search criteria identify more than one match, the request will return a 412 Precondition Failed
error.
The request body must contain a JSON Patch document, and the request headers must contain Content-Type: application/json-patch+json
.
On success, the response body will contain a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store will contain a JSON-encoded OperationOutcome
resource describing the reason for the error. If the request cannot be mapped to a valid API method on a FHIR store, a generic GCP error might be returned instead.
HTTP request
PATCH https://healthcare.googleapis.com/v1beta1/{parent=projects/*/locations/*/datasets/*/fhirStores/*}/fhir/{type}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
The name of the FHIR store this resource belongs to. Authorization requires the following Google IAM permission on the specified resource
|
type |
The FHIR resource type to update, such as Patient or Observation. For a complete list, see the FHIR Resource Index. |
Request body
The request body contains an instance of HttpBody
.
Response body
If successful, the response is a generic HTTP response whose format is defined by the method.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-healthcare
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.