# Open Dental

> Search and update patients, book, move, confirm and break appointments, find open slots, log calls and texts, record payments, read procedures, balances and the recall list, manage tasks, and follow new patients, appointments, payments and tasks in Open Dental.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/open-dental

## Actions

### Add appointment note

Add a line to the end of an appointment's note, keeping what's there.

**Inputs**

- Appointment number (`appointment_id`, number, required): The appointment's number in Open Dental (AptNum). At least 1.
- Note (`note`, text, required): The line to add.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "AppointmentTypeNum": 1,
    "AptDateTime": "example",
    "AptNum": 1,
    "AptStatus": "example",
    "ClinicNum": 1,
    "Confirmed": 1,
    "DateTStamp": "example",
    "DateTimeArrived": "example",
    "DateTimeDismissed": "example",
    "DateTimeSeated": "example",
    "IsHygiene": "example",
    "IsNewPatient": "example",
    "Note": "example",
    "Op": 1,
    "PatNum": 1,
    "Pattern": "example",
    "Priority": "example",
    "ProcDescript": "example",
    "ProvHyg": 1,
    "ProvNum": 1,
    "SecDateTEntry": "example",
    "confirmed": "example",
    "provAbbr": "example"
  }
}
```

### Add communication log entry

Record a call, text, email or letter in a patient's communication log.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.
- Note (`note`, text, required): What was said or sent.
- Mode (`mode`, text): How it happened. Leave empty for Phone. One of: `None`, `Email`, `Mail`, `Phone`, `In Person`, `Text`, `Email and Text`, `Phone and Text`.
- Sent or received (`direction`, text): Whether the office sent or received it. Leave empty for Sent. One of: `Sent`, `Received`, `Neither`.
- Type (`type`, number): The entry's type, from the office's own list. Leave empty for Misc. At least 1.
- Date (`date`, date): When it happened. Leave empty for now.
- Time (`time`, time): The time it happened, in the office's time.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "CommDateTime": "example",
    "CommType": "example",
    "CommlogNum": 1,
    "DateTEntry": "example",
    "DateTStamp": "example",
    "Mode_": "example",
    "Note": "example",
    "PatNum": 1,
    "SentOrReceived": "example",
    "UserNum": 1,
    "commType": "example"
  }
}
```

### Break appointment

Mark a scheduled appointment broken (cancelled or missed), and by default move it to the Unscheduled list so it can be rebooked.

**Inputs**

- Appointment number (`appointment_id`, number, required): The appointment's number in Open Dental (AptNum). At least 1.
- Move to Unscheduled list (`send_to_unscheduled_list`, true/false): Move it to the Unscheduled list. Leave empty to move it; turn off only to leave a missed or cancelled appointment in place on the schedule. Default: `true`.
- Charge as (`break_type`, text): Add the office's missed (D9986) or cancelled (D9987) procedure, usually with a fee. Leave empty to add none. One of: `Missed`, `Cancelled`.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "AppointmentTypeNum": 1,
    "AptDateTime": "example",
    "AptNum": 1,
    "AptStatus": "example",
    "ClinicNum": 1,
    "Confirmed": 1,
    "DateTStamp": "example",
    "DateTimeArrived": "example",
    "DateTimeDismissed": "example",
    "DateTimeSeated": "example",
    "IsHygiene": "example",
    "IsNewPatient": "example",
    "Note": "example",
    "Op": 1,
    "PatNum": 1,
    "Pattern": "example",
    "Priority": "example",
    "ProcDescript": "example",
    "ProvHyg": 1,
    "ProvNum": 1,
    "SecDateTEntry": "example",
    "confirmed": "example",
    "provAbbr": "example"
  }
}
```

### Create appointment

Book an appointment for a patient in an operatory at a date and time. Use Find open slots first to pick a free time.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.
- Date (`date`, date, required): The day of the appointment.
- Start time (`start_time`, time, required): When it starts, in the office's time.
- Operatory (`operatory_id`, number, required): The operatory (chair) it's in. At least 1.
- Length (minutes) (`length_minutes`, number): How long it lasts, in 5-minute steps. Leave empty for the appointment type's length, or 20 minutes. From 5 to 540.
- Status (`status`, text): The appointment's status. Leave empty for Scheduled. One of: `Scheduled`, `Complete`, `UnschedList` (Unscheduled list).
- Provider (`dental_provider_id`, number): The dentist. Leave empty for the patient's primary provider. At least 1.
- Hygienist (`hygienist_id`, number): The hygienist, if any. At least 1.
- Appointment type (`appointment_type_id`, number): The appointment type, which adds its procedures, length and color. At least 0.
- Confirmation status (`confirmation_status`, number): The confirmation status, from the office's own list. At least 1.
- Note (`note`, text): The appointment note.
- Priority (`priority`, text): ASAP puts it on the ASAP list. One of: `Normal`, `ASAP`.
- New patient (`is_new_patient`, true/false): Whether this is the patient's first visit.
- Hygiene appointment (`is_hygiene`, true/false): Whether it's a hygiene appointment.
- Clinic (`clinic_id`, number): The clinic. Leave empty for the operatory's clinic, or if the office doesn't use clinics. At least 0.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "AppointmentTypeNum": 1,
    "AptDateTime": "example",
    "AptNum": 1,
    "AptStatus": "example",
    "ClinicNum": 1,
    "Confirmed": 1,
    "DateTStamp": "example",
    "DateTimeArrived": "example",
    "DateTimeDismissed": "example",
    "DateTimeSeated": "example",
    "IsHygiene": "example",
    "IsNewPatient": "example",
    "Note": "example",
    "Op": 1,
    "PatNum": 1,
    "Pattern": "example",
    "Priority": "example",
    "ProcDescript": "example",
    "ProvHyg": 1,
    "ProvNum": 1,
    "SecDateTEntry": "example",
    "confirmed": "example",
    "provAbbr": "example"
  }
}
```

