> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dentolize.com/llms.txt
> Use this file to discover all available pages before exploring further.

# New Operation

> Payload forwarded when a clinical operation is created.

| Field         | Type   | Details                                               |
| ------------- | ------ | ----------------------------------------------------- |
| id            | string | Operation identifier.                                 |
| quantity      | number | Quantity performed.                                   |
| price         | number | Unit price.                                           |
| name          | string | Operation name.                                       |
| code          | string | Operation code.                                       |
| service\_id   | string | Linked procedure identifier.                          |
| patient\_id   | string | Patient associated with the operation.                |
| operator\_id  | string | Performing doctor identifier.                         |
| branch\_data  | object | Branch context (`id`, `name`) when available.         |
| patient\_data | object | Snapshot of the patient at the time of the operation. |

### Patient snapshot

| Field         | Type   | Details                                                     |
| ------------- | ------ | ----------------------------------------------------------- |
| id            | string | Patient identifier.                                         |
| name          | string | Combined `firstName` and `lastName`.                        |
| file\_no      | string | Patient chart number.                                       |
| reference\_no | string | Reference identifier.                                       |
| nationalId    | string | National identifier.                                        |
| phone         | string | Phone number segment before the `_` separator, if provided. |
| mobile        | string | Phone number segment after the `_` separator, if provided.  |

```json theme={null}
{
  "id": "op_01",
  "quantity": 1,
  "price": 150,
  "name": "Extraction",
  "code": "EXT-01",
  "service_id": "proc_11",
  "patient_id": "pat_123",
  "operator_id": "doc_09",
  "branch_data": {
    "id": "br_01",
    "name": "Main Branch"
  },
  "patient_data": {
    "id": "pat_123",
    "name": "Jane Doe",
    "file_no": "PT-00017",
    "reference_no": "REF-883",
    "nationalId": "1234567890",
    "phone": "+1",
    "mobile": "5551234567"
  }
}
```
