# Canvas Medical

> Search and update patients, book and change appointments, manage staff tasks, record vital signs, message patients and read their clinical records in your Canvas Medical EHR.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/canvas-medical

## Actions

### Create appointment

Book an appointment for a patient with a practitioner at a location.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Practitioner (`practitioner_id`, text, required): Who the appointment is with.
- Location (`location_id`, text, required): The practice location.
- Starts at (`start`, date and time, required): When the appointment starts.
- Length (minutes) (`duration_minutes`, number): How long it lasts, in minutes. 30 when left empty. From 1 to 1440.
- Reason for visit (`reason`, text): The reason for the visit, shown on the appointment's note.
- Appointment type code (`appointment_type_code`, text): The SNOMED code of a schedulable appointment type set up in Canvas, such as `308335008` for an office visit. Leave empty for the default type.
- Status (`status`, text): The appointment's status. Booked when left empty. One of: `booked` (Booked (confirmed)), `proposed` (Proposed (unconfirmed)), `pending` (Pending (attempted)). Default: `booked`.
- Meeting link (`meeting_link`, text): For a telehealth visit, the video meeting's address. Leave empty to use the practitioner's own meeting room.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "appointment_type": "example",
    "appointment_type_code": "example",
    "duration_minutes": 1,
    "end": "example",
    "id": "example",
    "location_id": "example",
    "meeting_link": "example",
    "note_id": "example",
    "patient_id": "example",
    "practitioner_id": "example",
    "reason": "example",
    "resource": {},
    "start": "example",
    "status": "example"
  }
}
```

### Create patient

Add a new patient to Canvas.

**Inputs**

- First name (`first_name`, text, required): First name.
- Last name (`last_name`, text, required): Last name.
- Date of birth (`birth_date`, date, required): Date of birth.
- Sex at birth (`sex_at_birth`, text, required): Sex assigned at birth, which Canvas requires. One of: `F` (Female), `M` (Male), `OTH` (Other), `UNK` (Unknown).
- Gender (`gender`, text): Gender identity. When left empty on a new patient, it follows sex at birth. One of: `female`, `male`, `other`, `unknown`.
- Middle name (`middle_name`, text): Middle name.
- Preferred name (`preferred_name`, text): The name the patient goes by, shown in brackets after their name.
- Email (`email`, text): Email address.
- Mobile phone (`phone`, text): Mobile phone number, 10 digits, such as `5554320555`.
- Address line 1 (`address_line1`, text): Street address.
- Address line 2 (`address_line2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): Two-letter state code, such as `CA`.
- ZIP code (`postal_code`, text): Five-digit ZIP code.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "active": true,
    "address_line1": "example",
    "address_line2": "example",
    "birth_date": "example",
    "chart_url": "example",
    "city": "example",
    "email": "example",
    "first_name": "example",
    "gender": "example",
    "id": "example",
    "last_name": "example",
    "middle_name": "example",
    "mrn": "example",
    "phone": "example",
    "postal_code": "example",
    "preferred_name": "example",
    "resource": {},
    "sex_at_birth": "example",
    "state": "example"
  }
}
```

### Create task

Create a task for your staff, optionally about a patient, assigned to someone and due by a date.

**Inputs**

- Task (`description`, text, required): What needs doing.
- Requested by (`requester_id`, text, required): Who the task is from.
- Patient (`patient_id`, text): The patient the task is about. It then shows on their chart.
- Assignee (`owner_id`, text): Who the task is assigned to.
- Priority (`priority`, text): How urgent it is. One of: `routine`, `urgent`, `stat`.
- Due (`due`, date and time): When it is due.
- Labels (`labels`, list): Labels for the task. A label Canvas doesn't have yet is created.
- Comment (`comment`, text): A first comment on the task, from the person it is from.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "author_id": "example",
        "text": "example",
        "time": "example"
      }
    ],
    "created_at": "example",
    "description": "example",
    "due": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "link": "example",
    "owner_id": "example",
    "patient_id": "example",
    "priority": "example",
    "requester_id": "example",
    "resource": {},
    "status": "example",
    "team": "example",
    "updated_at": "example"
  }
}
```

### Find available times

List the open appointment times on a practitioner's schedule at a location.

**Inputs**