### Create patient

Add a patient. Open Dental refuses one that matches an existing patient's name, birthdate and email or phone.

**Inputs**

- Last name (`last_name`, text, required): The patient's last name.
- First name (`first_name`, text, required): The patient's first name.
- Middle initial (`middle_initial`, text): Middle initial or name.
- Preferred name (`preferred_name`, text): The name they go by.
- Status (`status`, text): The patient's status. New patients are Patient unless you choose otherwise. One of: `Patient`, `NonPatient` (Non-patient), `Inactive`, `Archived`, `Deceased`, `Prospective`.
- Gender (`gender`, text): The patient's gender. One of: `Male`, `Female`, `Unknown`.
- Marital status (`marital_status`, text): Marital status, or Child. One of: `Single`, `Married`, `Child`, `Widowed`, `Divorced`.
- Birthdate (`birthdate`, date): Date of birth.
- Email (`email`, text): Email address.
- Mobile phone (`mobile_phone`, text): Mobile phone number, with any punctuation.
- Home phone (`home_phone`, text): Home phone number, with any punctuation.
- Work phone (`work_phone`, text): Work phone number, with any punctuation.
- Address (`address`, text): Street address.
- Address line 2 (`address2`, text): Second address line.
- City (`city`, text): City.
- State (`state`, text): Two capital letters in the USA, such as CA; the province in Canada.
- ZIP code (`zip`, text): 12345, 12345-1234 or 123456789 in the USA; A0A 0A0 in Canada.
- Primary provider (`primary_provider_id`, number): The patient's primary provider. At least 1.
- Clinic (`clinic_id`, number): The patient's clinic. Leave empty if the office doesn't use clinics. At least 0.
- Billing type (`billing_type`, text): The patient's billing type.
- Preferred contact method (`contact_method`, text): How the patient prefers to be contacted. One of: `None`, `DoNotCall` (Do not call), `HmPhone` (Home phone), `WkPhone` (Work phone), `WirelessPh` (Mobile phone), `Email`, `SeeNotes` (See notes), `Mail`, `TextMessage` (Text message).
- Preferred confirmation method (`confirm_method`, text): How the patient prefers to be asked to confirm appointments. One of: `None`, `DoNotCall` (Do not call), `HmPhone` (Home phone), `WkPhone` (Work phone), `WirelessPh` (Mobile phone), `Email`, `SeeNotes` (See notes), `Mail`, `TextMessage` (Text message).
- Preferred recall method (`recall_method`, text): How the patient prefers to be reminded about recalls. One of: `None`, `DoNotCall` (Do not call), `HmPhone` (Home phone), `WkPhone` (Work phone), `WirelessPh` (Mobile phone), `Email`, `SeeNotes` (See notes), `Mail`, `TextMessage` (Text message).
- OK to text (`texting_ok`, text): Whether the patient agreed to text messages. One of: `Unknown`, `Yes`, `No`.
- Language (`language`, text): The patient's language as a three-letter code, such as eng or spa.
- Chart number (`chart_number`, text): The office's chart number, up to 15 characters.
- Guarantor patient number (`guarantor_id`, number): The PatNum of the head of household, to add the patient to that family. Leave empty to make them their own guarantor. At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "Address": "example",
    "Address2": "example",
    "BalTotal": 1,
    "BillingType": "example",
    "Birthdate": "example",
    "ChartNumber": "example",
    "City": "example",
    "ClinicNum": 1,
    "DateFirstVisit": "example",
    "DateTStamp": "example",
    "Email": "example",
    "EstBalance": 1,
    "FName": "example",
    "Gender": "example",
    "Guarantor": 1,
    "HmPhone": "example",
    "LName": "example",
    "Language": "example",
    "MiddleI": "example",
    "PatNum": 1,
    "PatStatus": "example",
    "Position": "example",
    "PreferConfirmMethod": "example",
    "PreferContactMethod": "example",
    "PreferRecallMethod": "example",
    "Preferred": "example",
    "PriProv": 1,
    "SecDateEntry": "example",
    "State": "example",
    "TxtMsgOk": "example",
    "WirelessPhone": "example",
    "WkPhone": "example",
    "Zip": "example",
    "clinicAbbr": "example",
    "priProvAbbr": "example"
  }
}
```

### Create payment

Record a patient payment. Open Dental applies it to the oldest charges first, or to the patient's payment plan, following the office's allocation settings.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.
- Amount (`amount`, number, required): The amount paid. At least 0.01.
- Payment type (`payment_type`, number): The payment type, from the office's own list. Leave empty for the type the office set for payments from apps. At least 1.
- Payment date (`payment_date`, date): The day it was paid. Leave empty for today.
- Check number (`check_number`, text): The check number.
- Bank branch (`bank_branch`, text): The bank and branch of a check.
- Note (`note`, text): A note on the payment.
- Clinic (`clinic_id`, number): The clinic. Leave empty for the patient's clinic. At least 0.
- Apply to this patient only (`patient_only`, true/false): Apply it to this patient's charges only, rather than across the family.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "BankBranch": "example",
    "CheckNum": "example",
    "ClinicNum": "example",
    "DateEntry": "example",
    "PatNum": 1,
    "PayAmt": "example",
    "PayDate": "example",
    "PayNote": "example",
    "PayNum": 1,
    "PayType": 1,
    "PaymentSource": "example",
    "ProcessStatus": "example",
    "payType": "example"
  }
}
```

