# DrChrono

> Manage DrChrono patients and appointments, find open slots, read doctors, offices and clinical notes, work with tasks and messages, and follow new patients, appointments, tasks and messages.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/drchrono

## Actions

### Add task note

Add a note to a task.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID. At least 1.
- Note (`text`, text, required): The note.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "archived": true,
    "created_at": "example",
    "created_by": "example",
    "id": 1,
    "task": 1,
    "text": "example"
  }
}
```

### Create appointment

Book an appointment for a patient with a doctor at an office.

**Inputs**

- Patient ID (`patient`, number, required): The patient's DrChrono ID. At least 1.
- Doctor (`doctor`, number, required): The doctor. At least 1.
- Office (`office`, number, required): The office. At least 1.
- Exam room (`exam_room`, number, required): The exam room at the office. At least 0.
- Starts at (`scheduled_time`, date and time, required): When the appointment starts. It is set in the doctor's time zone.
- Duration (minutes) (`duration`, number): How long it lasts, in minutes. Leave empty to use the profile's length. At least 1.
- Appointment profile (`profile`, number): An appointment profile, which sets the length, color and reason. At least 1.
- Reason (`reason`, text): The reason for the visit.
- Notes (`notes`, text): Notes on the appointment.
- Status (`status`, text): The appointment's status. One of: `Arrived`, `Checked In`, `Checked In Online`, `In Room`, `In Session`, `Complete`, `Confirmed`, `Not Confirmed`, `Rescheduled`, `Cancelled`, `No Show`.
- Allow overlapping (`allow_overlapping`, true/false): Book it even if it overlaps another appointment.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "appt_is_break": true,
    "color": "example",
    "created_at": "example",
    "created_by": "example",
    "deleted_flag": true,
    "doctor": 1,
    "duration": 1,
    "exam_room": 1,
    "id": "example",
    "is_walk_in": true,
    "notes": "example",
    "office": 1,
    "patient": 1,
    "profile": 1,
    "reason": "example",
    "recurring_appointment": true,
    "scheduled_time": "example",
    "status": "example",
    "updated_at": "example"
  }
}
```

### Create message

Add a message to a doctor's message center, optionally about a patient and assigned to a user.

**Inputs**

- Doctor (`doctor`, number, required): The doctor whose message center it goes in. At least 1.
- Title (`title`, text, required): The message's title.
- Patient ID (`patient`, number): The patient it concerns, if any. At least 1.
- Assign to (`responsible_user`, text): The user who should deal with it.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "archived": true,
    "attachment": "example",
    "doctor": 1,
    "id": 1,
    "message_notes": [
      {}
    ],
    "owner": "example",
    "patient": 1,
    "patient_first_name": "example",
    "patient_last_name": "example",
    "read": true,
    "received_at": "example",
    "responsible_user": "example",
    "starred": true,
    "title": "example",
    "type": "example",
    "type_description": "example",
    "updated_at": "example",
    "workflow_step": "example"
  }
}
```

### Create patient

Add a patient to the practice.

**Inputs**

- Doctor (`doctor`, number, required): The patient's doctor. At least 1.
- Gender (`gender`, text, required): The patient's gender. One of: `Male`, `Female`, `Other`.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Middle name (`middle_name`, text): Middle name.
- Preferred name (`nick_name`, text): The name the patient goes by.
- Date of birth (`date_of_birth`, date): Date of birth.
- Email (`email`, text): Email address.
- Cell phone (`cell_phone`, text): Mobile phone number.
- Home phone (`home_phone`, text): Home phone number.
- Address (`address`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): Two-letter state, such as CA.
- ZIP code (`zip_code`, text): ZIP code.
- Chart ID (`chart_id`, text): The chart ID. Leave empty and DrChrono makes one from the name.
- Status (`patient_status`, text): Whether the patient is active. One of: `A` (Active), `I` (Inactive), `D` (Inactive (deceased)).
- Race (`race`, text): Race. One of: `blank` (Not given), `indian` (American Indian or Alaska Native), `asian`, `black` (Black or African American), `hawaiian` (Native Hawaiian or other Pacific Islander), `white`, `other`, `declined` (Declined to say).
- Ethnicity (`ethnicity`, text): Ethnicity. One of: `blank` (Not given), `hispanic` (Hispanic or Latino), `not_hispanic` (Not Hispanic or Latino), `declined` (Declined to say).
- Emergency contact (`emergency_contact_name`, text): Emergency contact's name.
- Emergency contact phone (`emergency_contact_phone`, text): Emergency contact's phone number.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "address": "example",
    "cell_phone": "example",
    "chart_id": "example",
    "city": "example",
    "created_at": "example",
    "date_of_birth": "example",
    "date_of_first_appointment": "example",
    "date_of_last_appointment": "example",
    "doctor": 1,
    "email": "example",
    "emergency_contact_name": "example",
    "emergency_contact_phone": "example",
    "ethnicity": "example",
    "first_name": "example",
    "gender": "example",
    "home_phone": "example",
    "id": 1,
    "last_name": "example",
    "middle_name": "example",
    "nick_name": "example",
    "office_phone": "example",
    "offices": [
      1
    ],
    "patient_status": "example",
    "preferred_language": "example",
    "race": "example",
    "state": "example",
    "updated_at": "example",
    "zip_code": "example"
  }
}
```