- Schedule (`schedule_id`, text, required): The practitioner and location to look in.
- From (`start_date`, date): From this date. Today when left empty.
- To (`end_date`, date): Up to this date. A week after the start when left empty.
- Length (minutes) (`duration_minutes`, number): The length of appointment to fit, in minutes. 20 when left empty. From 1 to 1440.
- Appointment type code (`appointment_type`, text): Only times allowed for this appointment type, by its SNOMED code.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "slots": [
      {
        "end": "example",
        "schedule_id": "example",
        "start": "example",
        "status": "example"
      }
    ],
    "total": 1
  }
}
```

### Get appointment

Get an appointment: its patient, practitioner, location, time and status.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID, from a Search appointments step.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "appointment_type": "example",
    "appointment_type_code": "example",
    "duration_minutes": 1,
    "end": "example",
    "id": "example",
    "location_id": "example",
    "meeting_link": "example",
    "note_id": "example",
    "patient_id": "example",
    "practitioner_id": "example",
    "reason": "example",
    "resource": {},
    "start": "example",
    "status": "example"
  }
}
```

### Get patient

Get a patient's demographics, contact details and MRN.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "active": true,
    "address_line1": "example",
    "address_line2": "example",
    "birth_date": "example",
    "chart_url": "example",
    "city": "example",
    "email": "example",
    "first_name": "example",
    "gender": "example",
    "id": "example",
    "last_name": "example",
    "middle_name": "example",
    "mrn": "example",
    "phone": "example",
    "postal_code": "example",
    "preferred_name": "example",
    "resource": {},
    "sex_at_birth": "example",
    "state": "example"
  }
}
```

### Get task

Get a task with its assignee, due date, labels and comments.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from a Search tasks step.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "author_id": "example",
        "text": "example",
        "time": "example"
      }
    ],
    "created_at": "example",
    "description": "example",
    "due": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "link": "example",
    "owner_id": "example",
    "patient_id": "example",
    "priority": "example",
    "requester_id": "example",
    "resource": {},
    "status": "example",
    "team": "example",
    "updated_at": "example"
  }
}
```

### List locations

List your practice locations.

**Inputs**

- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "locations": [
      {
        "address": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "resource": {},
        "status": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### List schedules

List the schedules open times can be found in: one for each practitioner at each location.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "schedules": [
      {
        "id": "example",
        "name": "example",
        "practitioner_id": "example"
      }
    ],
    "total": 1
  }
}
```

### Record vital sign

Record a vital sign for a patient, such as weight, blood pressure or temperature.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Vital sign (`vital`, text, required): What was measured. One of: `weight`, `height`, `pulse` (Pulse rate), `temperature` (Body temperature), `oxygen_saturation` (Oxygen saturation), `respiration_rate` (Respiration rate), `waist` (Waist circumference), `blood_pressure` (Blood pressure), `pulse_rhythm` (Pulse rhythm), `note` (Vitals note).
- Value (`value`, text, required): The reading: a number, or for blood pressure systolic/diastolic such as `120/80`. Pulse rhythm is `Regular`, `Irregularly Irregular` or `Regularly Irregular`.
- Unit (`unit`, text): The unit of a weight, height or waist reading. Canvas's own unit when left empty: oz for weight, in for height, cm for waist. One of: `lb`, `kg`, `oz`, `in`, `cm`.
- Measured at (`measured_at`, date and time): When it was measured. Now when left empty.
- Measured by (`performer_id`, text): Who took the measurement.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "category": "example",
    "code": "example",
    "effective_at": "example",
    "id": "example",
    "name": "example",
    "patient_id": "example",
    "resource": {},
    "status": "example",
    "unit": "example",
    "value": "example"
  }
}
```

### Search allergies

