update
Replace the full content of an existing FHIR resource when its type and ID are known; include every element to keep because omitted fields are removed.
Instructions
Replaces the full content of an existing FHIR resource (FHIR update interaction: PUT [base]/{type}/{id}). Use it to correct or complete a record whose logical id you already know. Elements left out of the payload are removed from the stored resource, not kept, so first get the current version with read, change what you need, and send the whole resource back. Do not use it to add new records; use create for that. On success it returns the resource as stored, with an updated meta.versionId and meta.lastUpdated. On failure it returns OperationOutcome issues whose diagnostics explain what to fix.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"id": "<id>",
"payload": "<payload>"
},
"name": "update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The logical ID of a specific FHIR resource instance. | |
| type | Yes | The FHIR resource type name. Must exactly match one of the resource types supported by the server. | |
| payload | Yes | The complete new content of the resource. It replaces the stored version entirely, so include every required element and all existing data you want to keep. Set `resourceType` to the same value as `type`; if omitted, it defaults to `type`. The body `id` is always set to the `id` argument, overriding any value given here. | |
| operation | No | The name of a custom FHIR operation or extended query defined for the resourceMust match one of the operation names returned by `get_capabilities`. | |
| searchParam | No | A mapping of FHIR search parameter names to their desired values. These parameters refine queries for operation-specific query qualifiers. Only parameters exposed by `get_capabilities` for that resource type are valid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | A dictionary containing the updated FHIR resource |