### Create task

Create a task in DrChrono's task center, optionally about a patient.

**Inputs**

- Title (`title`, text, required): What the task is.
- Status (`status`, number, required): The task's status. At least 1.
- Category (`category`, number): The task's category. At least 1.
- Priority (`priority`, text): How urgent it is. One of: `10` (Low), `20` (Medium), `30` (High), `40` (Urgent).
- Assign to (`assignee_user`, text): The user to assign it to.
- Due (`due`, date and time): When it's due.
- Patient ID (`patient_id`, number): A patient the task is about. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assigned_by": "example",
    "assignee_group": 1,
    "assignee_user": "example",
    "associated_items": [
      {
        "type": "example",
        "value": 1
      }
    ],
    "category": 1,
    "created_at": "example",
    "created_by": "example",
    "due_date": {
      "time": "example"
    },
    "id": 1,
    "notes": [
      {}
    ],
    "priority": "example",
    "status": 1,
    "title": "example",
    "updated_at": "example"
  }
}
```

### Delete appointment

Delete an appointment from the calendar.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}
```

### Delete message

Delete a message from the message center.

**Inputs**

- Message ID (`message_id`, number, required): The message's ID. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}
```

### Delete patient

Delete a patient from DrChrono.

**Inputs**

- Patient ID (`patient_id`, number, required): The patient's DrChrono ID. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}
```

### Get appointment

Get an appointment's time, patient, doctor, room, status and notes.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "appt_is_break": true,
    "color": "example",
    "created_at": "example",
    "created_by": "example",
    "deleted_flag": true,
    "doctor": 1,
    "duration": 1,
    "exam_room": 1,
    "id": "example",
    "is_walk_in": true,
    "notes": "example",
    "office": 1,
    "patient": 1,
    "profile": 1,
    "reason": "example",
    "recurring_appointment": true,
    "scheduled_time": "example",
    "status": "example",
    "updated_at": "example"
  }
}
```

### Get availability

Find the open appointment slots at an office, or for a doctor, on a day or over a date range.

**Inputs**

- Office (`office`, number): The office. At least 1.
- Doctor (`doctor`, number): Only those for this doctor. At least 1.
- On date (`date`, date): The day to look on.
- From (`date_from`, date): The first day of a range.
- To (`date_to`, date): The last day of the range.
- Slot length (minutes) (`duration`, number): How long each slot should be, in minutes. At least 5.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "date": "example",
    "date_range": [
      "example"
    ],
    "dates": [
      {}
    ],
    "doctor": 1,
    "duration": 1,
    "exam_room": 1,
    "office": 1,
    "open_slots": [
      {
        "availability": [
          {
            "end": "example",
            "start": "example"
          }
        ],
        "end": "example",
        "start": "example"
      }
    ]
  }
}
```

### Get clinical note

Get a clinical note with its sections and values.

**Inputs**

- Clinical note ID (`clinical_note_id`, number, required): The clinical note's ID. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "appointment": "example",
    "archived": true,
    "clinical_note_sections": [
      {
        "clinical_note_template": 1,
        "name": "example",
        "values": [
          {
            "clinical_note_field": 1,
            "value": "example"
          }
        ]
      }
    ],
    "id": 1,
    "patient": 1
  }
}
```

### Get doctor

Get a doctor's name, specialty, NPI number and time zone.

**Inputs**

- Doctor (`doctor_id`, number, required): The doctor. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "cell_phone": "example",
    "country": "example",
    "email": "example",
    "first_name": "example",
    "group_npi_number": "example",
    "id": 1,
    "is_account_suspended": true,
    "job_title": "example",
    "last_name": "example",
    "npi_number": "example",
    "office_phone": "example",
    "practice_group": "example",
    "specialty": "example",
    "suffix": "example",
    "timezone": "example",
    "website": "example"
  }
}
```

### Get message

Get a message with its type, patient, notes and attachment link.

