## ResourceModifiedEvent interface

Payload of the `resourceModified` event, emitted after this client instance successfully creates, updates, patches, or deletes a FHIR resource.

Emitted by `createResource`, `createResourceIfNoneExist`, `updateResource`, `upsertResource`, `patchResource`, `deleteResource`, and by `notifyResourceModified`. Conditional methods (`createResourceIfNoneExist`, `upsertResource`) emit even when the server made no change, except on HTTP 304 "Not Modified".

T - The type of the modified resource. Defaults to `Resource`; narrow it (e.g. via `useResourceModified('Slot', ...)`) to get a typed `resource` payload without extra guards.

**Signature:**  
```typescript  
export interface ResourceModifiedEvent<T extends Resource = Resource>  
```

## Properties

| Property | Modifiers | Type | Description |  
| --- | --- | --- | --- |  
| [id?](/content/docs/sdk/core.resourcemodifiedevent.id) |  | string | _(Optional)_ The resource id, when known. |  
| [operation](/content/docs/sdk/core.resourcemodifiedevent.operation) |  | 'create' \| 'update' \| 'patch' \| 'delete' | How the resource was modified. |  
| [resource?](/content/docs/sdk/core.resourcemodifiedevent.resource) |  | [WithId](/content/docs/sdk/core.withid) <T> | _(Optional)_ The server-returned resource, when available. Undefined for deletes. |  
| [resourceType](/content/docs/sdk/core.resourcemodifiedevent.resourcetype) |  | T['resourceType'] | The type of the modified resource. |

- [ResourceModifiedEvent interface](/content/docs/sdk/core.resourcemodifiedevent#resourcemodifiedevent-interface/index.html)  
- [Properties](/content/docs/sdk/core.resourcemodifiedevent#properties/index.html)