List a patient's allergies and intolerances.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "allergies": [
      {
        "clinical_status": "example",
        "code": "example",
        "id": "example",
        "name": "example",
        "onset": "example",
        "patient_id": "example",
        "reaction": "example",
        "resource": {},
        "severity": "example",
        "type": "example",
        "verification_status": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search appointments

Find appointments by patient, practitioner, location, status or date, earliest first.

**Inputs**

- Patient (`patient_id`, text): Only this patient's appointments.
- Practitioner (`practitioner_id`, text): Only this practitioner's appointments.
- Location (`location_id`, text): Only appointments here.
- Status (`status`, text): Only appointments with this status. One of: `proposed` (Proposed (unconfirmed)), `pending` (Pending (attempted)), `booked` (Booked (confirmed)), `arrived`, `checked-in` (Checked in (roomed)), `fulfilled` (Fulfilled (exited)), `noshow` (No-show), `cancelled`.
- From (`start_date`, date): Only appointments on or after this date.
- To (`end_date`, date): Only appointments on or before this date.
- Order (`sort`, text): The order to list them in. One of: `date`, `-date`. Default: `date`.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "appointments": [
      {
        "appointment_type": "example",
        "appointment_type_code": "example",
        "duration_minutes": 1,
        "end": "example",
        "id": "example",
        "location_id": "example",
        "meeting_link": "example",
        "note_id": "example",
        "patient_id": "example",
        "practitioner_id": "example",
        "reason": "example",
        "resource": {},
        "start": "example",
        "status": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search conditions

List a patient's conditions: their problem list and health concerns.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Status (`clinical_status`, text): Only active or only resolved conditions. One of: `active`, `resolved`.
- Verification (`verification_status`, text): Only conditions with this verification status. One of: `confirmed`, `provisional`, `entered-in-error` (Entered in error).
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "conditions": [
      {
        "category": "example",
        "clinical_status": "example",
        "code": "example",
        "code_system": "example",
        "id": "example",
        "name": "example",
        "onset": "example",
        "patient_id": "example",
        "recorded_at": "example",
        "resolved": "example",
        "resource": {},
        "verification_status": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search encounters

Find visits by patient and date.

**Inputs**

- Patient (`patient_id`, text): Only this patient's encounters.
- From (`start_date`, date): Only encounters that started on or after this date.
- To (`end_date`, date): Only encounters that started on or before this date.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "encounters": [
      {
        "end": "example",
        "id": "example",
        "note_id": "example",
        "patient_id": "example",
        "practitioner_id": "example",
        "reason": "example",
        "resource": {},
        "start": "example",
        "status": "example",
        "type": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search insurance coverages

List patients' insurance coverages, by patient, status or member ID.

**Inputs**

- Patient (`patient_id`, text): Only this patient's coverages.
- Status (`status`, text): Only active or only cancelled coverages. One of: `active`, `cancelled`.
- Member ID (`member_id`, text): Only the coverage with this member ID.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "coverages": [
      {
        "end": "example",
        "id": "example",
        "member_id": "example",
        "order": 1,
        "patient_id": "example",
        "payer": "example",
        "plan": "example",
        "relationship": "example",
        "resource": {},
        "start": "example",
        "status": "example",
        "subscriber_id": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search medications

List a patient's medications.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "medications": [
      {
        "asserted_at": "example",
        "dosage": "example",
        "end": "example",
        "id": "example",
        "name": "example",
        "patient_id": "example",
        "resource": {},
        "rxnorm_code": "example",
        "start": "example",
        "status": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search observations

List a patient's observations, such as vital signs and lab results.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Category (`category`, text): Only observations of this kind. One of: `vital-signs` (Vital signs), `laboratory`, `social-history` (Social history), `imaging`, `procedure`, `survey`, `exam`, `therapy`, `activity`, `sdoh` (Social needs (SDOH)), and 3 more.
- LOINC code (`code`, text): Only observations with this LOINC code, such as `29463-7` for weight.
- From (`start_date`, date): Only observations on or after this date.
- To (`end_date`, date): Only observations on or before this date.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "next_offset": 1,
    "observations": [
      {
        "category": "example",
        "code": "example",
        "effective_at": "example",
        "id": "example",
        "name": "example",
        "patient_id": "example",
        "resource": {},
        "status": "example",
        "unit": "example",
        "value": "example"
      }
    ],
    "total": 1
  }
}
```

### Search patient messages

List messages between patients and practitioners.

**Inputs**

- Patient (`patient_id`, text): Only messages on this patient's chart.
- Practitioner (`practitioner_id`, text): Only this practitioner's messages.
- Direction (`direction`, text): Whether the practitioner sent or received them. Sent when left empty. One of: `sent_by` (Sent by this practitioner), `received_by` (Received by this practitioner). Default: `sent_by`.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "messages": [
      {
        "id": "example",
        "patient_id": "example",
        "received": "example",
        "recipient": "example",
        "resource": {},
        "sender": "example",
        "sent": "example",
        "status": "example",
        "text": "example"
      }
    ],
    "next_offset": 1,
    "total": 1
  }
}
```

### Search patients

Find patients by name, date of birth, email, phone or MRN.

**Inputs**

- Name (`name`, text): Part of a first or last name.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Date of birth (`birth_date`, date): Date of birth.
- Email (`email`, text): Email address.
- Phone (`phone`, text): Phone number, 10 digits.
- MRN or other ID (`identifier`, text): The Canvas MRN, or an ID saved from another system.
- Gender (`gender`, text): Only patients of this gender. One of: `female`, `male`, `other`, `unknown`.
- Active (`active`, text): Only active or only inactive patients. Leave empty for both. One of: `true` (Active only), `false` (Inactive only).
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "next_offset": 1,
    "patients": [
      {
        "active": true,
        "address_line1": "example",
        "address_line2": "example",
        "birth_date": "example",
        "chart_url": "example",
        "city": "example",
        "email": "example",
        "first_name": "example",
        "gender": "example",
        "id": "example",
        "last_name": "example",
        "middle_name": "example",
        "mrn": "example",
        "phone": "example",
        "postal_code": "example",
        "preferred_name": "example",
        "resource": {},
        "sex_at_birth": "example",
        "state": "example"
      }
    ],
    "total": 1
  }
}
```

### Search practitioners

Find staff by name, email or NPI.

**Inputs**

- Name (`name`, text): Part of the practitioner's name.
- Email (`email`, text): Email address.
- NPI (`npi`, text): NPI number.
- Active (`active`, text): Active or inactive staff. Active when left empty. One of: `true` (Active only), `false` (Inactive only).
- Include staff who can't be booked (`include_non_schedulable`, true/false): Also list staff who can't be booked, such as office staff.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "next_offset": 1,
    "practitioners": [
      {
        "active": true,
        "email": "example",
        "first_name": "example",
        "id": "example",
        "last_name": "example",
        "name": "example",
        "npi": "example",
        "phone": "example",
        "primary_location_id": "example",
        "resource": {},
        "username": "example"
      }
    ],
    "total": 1
  }
}
```

### Search tasks

Find tasks by patient, assignee, status, priority, label or due date, newest first.

**Inputs**

- Patient (`patient_id`, text): Only this patient's tasks.
- Assignee (`owner_id`, text): Only tasks assigned to this person.
- Requested by (`requester_id`, text): Only tasks this person created.
- Status (`status`, text): Only tasks with this status. One of: `requested` (Open), `completed`, `cancelled`.
- Priority (`priority`, text): Only tasks with this priority. One of: `routine`, `urgent`, `stat`.
- Label (`label`, text): Only tasks with this label.
- Description (`description`, text): Only tasks whose description matches this.
- Due from (`due_from`, date): Only tasks due on or after this date.
- Due to (`due_to`, date): Only tasks due on or before this date.
- Changed since (`modified_since`, date and time): Only tasks changed at or after this time.
- Records per page (`limit`, number): How many records to return, up to 100. Canvas returns 10 when left empty. From 1 to 100.
- Skip (`offset`, number): How many records to skip, for the next page: the previous result's next_offset. At least 0.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "next_offset": 1,
    "tasks": [
      {
        "comments": [
          {
            "author_id": "example",
            "text": "example",
            "time": "example"
          }
        ],
        "created_at": "example",
        "description": "example",
        "due": "example",
        "id": "example",
        "labels": [
          "example"
        ],
        "link": "example",
        "owner_id": "example",
        "patient_id": "example",
        "priority": "example",
        "requester_id": "example",
        "resource": {},
        "status": "example",
        "team": "example",
        "updated_at": "example"
      }
    ],
    "total": 1
  }
}
```

### Send patient message

Send a patient a message from a practitioner, shown in their patient app and on their timeline, or record a message from the patient.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- Practitioner (`practitioner_id`, text, required): The practitioner on the other side of the message.
- Message (`message`, text, required): The message.
- Direction (`direction`, text): Who the message is from. From the practitioner when left empty. One of: `to_patient` (From the practitioner to the patient), `from_patient` (From the patient to the practitioner). Default: `to_patient`.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "id": "example",
    "patient_id": "example",
    "received": "example",
    "recipient": "example",
    "resource": {},
    "sender": "example",
    "sent": "example",
    "status": "example",
    "text": "example"
  }
}
```

### Update appointment

Reschedule, cancel or change the status of an appointment, such as marking it arrived or a no-show. Fields left empty stay as they are.

**Inputs**

- Appointment ID (`appointment_id`, text, required): The appointment's ID, from a Search appointments step.
- Status (`status`, text): The new status. One of: `proposed` (Proposed (unconfirmed)), `pending` (Pending (attempted)), `booked` (Booked (confirmed)), `arrived`, `checked-in` (Checked in (roomed)), `fulfilled` (Fulfilled (exited)), `noshow` (No-show), `cancelled`.
- Starts at (`start`, date and time): The new start time.
- Length (minutes) (`duration_minutes`, number): The new length, in minutes. From 1 to 1440.
- Practitioner (`practitioner_id`, text): The new practitioner.
- Location (`location_id`, text): The new location.
- Reason for visit (`reason`, text): The new reason for the visit.
- Meeting link (`meeting_link`, text): The new video meeting address.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "appointment_type": "example",
    "appointment_type_code": "example",
    "duration_minutes": 1,
    "end": "example",
    "id": "example",
    "location_id": "example",
    "meeting_link": "example",
    "note_id": "example",
    "patient_id": "example",
    "practitioner_id": "example",
    "reason": "example",
    "resource": {},
    "start": "example",
    "status": "example"
  }
}
```

### Update patient

Change a patient's name, date of birth, contact details or address. Fields left empty stay as they are.

**Inputs**

- Patient (`patient_id`, text, required): The patient. Pick one, or use the ID from a Search patients step.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Date of birth (`birth_date`, date): Date of birth.
- Sex at birth (`sex_at_birth`, text): Sex assigned at birth, which Canvas requires. One of: `F` (Female), `M` (Male), `OTH` (Other), `UNK` (Unknown).
- Gender (`gender`, text): Gender identity. When left empty on a new patient, it follows sex at birth. One of: `female`, `male`, `other`, `unknown`.
- Middle name (`middle_name`, text): Middle name.
- Preferred name (`preferred_name`, text): The name the patient goes by, shown in brackets after their name.
- Email (`email`, text): Email address.
- Mobile phone (`phone`, text): Mobile phone number, 10 digits, such as `5554320555`.
- Address line 1 (`address_line1`, text): Street address.
- Address line 2 (`address_line2`, text): Apartment, suite or unit.
- City (`city`, text): City.
- State (`state`, text): Two-letter state code, such as `CA`.
- ZIP code (`postal_code`, text): Five-digit ZIP code.
- Active (`active`, text): Make the patient active, or inactive to hide them from the patient list. One of: `true` (Active only), `false` (Inactive only).

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "active": true,
    "address_line1": "example",
    "address_line2": "example",
    "birth_date": "example",
    "chart_url": "example",
    "city": "example",
    "email": "example",
    "first_name": "example",
    "gender": "example",
    "id": "example",
    "last_name": "example",
    "middle_name": "example",
    "mrn": "example",
    "phone": "example",
    "postal_code": "example",
    "preferred_name": "example",
    "resource": {},
    "sex_at_birth": "example",
    "state": "example"
  }
}
```

### Update task

Complete, cancel, reassign or reschedule a task, or add a comment. Fields left empty stay as they are.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, from a Search tasks step.
- Status (`status`, text): The new status. One of: `requested` (Open), `completed`, `cancelled`.
- Task (`description`, text): The new description.
- Assignee (`owner_id`, text): Who to assign it to.
- Priority (`priority`, text): The new priority. One of: `routine`, `urgent`, `stat`.
- Due (`due`, date and time): The new due date.
- Labels (`labels`, list): The task's labels, in place of the ones it has.
- Comment (`comment`, text): A comment to add.
- Comment from (`comment_author_id`, text): Who the comment is from. The person who requested the task when left empty.

**Outputs**

- `data` (object): The response from Canvas Medical.

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "author_id": "example",
        "text": "example",
        "time": "example"
      }
    ],
    "created_at": "example",
    "description": "example",
    "due": "example",
    "id": "example",
    "labels": [
      "example"
    ],
    "link": "example",
    "owner_id": "example",
    "patient_id": "example",
    "priority": "example",
    "requester_id": "example",
    "resource": {},
    "status": "example",
    "team": "example",
    "updated_at": "example"
  }
}
```
