# Cerbo

> Work with your practice's Cerbo EHR: find, add and update patients and their tags, book, move and cancel appointments, check availability, start encounter notes, manage tasks, and email patients.

App · 30 actions. Web page: https://docs.lodol.com/docs/integrations/cerbo

## Actions

### Add patient

Add a patient to Cerbo with their name, date of birth and sex, and optionally their email and status (such as prospective).

**Inputs**

- First name (`first_name`, text, required): The patient's first name.
- Last name (`last_name`, text, required): The patient's last name.
- Date of birth (`dob`, date, required): The patient's date of birth.
- Sex (`sex`, text, required): The patient's sex as Cerbo records it. One of: `M` (Male), `F` (Female), `?` (Unknown).
- Middle name (`middle_name`, text): The patient's middle name.
- Email (`email`, text): The patient's primary email address.
- Status (`status`, text): Active, prospective, inactive or deceased. New patients are active unless chosen. One of: `active`, `prospective`, `inactive`, `deceased`.
- Other fields (`other_fields`, object): Any other patient fields, named as Cerbo names them in a patient record (for example its address or phone fields).

**Outputs**

- `patient` (object): The patient

**Example output**

```json
{
  "patient": {
    "dob": "1985-04-12",
    "email1": "jordan@example.com",
    "first_name": "Jordan",
    "id": 1201,
    "inactive": false,
    "last_name": "Rivera",
    "middle_name": "",
    "patient_status_description": "active",
    "sex": "F"
  }
}
```

### Archive patient

Archive a patient. Cerbo keeps their chart; it is not erased.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.

**Outputs**

- `archived` (true/false): True once archived
- `patient_id` (number): The patient archived

**Example output**

```json
{
  "archived": true,
  "patient_id": 1201
}
```

### Book appointment

Book an appointment on the Cerbo calendar with one or more providers, for a patient or as a block of time.

**Inputs**

- Start (`start_at`, date and time, required): When the appointment starts.
- End (`end_at`, date and time, required): When the appointment ends.
- Clinic time zone (`time_zone`, text, required): The time zone your Cerbo calendar is in. Cerbo takes appointment times as a clock time, so the start and end are sent as the time there.
- Providers (`provider_ids`, list, required): The providers (or rooms and other resources) the appointment is with.
- Appointment type (`appointment_type`, text, required): The appointment type, by its name in Cerbo.
- Title (`title`, text, required): The title shown on the calendar.
- Note (`appointment_note`, text): A note kept with the appointment.
- Patient ID (`patient_id`, text): The patient the appointment is for. Leave empty for a block of time with no patient.
- Status (`status`, text): The appointment's status. Cancelled cancels it. A status your clinic added can be typed. One of: `scheduled`, `confirmed`, `checked-in` (Checked in), `in-room` (In room), `cancelled`.
- Telemedicine (`telemedicine`, true/false): Whether it is a telemedicine (video) appointment.

**Outputs**

- `appointment` (object): The appointment

**Example output**

```json
{
  "appointment": {
    "addedby": 7,
    "appointment_location": "Main office",
    "appointment_note": "",
    "appointment_status": "scheduled",
    "appointment_type": "Office Visit",
    "associated_providers": [
      {
        "email": "sam.lee@example.com",
        "first_name": "Sam",
        "id": 7,
        "is_resource": false,
        "last_name": "Lee",
        "middle_name": "",
        "npi": "1234567890",
        "prefix": "Dr.",
        "suffix": "MD"
      }
    ],
    "created": "2026-11-30 15:02:11",
    "end_date_time": "2026-12-03 09:30:00",
    "id": 5521,
    "patient_details": {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": "1201",
      "last_name": "Rivera",
      "middle_name": "",
      "sex": "F",
      "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
    },
    "start_date_time": "2026-12-03 09:00:00",
    "telemedicine": {
      "is_telemedicine": false,
      "telemedicine_url": null
    },
    "title": "Annual physical"
  }
}
```

### Create encounter

Start an encounter note on a patient's chart, with a title, type, date of service and optional text.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- Date of service (`date_of_service`, date, required): The day the visit took or will take place (past or future).
- Title (`title`, text, required): The note's title.
- Encounter type (`encounter_type`, text, required): The kind of note, such as an office visit. Pick one, or type its code.
- Note text (`content`, text): The text of the note, as plain text.
- Owner (`owner_id`, text): The staff member who owns the note. Defaults to the API user.
- Parent encounter ID (`parent_encounter_id`, text): File it as a sub-note of this encounter of the same patient (which must not be a sub-note itself).