### Create task

Add a task to a task list, optionally attached to a patient or an appointment.

**Inputs**

- Task list (`task_list_id`, number, required): The task list it goes in. At least 1.
- From user (`from_user_id`, number, required): The Open Dental user the task is from. At least 1.
- Description (`description`, text, required): What needs doing.
- Short description (`short_description`, text): A short description, shown in the task list. Up to 256 characters.
- Patient number (`patient_id`, number): Attach the task to this patient (their PatNum). At least 1.
- Appointment number (`appointment_id`, number): Attach the task to this appointment (its AptNum), instead of a patient. At least 1.
- Priority (`priority`, number): The task's priority, from the office's own list. At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "DateTimeEntry": "example",
    "DateTimeFinished": "example",
    "DateTimeOriginal": "example",
    "Descript": "example",
    "DescriptOverride": "example",
    "KeyNum": 1,
    "ObjectType": "example",
    "PriorityDefNum": 1,
    "SecDateTEdit": "example",
    "TaskListNum": 1,
    "TaskNum": 1,
    "TaskStatus": "example",
    "UserNum": 1
  }
}
```

### Find open slots

Find open times in the schedule for a provider and operatory, as the Appointments module's search does. Leave the dates empty for the next 14 days.

**Inputs**

- From (`date_start`, date): The first day to search, today or later.
- To (`date_end`, date): The last day to search.
- Length (minutes) (`length_minutes`, number): Only slots at least this long. At least 5.
- Provider (`dental_provider_id`, number): The provider. Leave empty for the practice's default provider. At least 1.
- Operatory (`operatory_id`, number): The operatory the provider works in. At least 1.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "DateTimeEnd": "example",
      "DateTimeStart": "example",
      "OpNum": 1,
      "ProvNum": 1
    }
  ]
}
```

### Get account aging

