Method: fhir.conditionalPatch

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


The URL uses gRPC Transcoding syntax.

Path parameters



The name of the FHIR store this resource belongs to.

Authorization requires the following Google IAM permission on the specified resource parent:

  • healthcare.fhirResources.patch



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:


For more information, see the Authentication Overview.

Esta página foi útil? Conte sua opinião sobre:

Enviar comentários sobre…

Cloud Healthcare API