**Outputs**

- `encounter` (object): The encounter note

**Example output**

```json
{
  "encounter": {
    "date_of_service": "2026-11-30",
    "encounter_type": "ph",
    "id": 8840,
    "title": "Follow-up call"
  }
}
```

### Create task

Add a task for a staff member, optionally about a patient, with a due time and reminder.

**Inputs**

- Assigned to (`assignee_id`, text, required): The staff member the task is for.
- Subject (`subject`, text, required): What the task is.
- Priority (`priority`, text): Low, normal or high. Defaults to normal. One of: `normal`, `low`, `high`. Default: `normal`.
- Notes (`notes`, text): More detail for the task.
- Patient ID (`patient_id`, text): The patient the task is about, if any.
- Due (`due_at`, date and time): When the task is due.
- Remind minutes before (`remind_minutes_before`, number): Remind the assignee this many minutes before it is due (needs a due time). At least 0.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "addedby": 7,
    "completed_on": null,
    "created": "2026-11-30 15:05:00",
    "dr_id": 7,
    "due_date": "2026-12-01 17:00:00",
    "id": 310,
    "notes": "",
    "patient_details": {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": "1201",
      "last_name": "Rivera",
      "middle_name": "",
      "sex": "F",
      "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
    },
    "priority": "normal",
    "reminder_time": null,
    "start_date": null,
    "subject": "Call back about lab results"
  }
}
```

### Delete appointment

Remove an appointment from the calendar completely. To cancel one and keep its record, use 'Update appointment' with the status Cancelled.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID, from 'List appointments', a trigger or an earlier step.

**Outputs**

- `appointment_id` (number): The appointment deleted
- `deleted` (true/false): True once deleted

**Example output**

```json
{
  "appointment_id": 5521,
  "deleted": true
}
```

### Delete encounter

Delete an encounter note.

**Inputs**

- Encounter ID (`encounter_id`, text, required): The encounter note's ID, from 'List patient encounters' or an earlier step.

**Outputs**

- `deleted` (true/false): True once deleted
- `encounter_id` (number): The encounter deleted

**Example output**

```json
{
  "deleted": true,
  "encounter_id": 8840
}
```

### Email patient

Email a patient's primary address in the practice's own email layout (logo and practice details). Replies go to the address given.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- Subject (`subject`, text, required): The email's subject.
- Message (`body`, text, required): The email's text.
- Reply-to address (`reply_to`, text, required): Where the patient's reply goes. The email itself comes from do-not-reply@md-hq.com.

**Outputs**

- `patient_id` (number): The patient emailed
- `sent` (true/false): True once Cerbo accepted it
- `subject` (text): The subject sent

**Example output**

```json
{
  "patient_id": 1201,
  "sent": true,
  "subject": "Your visit next week"
}
```

### Get appointment

Get one appointment with its time, status, patient and providers.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID, from 'List appointments', a trigger or an earlier step.

**Outputs**

- `appointment` (object): The appointment

**Example output**

```json
{
  "appointment": {
    "addedby": 7,
    "appointment_location": "Main office",
    "appointment_note": "",
    "appointment_status": "scheduled",
    "appointment_type": "Office Visit",
    "associated_providers": [
      {
        "email": "sam.lee@example.com",
        "first_name": "Sam",
        "id": 7,
        "is_resource": false,
        "last_name": "Lee",
        "middle_name": "",
        "npi": "1234567890",
        "prefix": "Dr.",
        "suffix": "MD"
      }
    ],
    "created": "2026-11-30 15:02:11",
    "end_date_time": "2026-12-03 09:30:00",
    "id": 5521,
    "patient_details": {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": "1201",
      "last_name": "Rivera",
      "middle_name": "",
      "sex": "F",
      "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
    },
    "start_date_time": "2026-12-03 09:00:00",
    "telemedicine": {
      "is_telemedicine": false,
      "telemedicine_url": null
    },
    "title": "Annual physical"
  }
}
```

### Get availability

List each provider's open times by appointment type, up to 90 days at a time.

**Inputs**

- From (`start_date`, date, required): The first day to look at.
- To (`end_date`, date, required): The last day to look at, at most 90 days after the first.
- Providers (`provider_ids`, list): Only these providers. Leave empty for all.
- Appointment types (`appointment_type_ids`, list): Only these appointment types. Leave empty for all.

**Outputs**

- `count` (number): How many providers
- `end_date` (text): The last day looked at
- `gmt_timezone_offset` (text): The practice's offset from GMT the times are in
- `providers` (list): Each provider's open windows by appointment type
- `start_date` (text): The first day looked at

**Example output**

```json
{
  "count": 1,
  "end_date": "2026-12-07",
  "gmt_timezone_offset": "-06:00",
  "providers": [
    {
      "availability_by_type": [
        {
          "appointment_type_details": {
            "id": 3,
            "name": "Office Visit"
          },
          "appointment_type_id": 3,
          "available_windows": [
            {
              "minutes_available_at_this_time": 180,
              "window_end": "2026-12-03 12:00:00",
              "window_start": "2026-12-03 09:00:00"
            }
          ]
        }
      ],
      "provider_details": {
        "email": "sam.lee@example.com",
        "first_name": "Sam",
        "id": 7,
        "is_resource": false,
        "last_name": "Lee",
        "middle_name": "",
        "npi": "1234567890",
        "prefix": "Dr.",
        "suffix": "MD"
      },
      "provider_id": 7
    }
  ],
  "start_date": "2026-12-01"
}
```

### Get document

Get one document's details (not the file itself).

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, from 'List patient documents' or a trigger.

**Outputs**

- `document` (object): The document

**Example output**

```json
{
  "document": {
    "id": 9912,
    "title": "Intake form"
  }
}
```

### Get encounter

Get one encounter note with its details.

**Inputs**

- Encounter ID (`encounter_id`, text, required): The encounter note's ID, from 'List patient encounters' or an earlier step.

**Outputs**

- `encounter` (object): The encounter note

**Example output**

```json
{
  "encounter": {
    "date_of_service": "2026-11-30",
    "encounter_type": "ph",
    "id": 8840,
    "title": "Follow-up call"
  }
}
```

### Get patient

Get one patient's record by their Cerbo ID.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.

**Outputs**

- `patient` (object): The patient

**Example output**

```json
{
  "patient": {
    "dob": "1985-04-12",
    "email1": "jordan@example.com",
    "first_name": "Jordan",
    "id": 1201,
    "inactive": false,
    "last_name": "Rivera",
    "middle_name": "",
    "patient_status_description": "active",
    "sex": "F"
  }
}
```

### Get task

Get one task with its assignee, due date, patient and whether it is done.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from 'List tasks', a trigger or an earlier step.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "addedby": 7,
    "completed_on": null,
    "created": "2026-11-30 15:05:00",
    "dr_id": 7,
    "due_date": "2026-12-01 17:00:00",
    "id": 310,
    "notes": "",
    "patient_details": {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": "1201",
      "last_name": "Rivera",
      "middle_name": "",
      "sex": "F",
      "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
    },
    "priority": "normal",
    "reminder_time": null,
    "start_date": null,
    "subject": "Call back about lab results"
  }
}
```