Get the aged balances (0-30, 31-60, 61-90 and over 90 days), insurance estimate and balance due for a patient's family.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "BalOver90": 1,
    "Bal_0_30": 1,
    "Bal_31_60": 1,
    "Bal_61_90": 1,
    "EstBal": 1,
    "InsEst": 1,
    "PatEstBal": 1,
    "Total": 1,
    "Unearned": 1
  }
}
```

### Get appointment

Get an appointment by its number: patient, time, operatory, providers, status and confirmation.

**Inputs**

- Appointment number (`appointment_id`, number, required): The appointment's number in Open Dental (AptNum). At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "AppointmentTypeNum": 1,
    "AptDateTime": "example",
    "AptNum": 1,
    "AptStatus": "example",
    "ClinicNum": 1,
    "Confirmed": 1,
    "DateTStamp": "example",
    "DateTimeArrived": "example",
    "DateTimeDismissed": "example",
    "DateTimeSeated": "example",
    "IsHygiene": "example",
    "IsNewPatient": "example",
    "Note": "example",
    "Op": 1,
    "PatNum": 1,
    "Pattern": "example",
    "Priority": "example",
    "ProcDescript": "example",
    "ProvHyg": 1,
    "ProvNum": 1,
    "SecDateTEntry": "example",
    "confirmed": "example",
    "provAbbr": "example"
  }
}
```

### Get patient

Get a patient's details, contact preferences and balances by their patient number.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "Address": "example",
    "Address2": "example",
    "BalTotal": 1,
    "BillingType": "example",
    "Birthdate": "example",
    "ChartNumber": "example",
    "City": "example",
    "ClinicNum": 1,
    "DateFirstVisit": "example",
    "DateTStamp": "example",
    "Email": "example",
    "EstBalance": 1,
    "FName": "example",
    "Gender": "example",
    "Guarantor": 1,
    "HmPhone": "example",
    "LName": "example",
    "Language": "example",
    "MiddleI": "example",
    "PatNum": 1,
    "PatStatus": "example",
    "Position": "example",
    "PreferConfirmMethod": "example",
    "PreferContactMethod": "example",
    "PreferRecallMethod": "example",
    "Preferred": "example",
    "PriProv": 1,
    "SecDateEntry": "example",
    "State": "example",
    "TxtMsgOk": "example",
    "WirelessPhone": "example",
    "WkPhone": "example",
    "Zip": "example",
    "clinicAbbr": "example",
    "priProvAbbr": "example"
  }
}
```

### Get patient notes

Get a patient's medical, service and treatment notes and their emergency contact.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "FamFinancial": "example",
    "ICEName": "example",
    "ICEPhone": "example",
    "Medical": "example",
    "MedicalComp": "example",
    "PatNum": 1,
    "SecDateTEdit": "example",
    "SecDateTEntry": "example",
    "Service": "example",
    "Treatment": "example"
  }
}
```

### Get recall list

Get the patients due for a recall (such as a cleaning), as the Recall list in the Appointments module shows them.

**Inputs**

- Due from (`date_start`, date): Due on or after this day. Leave empty for the office's default.
- Due to (`date_end`, date): Due on or before this day. Leave empty for the office's default.
- Provider (`dental_provider_id`, number): Only patients of this provider. At least 1.
- Clinic (`clinic_id`, number): Only records for this clinic. Leave empty for every clinic, or if the office doesn't use clinics. At least 0.
- Recall type (`recall_type`, text): The recall type, such as Prophy or Perio. Leave empty for every type the list shows.
- Include reminded (`include_reminded`, true/false): Include patients who were already sent a reminder.
- Records to skip (`offset`, number): How many records to skip, for reading past the first 100. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "Age": "example",
      "ClinicNum": 1,
      "Contact": "example",
      "DueDate": "example",
      "Interval": "example",
      "LastRemind": "example",
      "Note": "example",
      "NumRemind": "example",
      "PatNum": 1,
      "Patient": "example",
      "Status": "example",
      "Type": "example"
    }
  ]
}
```

### List appointments

List appointments, filtered by patient, status, operatory, dates, clinic or type, or those added or changed since a day.

**Inputs**

- Patient number (`patient_id`, number): Only records for this patient (their PatNum). At least 1.
- Status (`status`, text): Only appointments with this status. One of: `Scheduled`, `Complete`, `UnschedList` (Unscheduled list), `ASAP`, `Broken`, `Planned`, `PtNote` (Patient note), `PtNoteCompleted` (Patient note (completed)).
- Operatory (`operatory_id`, number): Only appointments in this operatory. At least 1.
- From (`date_start`, date): Only appointments on or after this day.
- To (`date_end`, date): Only appointments on or before this day.
- Appointment type (`appointment_type_id`, number): Only appointments of this type. At least 1.
- Clinic (`clinic_id`, number): Only records for this clinic. Leave empty for every clinic, or if the office doesn't use clinics. At least 0.
- Changed since (`changed_since`, date): Only appointments added or changed on or after this day.
- Records to skip (`offset`, number): How many records to skip, for reading past the first 100. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "AppointmentTypeNum": 1,
      "AptDateTime": "example",
      "AptNum": 1,
      "AptStatus": "example",
      "ClinicNum": 1,
      "Confirmed": 1,
      "DateTStamp": "example",
      "DateTimeArrived": "example",
      "DateTimeDismissed": "example",
      "DateTimeSeated": "example",
      "IsHygiene": "example",
      "IsNewPatient": "example",
      "Note": "example",
      "Op": 1,
      "PatNum": 1,
      "Pattern": "example",
      "Priority": "example",
      "ProcDescript": "example",
      "ProvHyg": 1,
      "ProvNum": 1,
      "SecDateTEntry": "example",
      "confirmed": "example",
      "provAbbr": "example"
    }
  ]
}
```

