Another planned appointment question

For requests or help with our API
Post Reply
rinse-rey
Posts: 23
Joined: Tue Sep 13, 2022 12:15 pm

Another planned appointment question

Post by rinse-rey » Wed Nov 16, 2022 8:05 am

Hi there,

I created a planned appt. Through the API, a new appointment was created for that planned appointment.

Later, the user canceled the appointment. When trying to book the appointment again from the planned appointment, I'm receiving the following issues:

Planned Appointment must contain at least one unscheduled procedure.

How do we solve this issue?
Attachments
Screen Shot 2022-11-16 at 12.01.50 PM.png
Screen Shot 2022-11-16 at 12.01.50 PM.png (656.95 KiB) Viewed 1118 times

DerekR
Posts: 79
Joined: Wed Aug 31, 2022 1:13 pm

Re: Another planned appointment question

Post by DerekR » Wed Nov 16, 2022 3:14 pm

Hello rinse-rey,

When rescheduling any broken/unscheduled appointment in Open Dental, the appointment object is simply updated and put back on the Appointment Module. To perform this behavior with the API, we recommend using our Appointments PUT (update) on the broken scheduled appointment. You would need to change the "AptStatus" to "Scheduled", "AptDateTime" to the new time, and if the broken appointment is in the Unscheduled List, you will also need to update the "Op".

We've updated our documentation to describe this workflow https://www.opendental.com/site/apiappointments.html.

rinse-rey
Posts: 23
Joined: Tue Sep 13, 2022 12:15 pm

Re: Another planned appointment question

Post by rinse-rey » Thu Nov 17, 2022 12:45 pm

Awesome. Thanks for the explanation; I could solve the issue.

Post Reply