### List appointment types

List the practice's appointment types with their default length and status.

**Inputs**

- Include deleted (`include_deleted`, true/false): Include deleted appointment types too.
- Page size (`limit`, number): How many to return, 1 to 1000. Cerbo's default is 1000. From 1 to 1000.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `appointment_types` (list): The appointment types
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "appointment_types": [
    {
      "allow_on_portal": true,
      "default_length": 30,
      "default_status": "scheduled",
      "description": "",
      "id": 3,
      "is_active": true,
      "name": "Office Visit",
      "name_portal": "Office visit",
      "telemedicine": false
    }
  ],
  "count": 1,
  "has_more": false,
  "next_offset": 0,
  "total_count": 1
}
```

### List appointments

List the appointments between two dates, optionally for one provider, one patient or some statuses. Cancelled ones are left out unless asked.

**Inputs**

- From (`start_date`, date, required): The first day to include.
- To (`end_date`, date, required): The last day to include.
- Provider (`provider_user_id`, text): Only this provider's appointments.
- Patient ID (`patient_id`, text): Only this patient's appointments (their Cerbo ID).
- Statuses (`statuses`, list): Only appointments with these statuses. One or more of: `scheduled`, `confirmed`, `checked-in` (Checked in), `in-room` (In room), `cancelled`.
- Include cancelled (`include_cancelled`, true/false): Include cancelled appointments too.
- Page size (`limit`, number): How many to return, 1 to 1000. Cerbo's default is 1000. From 1 to 1000.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `appointments` (list): The appointments
- `count` (number): How many are on this page
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "appointments": [
    {
      "addedby": 7,
      "appointment_location": "Main office",
      "appointment_note": "",
      "appointment_status": "scheduled",
      "appointment_type": "Office Visit",
      "associated_providers": [
        {
          "email": "sam.lee@example.com",
          "first_name": "Sam",
          "id": 7,
          "is_resource": false,
          "last_name": "Lee",
          "middle_name": "",
          "npi": "1234567890",
          "prefix": "Dr.",
          "suffix": "MD"
        }
      ],
      "created": "2026-11-30 15:02:11",
      "end_date_time": "2026-12-03 09:30:00",
      "id": 5521,
      "patient_details": {
        "dob": "1985-04-12",
        "email1": "jordan@example.com",
        "first_name": "Jordan",
        "id": "1201",
        "last_name": "Rivera",
        "middle_name": "",
        "sex": "F",
        "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
      },
      "start_date_time": "2026-12-03 09:00:00",
      "telemedicine": {
        "is_telemedicine": false,
        "telemedicine_url": null
      },
      "title": "Annual physical"
    }
  ],
  "count": 1,
  "has_more": false,
  "next_offset": 0,
  "total_count": 1
}
```