### List communication log

List a patient's communication log entries (calls, texts, emails, letters), or every entry added or changed since a day.

**Inputs**

- Patient number (`patient_id`, number): Only records for this patient (their PatNum). At least 1.
- Changed since (`changed_since`, date): Only entries added or changed on or after this day.
- Records to skip (`offset`, number): How many records to skip, for reading past the first 100. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "CommDateTime": "example",
      "CommType": "example",
      "CommlogNum": 1,
      "DateTEntry": "example",
      "DateTStamp": "example",
      "Mode_": "example",
      "Note": "example",
      "PatNum": 1,
      "SentOrReceived": "example",
      "UserNum": 1,
      "commType": "example"
    }
  ]
}
```

### List payments

List patient payments, filtered by patient, payment type or the day they were entered.

**Inputs**

- Patient number (`patient_id`, number): Only records for this patient (their PatNum). At least 1.
- Payment type (`payment_type`, number): Only payments of this type. At least 1.
- Entered since (`entered_since`, date): Only payments entered on or after this day.
- Records to skip (`offset`, number): How many records to skip, for reading past the first 100. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "BankBranch": "example",
      "CheckNum": "example",
      "ClinicNum": "example",
      "DateEntry": "example",
      "PatNum": 1,
      "PayAmt": "example",
      "PayDate": "example",
      "PayNote": "example",
      "PayNum": 1,
      "PayType": 1,
      "PaymentSource": "example",
      "ProcessStatus": "example",
      "payType": "example"
    }
  ]
}
```

### List procedures

List procedures (treatment planned, completed, existing or conditions), filtered by patient, appointment, day, status or clinic.

**Inputs**

- Patient number (`patient_id`, number): Only records for this patient (their PatNum). At least 1.
- Appointment number (`appointment_id`, number): Only procedures on this appointment (its AptNum). At least 1.
- Date (`date`, date): Only procedures on this day.
- Status (`status`, text): Only procedures with this status. One of: `TP` (Treatment planned), `C` (Complete), `EC` (Existing (current provider)), `EO` (Existing (other provider)), `R` (Referred out), `D` (Deleted), `Cn` (Condition), `TPi` (Treatment planned (inactive)).
- Clinic (`clinic_id`, number): Only records for this clinic. Leave empty for every clinic, or if the office doesn't use clinics. At least 0.
- Changed since (`changed_since`, date): Only procedures added or changed on or after this day.
- Records to skip (`offset`, number): How many records to skip, for reading past the first 100. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "AptNum": 1,
      "ClinicNum": 1,
      "CodeNum": 1,
      "DateEntryC": "example",
      "DateTStamp": "example",
      "PatNum": 1,
      "ProcDate": "example",
      "ProcFee": "example",
      "ProcNum": 1,
      "ProcStatus": "example",
      "ProvNum": 1,
      "Surf": "example",
      "ToothNum": "example",
      "descript": "example",
      "procCode": "example",
      "provAbbr": "example"
    }
  ]
}
```

### List providers

List the office's dentists, hygienists and other providers, optionally only those of a clinic or changed since a day.

**Inputs**

- Clinic (`clinic_id`, number): Only providers who work at this clinic. Leave empty for every provider. At least 0.
- Changed since (`changed_since`, date): Only providers added or changed on or after this day.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "Abbr": "example",
      "DateTStamp": "example",
      "FName": "example",
      "IsHidden": "example",
      "IsSecondary": "example",
      "LName": "example",
      "MI": "example",
      "NationalProvID": "example",
      "PreferredName": "example",
      "ProvNum": 1,
      "ProvStatus": "example",
      "Specialty": 1,
      "Suffix": "example"
    }
  ]
}
```

