Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.datasets.fhirStores.fhir.patch
Updates part of an existing resource by applying the operations specified in a JSON Patch document.
Implements the FHIR standard patch interaction (STU3, R4).
DSTU2 doesn't define a patch method, but the server supports it in the same way it supports STU3.
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 contains a JSON-encoded representation of the updated resource, including the server-assigned version ID. Errors generated by the FHIR store 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[[["This method, `projects.locations.datasets.fhirStores.fhir.patch`, updates a portion of a FHIR resource using a JSON Patch document."],["It supports the FHIR standard patch interaction for STU3 and R4, and also supports it for DSTU2 despite it not being defined in the standard."],["The request must include a JSON Patch document in the body and specify `Content-Type: application/json-patch+json` in the headers."],["Successful updates return a JSON-encoded representation of the updated resource, while errors return a JSON-encoded `OperationOutcome` resource."],["Authorization to use this method requires the `healthcare.fhirResources.patch` IAM permission, along with one of the required OAuth scopes."]]],[]]