### List encounter types

List the practice's encounter types (office visit, phone call and so on) with the code each new note is filed under.

**Inputs**

- Include deleted (`include_deleted`, true/false): Include deleted encounter types too.

**Outputs**

- `count` (number): How many
- `encounter_types` (list): The encounter types

**Example output**

```json
{
  "count": 1,
  "encounter_types": [
    {
      "description": "",
      "encounter_type": "ov",
      "is_face_to_face": true,
      "name": "Office Visit",
      "place_of_service_code": "11",
      "sort_priority": 1
    }
  ]
}
```

### List patient documents

List the documents on a patient's chart, optionally from one folder.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- Folder (`folder`, text): Only documents in this folder (tab) of the chart.
- Page size (`limit`, number): How many to return, 1 to 100. Cerbo's default is 100. From 1 to 100.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `documents` (list): The documents
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "documents": [
    {
      "id": 9912,
      "title": "Intake form"
    }
  ],
  "has_more": false,
  "next_offset": 0,
  "total_count": 1
}
```

### List patient encounters

List a patient's encounter notes, signed ones only unless asked, with their diagnoses and plan items.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- Encounter type (`encounter_type`, text): Only notes of this type.
- Include unsigned notes (`include_unsigned`, true/false): Include notes that are not signed yet.
- Page size (`limit`, number): How many to return, 1 to 100. Cerbo's default is 100. From 1 to 100.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `encounters` (list): The encounter notes
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "encounters": [
    {
      "date_of_service": "2026-11-30",
      "encounter_type": "ph",
      "id": 8840,
      "title": "Follow-up call"
    }
  ],
  "has_more": false,
  "next_offset": 0,
  "total_count": 1
}
```

### List patient tags

List the tags applied to a patient, with their notes.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.

**Outputs**

- `count` (number): How many
- `patient_id` (number): The patient
- `tags` (list): The patient's tags

**Example output**

```json
{
  "count": 1,
  "patient_id": 1201,
  "tags": [
    {
      "date_applied": "2026-11-30 15:06:00",
      "name": "New Patient",
      "notes": "",
      "tag_category": "Onboarding"
    }
  ]
}
```

### List patients

List the practice's patients, 100 at a time. To see more, run it again with the next offset it gives.

**Inputs**