### List tasks

List the office's tasks, filtered by task list, status, patient or appointment. Leave Created since empty for the last 14 days.

**Inputs**

- Task list (`task_list_id`, number): Only tasks in this task list. At least 1.
- Status (`status`, text): Only tasks with this status. One of: `New`, `Viewed`, `Done`.
- Patient number (`patient_id`, number): Only tasks attached to this patient (their PatNum). At least 1.
- Appointment number (`appointment_id`, number): Only tasks attached to this appointment (its AptNum). At least 1.
- Created since (`created_since`, date): Only tasks created on or after this day.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "DateTimeEntry": "example",
      "DateTimeFinished": "example",
      "DateTimeOriginal": "example",
      "Descript": "example",
      "DescriptOverride": "example",
      "KeyNum": 1,
      "ObjectType": "example",
      "PriorityDefNum": 1,
      "SecDateTEdit": "example",
      "TaskListNum": 1,
      "TaskNum": 1,
      "TaskStatus": "example",
      "UserNum": 1
    }
  ]
}
```

### Search patients

Find patients by name, birthdate, phone, status, provider or clinic, or list those added or changed since a day. Names match in part, ignoring case.

**Inputs**

- Last name (`last_name`, text): All or part of the last name.
- First name (`first_name`, text): All or part of the first name.
- Birthdate (`birthdate`, date): Date of birth.
- Mobile phone (`mobile_phone`, text): Mobile phone number.
- Status (`status`, text): Only patients with this status. One of: `Patient`, `NonPatient` (Non-patient), `Inactive`, `Archived`, `Deceased`, `Prospective`.
- Primary provider (`primary_provider_id`, number): Only patients of this primary provider. At least 1.
- Clinic (`clinic_id`, number): Only records for this clinic. Leave empty for every clinic, or if the office doesn't use clinics. At least 0.
- Changed since (`changed_since`, date): Only patients added or changed on or after this day.
- Records to skip (`offset`, number): How many records to skip, for reading past the first 100. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Open Dental.

**Example output**

```json
{
  "data": [
    {
      "Address": "example",
      "Address2": "example",
      "BalTotal": 1,
      "BillingType": "example",
      "Birthdate": "example",
      "ChartNumber": "example",
      "City": "example",
      "ClinicNum": 1,
      "DateFirstVisit": "example",
      "DateTStamp": "example",
      "Email": "example",
      "EstBalance": 1,
      "FName": "example",
      "Gender": "example",
      "Guarantor": 1,
      "HmPhone": "example",
      "LName": "example",
      "Language": "example",
      "MiddleI": "example",
      "PatNum": 1,
      "PatStatus": "example",
      "Position": "example",
      "PreferConfirmMethod": "example",
      "PreferContactMethod": "example",
      "PreferRecallMethod": "example",
      "Preferred": "example",
      "PriProv": 1,
      "SecDateEntry": "example",
      "State": "example",
      "TxtMsgOk": "example",
      "WirelessPhone": "example",
      "WkPhone": "example",
      "Zip": "example",
      "clinicAbbr": "example",
      "priProvAbbr": "example"
    }
  ]
}
```

### Set appointment confirmation

Set an appointment's confirmation status, such as Confirmed or Left message, from the office's own list.

**Inputs**

- Appointment number (`appointment_id`, number, required): The appointment's number in Open Dental (AptNum). At least 1.
- Confirmation status (`confirmation_status`, number, required): The confirmation status, from the office's own list. At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "AppointmentTypeNum": 1,
    "AptDateTime": "example",
    "AptNum": 1,
    "AptStatus": "example",
    "ClinicNum": 1,
    "Confirmed": 1,
    "DateTStamp": "example",
    "DateTimeArrived": "example",
    "DateTimeDismissed": "example",
    "DateTimeSeated": "example",
    "IsHygiene": "example",
    "IsNewPatient": "example",
    "Note": "example",
    "Op": 1,
    "PatNum": 1,
    "Pattern": "example",
    "Priority": "example",
    "ProcDescript": "example",
    "ProvHyg": 1,
    "ProvNum": 1,
    "SecDateTEntry": "example",
    "confirmed": "example",
    "provAbbr": "example"
  }
}
```