**Inputs**

- Message ID (`message_id`, number, required): The message's ID. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "archived": true,
    "attachment": "example",
    "doctor": 1,
    "id": 1,
    "message_notes": [
      {}
    ],
    "owner": "example",
    "patient": 1,
    "patient_first_name": "example",
    "patient_last_name": "example",
    "read": true,
    "received_at": "example",
    "responsible_user": "example",
    "starred": true,
    "title": "example",
    "type": "example",
    "type_description": "example",
    "updated_at": "example",
    "workflow_step": "example"
  }
}
```

### Get patient

Get a patient's details and contact information.

**Inputs**

- Patient ID (`patient_id`, number, required): The patient's DrChrono ID. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "address": "example",
    "cell_phone": "example",
    "chart_id": "example",
    "city": "example",
    "created_at": "example",
    "date_of_birth": "example",
    "date_of_first_appointment": "example",
    "date_of_last_appointment": "example",
    "doctor": 1,
    "email": "example",
    "emergency_contact_name": "example",
    "emergency_contact_phone": "example",
    "ethnicity": "example",
    "first_name": "example",
    "gender": "example",
    "home_phone": "example",
    "id": 1,
    "last_name": "example",
    "middle_name": "example",
    "nick_name": "example",
    "office_phone": "example",
    "offices": [
      1
    ],
    "patient_status": "example",
    "preferred_language": "example",
    "race": "example",
    "state": "example",
    "updated_at": "example",
    "zip_code": "example"
  }
}
```

### Get task

Get a task with its status, assignee, due date and notes.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID. At least 1.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assigned_by": "example",
    "assignee_group": 1,
    "assignee_user": "example",
    "associated_items": [
      {
        "type": "example",
        "value": 1
      }
    ],
    "category": 1,
    "created_at": "example",
    "created_by": "example",
    "due_date": {
      "time": "example"
    },
    "id": 1,
    "notes": [
      {}
    ],
    "priority": "example",
    "status": 1,
    "title": "example",
    "updated_at": "example"
  }
}
```

### List appointments

List appointments on a date or date range, or changed since a date, by doctor, office, patient or status.

**Inputs**

- On date (`date`, date): Only appointments on this day.
- From (`date_from`, date): The first day of a range of up to 190 days.
- To (`date_to`, date): The last day of the range.
- Changed since (`since`, date): Only those created or changed on or after this date.
- Doctor (`doctor`, number): Only those for this doctor. At least 1.
- Office (`office`, number): Only those at this office. At least 1.
- Patient ID (`patient`, number): Only those for this patient. At least 1.
- Status (`status`, text): Only appointments with this status. One of: `Arrived`, `Checked In`, `Checked In Online`, `In Room`, `In Session`, `Complete`, `Confirmed`, `Not Confirmed`, `Rescheduled`, `Cancelled`, `No Show`.
- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "appt_is_break": true,
        "color": "example",
        "created_at": "example",
        "created_by": "example",
        "deleted_flag": true,
        "doctor": 1,
        "duration": 1,
        "exam_room": 1,
        "id": "example",
        "is_walk_in": true,
        "notes": "example",
        "office": 1,
        "patient": 1,
        "profile": 1,
        "reason": "example",
        "recurring_appointment": true,
        "scheduled_time": "example",
        "status": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List clinical notes

List clinical notes, by patient, doctor or office, on a date or changed since a date.

**Inputs**

- Patient ID (`patient`, number): Only those for this patient. At least 1.
- Doctor (`doctor`, number): Only those for this doctor. At least 1.
- Office (`office`, number): Only those at this office. At least 1.
- On date (`date`, date): Only notes for appointments on this day.
- Changed since (`since`, date): Only those created or changed on or after this date.
- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "appointment": "example",
        "archived": true,
        "clinical_note_sections": [
          {
            "clinical_note_template": 1,
            "name": "example",
            "values": [
              {
                "clinical_note_field": 1,
                "value": "example"
              }
            ]
          }
        ],
        "id": 1,
        "patient": 1
      }
    ]
  }
}
```

### List doctors

List the doctors in the practice group.

**Inputs**

- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "cell_phone": "example",
        "country": "example",
        "email": "example",
        "first_name": "example",
        "group_npi_number": "example",
        "id": 1,
        "is_account_suspended": true,
        "job_title": "example",
        "last_name": "example",
        "npi_number": "example",
        "office_phone": "example",
        "practice_group": "example",
        "specialty": "example",
        "suffix": "example",
        "timezone": "example",
        "website": "example"
      }
    ]
  }
}
```

### List messages

List messages in the doctor's message center, by doctor or patient, received or changed since a date.

**Inputs**

- Doctor (`doctor`, number): Only those for this doctor. At least 1.
- Patient ID (`patient`, number): Only those for this patient. At least 1.
- Received since (`received_since`, date): Only messages received on or after this date.
- Changed since (`updated_since`, date): Only messages changed on or after this date.
- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "archived": true,
        "attachment": "example",
        "doctor": 1,
        "id": 1,
        "message_notes": [
          {}
        ],
        "owner": "example",
        "patient": 1,
        "patient_first_name": "example",
        "patient_last_name": "example",
        "read": true,
        "received_at": "example",
        "responsible_user": "example",
        "starred": true,
        "title": "example",
        "type": "example",
        "type_description": "example",
        "updated_at": "example",
        "workflow_step": "example"
      }
    ]
  }
}
```

### List offices

List the practice's offices with their addresses and exam rooms.

**Inputs**

- Doctor (`doctor`, number): Only those for this doctor. At least 1.
- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "address": "example",
        "archived": true,
        "city": "example",
        "country": "example",
        "doctor": 1,
        "end_time": "example",
        "exam_rooms": [
          {
            "index": 1,
            "name": "example",
            "online_scheduling": true
          }
        ],
        "fax_number": "example",
        "id": 1,
        "name": "example",
        "online_scheduling": true,
        "phone_number": "example",
        "start_time": "example",
        "state": "example",
        "zip_code": "example"
      }
    ]
  }
}
```

### List patients

List or search patients by name, date of birth, email, chart ID or doctor, or those changed since a date.

**Inputs**

- First name (`first_name`, text): Only patients with this first name.
- Last name (`last_name`, text): Only patients with this last name.
- Date of birth (`date_of_birth`, date): Only patients born on this date.
- Email (`email`, text): Only the patient with this email address.
- Chart ID (`chart_id`, text): Only the patient with this chart ID.
- Doctor (`doctor`, number): Only those for this doctor. At least 1.
- Changed since (`since`, date): Only those created or changed on or after this date.
- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "address": "example",
        "cell_phone": "example",
        "chart_id": "example",
        "city": "example",
        "created_at": "example",
        "date_of_birth": "example",
        "date_of_first_appointment": "example",
        "date_of_last_appointment": "example",
        "doctor": 1,
        "email": "example",
        "emergency_contact_name": "example",
        "emergency_contact_phone": "example",
        "ethnicity": "example",
        "first_name": "example",
        "gender": "example",
        "home_phone": "example",
        "id": 1,
        "last_name": "example",
        "middle_name": "example",
        "nick_name": "example",
        "office_phone": "example",
        "offices": [
          1
        ],
        "patient_status": "example",
        "preferred_language": "example",
        "race": "example",
        "state": "example",
        "updated_at": "example",
        "zip_code": "example"
      }
    ]
  }
}
```

### List tasks

List tasks, by status, category or assignee, or changed since a date.

**Inputs**