- Active patients only (`active_only`, true/false): Leave out prospective, inactive and deceased patients.
- Page size (`limit`, number): How many to return, 1 to 100. Cerbo's default is 100. From 1 to 100.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `patients` (list): The patients
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 0,
  "patients": [
    {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": 1201,
      "inactive": false,
      "last_name": "Rivera",
      "middle_name": "",
      "patient_status_description": "active",
      "sex": "F"
    }
  ],
  "total_count": 1
}
```

### List tags

List the tags on the practice's master tag list.

**Inputs**

- Include deleted (`include_deleted`, true/false): Include deleted tags too.

**Outputs**

- `count` (number): How many
- `tags` (list): The tags

**Example output**

```json
{
  "count": 1,
  "tags": [
    {
      "category": "Onboarding",
      "description": "",
      "id": 12,
      "name": "New Patient"
    }
  ]
}
```

### List tasks

List the practice's tasks, 100 at a time. To see more, run it again with the next offset it gives.

**Inputs**

- Page size (`limit`, number): How many to return, 1 to 100. Cerbo's default is 100. From 1 to 100.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `tasks` (list): The tasks
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 0,
  "tasks": [
    {
      "addedby": 7,
      "completed_on": null,
      "created": "2026-11-30 15:05:00",
      "dr_id": 7,
      "due_date": "2026-12-01 17:00:00",
      "id": 310,
      "notes": "",
      "patient_details": {
        "dob": "1985-04-12",
        "email1": "jordan@example.com",
        "first_name": "Jordan",
        "id": "1201",
        "last_name": "Rivera",
        "middle_name": "",
        "sex": "F",
        "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
      },
      "priority": "normal",
      "reminder_time": null,
      "start_date": null,
      "subject": "Call back about lab results"
    }
  ],
  "total_count": 1
}
```

### List users

List the practice's providers and staff, with their IDs for other steps.

**Inputs**