### Update appointment

Move, reschedule or change an appointment. Only the fields filled in change. To reschedule a broken appointment, set its status to Scheduled with a new date, time and operatory.

**Inputs**

- Appointment number (`appointment_id`, number, required): The appointment's number in Open Dental (AptNum). At least 1.
- Date (`date`, date): The day of the appointment. Fill in with Start time to move it.
- Start time (`start_time`, time): When it starts, in the office's time. Fill in with Date to move it.
- Operatory (`operatory_id`, number): The operatory (chair) it's in. At least 1.
- Length (minutes) (`length_minutes`, number): How long it lasts, in 5-minute steps. Leave empty to keep it. From 5 to 540.
- Status (`status`, text): The appointment's status. One of: `Scheduled`, `Complete`, `UnschedList` (Unscheduled list), `Broken`, `Planned`.
- Provider (`dental_provider_id`, number): The dentist. At least 1.
- Hygienist (`hygienist_id`, number): The hygienist, if any. At least 1.
- Appointment type (`appointment_type_id`, number): The appointment type, which adds its procedures, length and color. At least 0.
- Confirmation status (`confirmation_status`, number): The confirmation status, from the office's own list. At least 1.
- Note (`note`, text): The appointment note. Replaces the note; use Add appointment note to add a line.
- Priority (`priority`, text): ASAP puts it on the ASAP list. One of: `Normal`, `ASAP`.
- New patient (`is_new_patient`, true/false): Whether this is the patient's first visit.
- Hygiene appointment (`is_hygiene`, true/false): Whether it's a hygiene appointment.
- Clinic (`clinic_id`, number): The clinic. Leave empty for the operatory's clinic, or if the office doesn't use clinics. At least 0.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "AppointmentTypeNum": 1,
    "AptDateTime": "example",
    "AptNum": 1,
    "AptStatus": "example",
    "ClinicNum": 1,
    "Confirmed": 1,
    "DateTStamp": "example",
    "DateTimeArrived": "example",
    "DateTimeDismissed": "example",
    "DateTimeSeated": "example",
    "IsHygiene": "example",
    "IsNewPatient": "example",
    "Note": "example",
    "Op": 1,
    "PatNum": 1,
    "Pattern": "example",
    "Priority": "example",
    "ProcDescript": "example",
    "ProvHyg": 1,
    "ProvNum": 1,
    "SecDateTEntry": "example",
    "confirmed": "example",
    "provAbbr": "example"
  }
}
```

### Update patient

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

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.
- Last name (`last_name`, text): The patient's last name.
- First name (`first_name`, text): The patient's first name.
- Middle initial (`middle_initial`, text): Middle initial or name.
- Preferred name (`preferred_name`, text): The name they go by.
- Status (`status`, text): The patient's status. New patients are Patient unless you choose otherwise. One of: `Patient`, `NonPatient` (Non-patient), `Inactive`, `Archived`, `Deceased`, `Prospective`.
- Gender (`gender`, text): The patient's gender. One of: `Male`, `Female`, `Unknown`.
- Marital status (`marital_status`, text): Marital status, or Child. One of: `Single`, `Married`, `Child`, `Widowed`, `Divorced`.
- Birthdate (`birthdate`, date): Date of birth.
- Email (`email`, text): Email address.
- Mobile phone (`mobile_phone`, text): Mobile phone number, with any punctuation.
- Home phone (`home_phone`, text): Home phone number, with any punctuation.
- Work phone (`work_phone`, text): Work phone number, with any punctuation.
- Address (`address`, text): Street address.
- Address line 2 (`address2`, text): Second address line.
- City (`city`, text): City.
- State (`state`, text): Two capital letters in the USA, such as CA; the province in Canada.
- ZIP code (`zip`, text): 12345, 12345-1234 or 123456789 in the USA; A0A 0A0 in Canada.
- Primary provider (`primary_provider_id`, number): The patient's primary provider. At least 1.
- Clinic (`clinic_id`, number): The patient's clinic. Leave empty if the office doesn't use clinics. At least 0.
- Billing type (`billing_type`, text): The patient's billing type.
- Preferred contact method (`contact_method`, text): How the patient prefers to be contacted. One of: `None`, `DoNotCall` (Do not call), `HmPhone` (Home phone), `WkPhone` (Work phone), `WirelessPh` (Mobile phone), `Email`, `SeeNotes` (See notes), `Mail`, `TextMessage` (Text message).
- Preferred confirmation method (`confirm_method`, text): How the patient prefers to be asked to confirm appointments. One of: `None`, `DoNotCall` (Do not call), `HmPhone` (Home phone), `WkPhone` (Work phone), `WirelessPh` (Mobile phone), `Email`, `SeeNotes` (See notes), `Mail`, `TextMessage` (Text message).
- Preferred recall method (`recall_method`, text): How the patient prefers to be reminded about recalls. One of: `None`, `DoNotCall` (Do not call), `HmPhone` (Home phone), `WkPhone` (Work phone), `WirelessPh` (Mobile phone), `Email`, `SeeNotes` (See notes), `Mail`, `TextMessage` (Text message).
- OK to text (`texting_ok`, text): Whether the patient agreed to text messages. One of: `Unknown`, `Yes`, `No`.
- Language (`language`, text): The patient's language as a three-letter code, such as eng or spa.
- Chart number (`chart_number`, text): The office's chart number, up to 15 characters.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "Address": "example",
    "Address2": "example",
    "BalTotal": 1,
    "BillingType": "example",
    "Birthdate": "example",
    "ChartNumber": "example",
    "City": "example",
    "ClinicNum": 1,
    "DateFirstVisit": "example",
    "DateTStamp": "example",
    "Email": "example",
    "EstBalance": 1,
    "FName": "example",
    "Gender": "example",
    "Guarantor": 1,
    "HmPhone": "example",
    "LName": "example",
    "Language": "example",
    "MiddleI": "example",
    "PatNum": 1,
    "PatStatus": "example",
    "Position": "example",
    "PreferConfirmMethod": "example",
    "PreferContactMethod": "example",
    "PreferRecallMethod": "example",
    "Preferred": "example",
    "PriProv": 1,
    "SecDateEntry": "example",
    "State": "example",
    "TxtMsgOk": "example",
    "WirelessPhone": "example",
    "WkPhone": "example",
    "Zip": "example",
    "clinicAbbr": "example",
    "priProvAbbr": "example"
  }
}
```

