appointment_time_change table has one row per change to an appointment’s scheduled time, including the time set when the appointment was booked. It holds the time the appointment moved from and to, when the change was made, and who made it. Join to appointment on appointment_id, and to user on modified_by_user_id.
This table’s columns and relationships are shown in the Hosted Database schema.
For reporting on but not limited to:
- How often appointments are rescheduled, by practice, provider, or period
- How much notice a reschedule gives, and how many are same-day
- The full scheduling history of one appointment
- Appointments that moved more than once before they were kept
Before you query appointment time changes
The first row is the booking, not a reschedule
The row whereold_appt_time is null records the time set when the appointment was booked. Every other row is a reschedule from old_appt_time to new_appt_time. Filter on old_appt_time is not null to count reschedules, and leave the filter off when you want each appointment’s starting time as well.
The appointment’s current time is appointment.appt_time, which matches new_appt_time on the most recent change.
History starts on 2025-07-01
Changes made before 2025-07-01 are not recorded. An appointment booked earlier has no booking row, and reschedules made before that date are missing, so an appointment can appear to start at a time it was moved to rather than the time it was booked for. Restrict a reschedule rate to appointments booked on or after 2025-07-01, so the appointments in the numerator and the denominator cover the same period.Appointment times and change times use different time zones
old_appt_time and new_appt_time are in your practice’s time zone, the same as appointment.appt_time. modified_time is in Pacific Time. Convert one before comparing them, for example to measure how much notice a reschedule gave. The Hosted Database does not carry a practice’s time zone, so name it in the query, as the notice given by a reschedule example does.
Rows are never changed or removed
A change stays recorded even after the appointment is deleted, so the table keeps the history of appointments that no longer appear in the schedule. To leave deleted appointments out, joinappointment and filter on its deletion_time.
Some changes are recorded against an Elation system user
A change made through an integration rather than by a person is recorded against an Elation system user. That user carries no first or last name, and occasionally has no row inuser at all. Left join user so these rows are kept, and expect a blank name rather than a person’s.
Only the scheduled time is recorded
Changes to an appointment’s duration, provider, type, or status are not in this table. For status history, including cancellations, useappointment_status.
The scheduling history of one appointment
Returns every change to one appointment in order, starting with the time it was booked for.Reschedules by practice and month
Counts reschedules, and the appointments behind them, for each practice in each month. An appointment moved three times counts as three reschedules and one appointment.Notice given by a reschedule
Measures how far ahead of the appointment each reschedule was made, and how many gave less than a day’s notice. ReplacePacific/Honolulu with your practice’s time zone, which puts modified_time on the same clock as old_appt_time. A negative figure is a change made after the appointment had already passed.