- Include inactive (`include_inactive`, true/false): Include deleted and suspended users too.
- Page size (`limit`, number): How many to return, 1 to 100. Cerbo's default is 10. From 1 to 100.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `total_count` (number): How many there are in all
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 0,
  "total_count": 1,
  "users": [
    {
      "active": true,
      "email": "sam.lee@example.com",
      "first_name": "Sam",
      "id": 7,
      "is_resource": false,
      "last_name": "Lee",
      "middle_name": "",
      "npi": "1234567890",
      "prefix": "Dr.",
      "suffix": "MD"
    }
  ]
}
```

### Remove patient tag

Take a tag off a patient.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- Tag (`tag_name`, text, required): A tag from the practice's master tag list. Pick one, or type its name.

**Outputs**

- `patient_id` (number): The patient
- `removed` (true/false): True once removed
- `tag_name` (text): The tag removed

**Example output**

```json
{
  "patient_id": 1201,
  "removed": true,
  "tag_name": "New Patient"
}
```

### Search patients

Find patients by first or last name, email or date of birth. Use % as a wildcard, as in smith% or %@example.com.

**Inputs**

- First name (`first_name`, text): Match this first name (smi% matches Smith and Smithson).
- Last name (`last_name`, text): Match this last name; % is a wildcard.
- Email (`email`, text): Match this primary or secondary email; % is a wildcard.
- Date of birth (`dob`, date): Match this exact date of birth.
- Page size (`limit`, number): How many to return, 1 to 100. Cerbo's default is 100. From 1 to 100.
- Offset (`offset`, number): How many to skip: the 'next_offset' from an earlier page. At least 0.

**Outputs**

- `count` (number): How many are on this page
- `has_more` (true/false): Whether there is another page
- `next_offset` (number): The offset for the next page, 0 when there is none
- `patients` (list): The matching patients
- `total_count` (number): How many there are in all

**Example output**

```json
{
  "count": 1,
  "has_more": false,
  "next_offset": 0,
  "patients": [
    {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": 1201,
      "inactive": false,
      "last_name": "Rivera",
      "middle_name": "",
      "patient_status_description": "active",
      "sex": "F"
    }
  ],
  "total_count": 1
}
```

### Tag patient

Apply a tag from the master list to a patient, with an optional note. If the patient already has it, its note is changed.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- Tag (`tag_name`, text, required): A tag from the practice's master tag list. Pick one, or type its name.
- Note (`notes`, text): A note kept with the tag on this patient.

**Outputs**

- `patient_id` (number): The patient
- `tag_name` (text): The tag applied
- `tagged` (true/false): True once applied

**Example output**

```json
{
  "patient_id": 1201,
  "tag_name": "New Patient",
  "tagged": true
}
```

### Update appointment

Move an appointment, change its details, or set its status, such as checked in or cancelled. Only the fields given change.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID, from 'List appointments', a trigger or an earlier step.
- New start (`start_at`, date and time): A new start time. Give an end and the time zone with it.
- New end (`end_at`, date and time): A new end time. Give a start and the time zone with it.
- Clinic time zone (`time_zone`, text): The time zone your Cerbo calendar is in. Needed only to change the time.
- Providers (`provider_ids`, list): Replace the providers the appointment is with. Leave empty to keep them.
- Appointment type (`appointment_type`, text): A new appointment type. Leave empty to keep it.
- Title (`title`, text): A new title. Leave empty to keep it.
- Note (`appointment_note`, text): A new note. Leave empty to keep it.
- Patient ID (`patient_id`, text): Move it to another patient. Leave empty to keep it.
- Status (`status`, text): The appointment's status. Cancelled cancels it. A status your clinic added can be typed. One of: `scheduled`, `confirmed`, `checked-in` (Checked in), `in-room` (In room), `cancelled`.

**Outputs**

- `appointment` (object): The appointment

**Example output**

```json
{
  "appointment": {
    "addedby": 7,
    "appointment_location": "Main office",
    "appointment_note": "",
    "appointment_status": "cancelled",
    "appointment_type": "Office Visit",
    "associated_providers": [
      {
        "email": "sam.lee@example.com",
        "first_name": "Sam",
        "id": 7,
        "is_resource": false,
        "last_name": "Lee",
        "middle_name": "",
        "npi": "1234567890",
        "prefix": "Dr.",
        "suffix": "MD"
      }
    ],
    "created": "2026-11-30 15:02:11",
    "end_date_time": "2026-12-03 09:30:00",
    "id": 5521,
    "patient_details": {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": "1201",
      "last_name": "Rivera",
      "middle_name": "",
      "sex": "F",
      "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
    },
    "start_date_time": "2026-12-03 09:00:00",
    "telemedicine": {
      "is_telemedicine": false,
      "telemedicine_url": null
    },
    "title": "Annual physical"
  }
}
```

### Update patient

Change a patient's details or status. Only the fields given change.

**Inputs**

- Patient ID (`patient_id`, text, required): The patient's Cerbo ID, from 'Search patients', a trigger or an earlier step.
- First name (`first_name`, text): The patient's first name. Leave empty to keep it.
- Last name (`last_name`, text): The patient's last name. Leave empty to keep it.
- Date of birth (`dob`, date): The patient's date of birth. Leave empty to keep it.
- Sex (`sex`, text): The patient's sex as Cerbo records it. Leave empty to keep it. One of: `M` (Male), `F` (Female), `?` (Unknown).
- Middle name (`middle_name`, text): The patient's middle name.
- Email (`email`, text): The patient's primary email address.
- Status (`status`, text): Active, prospective, inactive or deceased. New patients are active unless chosen. One of: `active`, `prospective`, `inactive`, `deceased`.
- Other fields (`other_fields`, object): Any other patient fields, named as Cerbo names them in a patient record (for example its address or phone fields).

**Outputs**

- `patient` (object): The patient

**Example output**

```json
{
  "patient": {
    "dob": "1985-04-12",
    "email1": "jordan@example.com",
    "first_name": "Jordan",
    "id": 1201,
    "inactive": false,
    "last_name": "Rivera",
    "middle_name": "",
    "patient_status_description": "inactive",
    "sex": "F"
  }
}
```

### Update task

Change a task, or mark it done or not done. Only the fields given change.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from 'List tasks', a trigger or an earlier step.
- Assigned to (`assignee_id`, text): Give the task to another staff member. Leave empty to keep it.
- Subject (`subject`, text): A new subject. Leave empty to keep it.
- Priority (`priority`, text): A new priority. Leave empty to keep it. One of: `normal`, `low`, `high`.
- Notes (`notes`, text): More detail for the task.
- Patient ID (`patient_id`, text): The patient the task is about, if any.
- Due (`due_at`, date and time): When the task is due.
- Remind minutes before (`remind_minutes_before`, number): Remind the assignee this many minutes before it is due (needs a due time). At least 0.
- Completed (`completed`, true/false): On marks the task done now; off marks it not done. Leave unset to keep it.

**Outputs**

- `task` (object): The task

**Example output**

```json
{
  "task": {
    "addedby": 7,
    "completed_on": "2026-11-30 16:00:00",
    "created": "2026-11-30 15:05:00",
    "dr_id": 7,
    "due_date": "2026-12-01 17:00:00",
    "id": 310,
    "notes": "",
    "patient_details": {
      "dob": "1985-04-12",
      "email1": "jordan@example.com",
      "first_name": "Jordan",
      "id": "1201",
      "last_name": "Rivera",
      "middle_name": "",
      "sex": "F",
      "url_patient_details": "https://clinic.md-hq.com/api/v1/patients/1201"
    },
    "priority": "normal",
    "reminder_time": null,
    "start_date": null,
    "subject": "Call back about lab results"
  }
}
```