- Status (`status`, number): Only tasks with this status. At least 1.
- Category (`category`, number): Only tasks in this category. At least 1.
- Assigned to (`assignee_user`, number): Only tasks assigned to this user. At least 1.
- Changed since (`since`, date): Only those created or changed on or after this date.
- How many (`page_size`, number): How many to return, up to 250 (20 for appointments). Leave empty for 100 (20 for appointments). From 1 to 250.
- Next page cursor (`cursor`, text): For the next page: the next cursor the last page returned.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "next": "example",
    "next_cursor": "example",
    "previous": "example",
    "results": [
      {
        "archived": true,
        "assigned_by": "example",
        "assignee_group": 1,
        "assignee_user": "example",
        "associated_items": [
          {
            "type": "example",
            "value": 1
          }
        ],
        "category": 1,
        "created_at": "example",
        "created_by": "example",
        "due_date": {
          "time": "example"
        },
        "id": 1,
        "notes": [
          {}
        ],
        "priority": "example",
        "status": 1,
        "title": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### Update appointment

Move an appointment or change its status, room, reason or notes. Only the fields filled in change.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID.
- Office (`office`, number): A different office. At least 1.
- Doctor (`doctor`, number): A different doctor. At least 1.
- Starts at (`scheduled_time`, date and time): When the appointment starts. It is set in the doctor's time zone.
- Duration (minutes) (`duration`, number): How long it lasts, in minutes. Leave empty to use the profile's length. At least 1.
- Exam room (`exam_room`, number): The exam room at the office. At least 0.
- Appointment profile (`profile`, number): An appointment profile, which sets the length, color and reason. At least 1.
- Reason (`reason`, text): The reason for the visit.
- Notes (`notes`, text): Notes on the appointment.
- Status (`status`, text): The appointment's status. One of: `Arrived`, `Checked In`, `Checked In Online`, `In Room`, `In Session`, `Complete`, `Confirmed`, `Not Confirmed`, `Rescheduled`, `Cancelled`, `No Show`.
- Allow overlapping (`allow_overlapping`, true/false): Book it even if it overlaps another appointment.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "appt_is_break": true,
    "color": "example",
    "created_at": "example",
    "created_by": "example",
    "deleted_flag": true,
    "doctor": 1,
    "duration": 1,
    "exam_room": 1,
    "id": "example",
    "is_walk_in": true,
    "notes": "example",
    "office": 1,
    "patient": 1,
    "profile": 1,
    "reason": "example",
    "recurring_appointment": true,
    "scheduled_time": "example",
    "status": "example",
    "updated_at": "example"
  }
}
```

### Update patient

Change a patient's details. Only the fields filled in change.

**Inputs**

- Patient ID (`patient_id`, number, required): The patient's DrChrono ID. At least 1.
- Doctor (`doctor`, number): The patient's doctor. At least 1.
- Gender (`gender`, text): The patient's gender. One of: `Male`, `Female`, `Other`.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Middle name (`middle_name`, text): Middle name.
- Preferred name (`nick_name`, text): The name the patient goes by.
- Date of birth (`date_of_birth`, date): Date of birth.
- Email (`email`, text): Email address.
- Cell phone (`cell_phone`, text): Mobile phone number.
- Home phone (`home_phone`, text): Home phone number.
- Address (`address`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): Two-letter state, such as CA.
- ZIP code (`zip_code`, text): ZIP code.
- Chart ID (`chart_id`, text): The chart ID. Leave empty and DrChrono makes one from the name.
- Status (`patient_status`, text): Whether the patient is active. One of: `A` (Active), `I` (Inactive), `D` (Inactive (deceased)).
- Race (`race`, text): Race. One of: `blank` (Not given), `indian` (American Indian or Alaska Native), `asian`, `black` (Black or African American), `hawaiian` (Native Hawaiian or other Pacific Islander), `white`, `other`, `declined` (Declined to say).
- Ethnicity (`ethnicity`, text): Ethnicity. One of: `blank` (Not given), `hispanic` (Hispanic or Latino), `not_hispanic` (Not Hispanic or Latino), `declined` (Declined to say).
- Emergency contact (`emergency_contact_name`, text): Emergency contact's name.
- Emergency contact phone (`emergency_contact_phone`, text): Emergency contact's phone number.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "address": "example",
    "cell_phone": "example",
    "chart_id": "example",
    "city": "example",
    "created_at": "example",
    "date_of_birth": "example",
    "date_of_first_appointment": "example",
    "date_of_last_appointment": "example",
    "doctor": 1,
    "email": "example",
    "emergency_contact_name": "example",
    "emergency_contact_phone": "example",
    "ethnicity": "example",
    "first_name": "example",
    "gender": "example",
    "home_phone": "example",
    "id": 1,
    "last_name": "example",
    "middle_name": "example",
    "nick_name": "example",
    "office_phone": "example",
    "offices": [
      1
    ],
    "patient_status": "example",
    "preferred_language": "example",
    "race": "example",
    "state": "example",
    "updated_at": "example",
    "zip_code": "example"
  }
}
```

### Update task

Change a task's title, status, priority, assignee or due date, or archive it.

**Inputs**

- Task ID (`task_id`, number, required): The task's ID. At least 1.
- Title (`title`, text): A new title.
- Status (`status`, number): The task's status. At least 1.
- Category (`category`, number): The task's category. At least 1.
- Priority (`priority`, text): How urgent it is. One of: `10` (Low), `20` (Medium), `30` (High), `40` (Urgent).
- Assign to (`assignee_user`, text): The user to assign it to.
- Due (`due`, date and time): When it's due.
- Archived (`archived`, true/false): Archive the task.

**Outputs**

- `data` (object): The response from DrChrono.

**Example output**

```json
{
  "data": {
    "archived": true,
    "assigned_by": "example",
    "assignee_group": 1,
    "assignee_user": "example",
    "associated_items": [
      {
        "type": "example",
        "value": 1
      }
    ],
    "category": 1,
    "created_at": "example",
    "created_by": "example",
    "due_date": {
      "time": "example"
    },
    "id": 1,
    "notes": [
      {}
    ],
    "priority": "example",
    "status": 1,
    "title": "example",
    "updated_at": "example"
  }
}
```