### Update patient notes

Replace a patient's notes or emergency contact. Only the fields filled in change; each one replaces what's there.

**Inputs**

- Patient number (`patient_id`, number, required): The patient's number in Open Dental (PatNum). At least 1.
- Medical note (`medical`, text): The medical urgent note.
- Medical history (`medical_history`, text): The patient's complete current medical history.
- Service note (`service`, text): The service note.
- Treatment note (`treatment`, text): Notes that aren't about the patient's treatment, also called odontogram notes.
- Family financial note (`family_financial`, text): The family's financial note, kept with the guarantor.
- Emergency contact name (`emergency_contact_name`, text): Who to call in an emergency.
- Emergency contact phone (`emergency_contact_phone`, text): The emergency contact's phone number.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "FamFinancial": "example",
    "ICEName": "example",
    "ICEPhone": "example",
    "Medical": "example",
    "MedicalComp": "example",
    "PatNum": 1,
    "SecDateTEdit": "example",
    "SecDateTEntry": "example",
    "Service": "example",
    "Treatment": "example"
  }
}
```

### Update task

Change a task's status, description, priority or what it's attached to. Only the fields filled in change.

**Inputs**

- Task number (`task_id`, number, required): The task's number in Open Dental (TaskNum). At least 1.
- Status (`status`, text): The task's status. One of: `New`, `Viewed`, `Done`.
- Description (`description`, text): What needs doing. Replaces the description.
- Short description (`short_description`, text): A short description, shown in the task list. Up to 256 characters.
- Patient number (`patient_id`, number): Attach the task to this patient (their PatNum). At least 1.
- Appointment number (`appointment_id`, number): Attach the task to this appointment (its AptNum), instead of a patient. At least 1.
- Priority (`priority`, number): The task's priority, from the office's own list. At least 1.

**Outputs**

- `data` (object): The response from Open Dental.

**Example output**

```json
{
  "data": {
    "DateTimeEntry": "example",
    "DateTimeFinished": "example",
    "DateTimeOriginal": "example",
    "Descript": "example",
    "DescriptOverride": "example",
    "KeyNum": 1,
    "ObjectType": "example",
    "PriorityDefNum": 1,
    "SecDateTEdit": "example",
    "TaskListNum": 1,
    "TaskNum": 1,
    "TaskStatus": "example",
    "UserNum": 1
  }
}
```
