I just wanted to mention that I’ve been working on the calendar some more. The docs can now organize their schedules so that available appointment time periods can have a “preferred appointment category”. So for example you can specify that you want to see new patients only on Tuesdays from 9AM to noon.
This is done by selecting the preferred appointment category from a drop-down when you create or change "In Office" events. You can enter multiple such In Office events on any given day to achieve the desired schedule.
In addition the calendar is now color-coded according to the preferred appointment categories, and borders between cells appear intelligently according to the appointment category durations, resulting a cleaner and more compact layout.
I expect to check these changes in tomorrow after a bit more testing.
Mbrinson, it’s not a file. You can go to Administration/Calendar/Categories and modify or create the desired categories. Be sure to choose the color (pastels are best) and duration that you want for each.
Thanks Rod.
Am I the only one that the “duration” option doesn’t seem to work for?
The only way I can get it to work is by setting up the “in office” with the preferred category, and then setting up another in office with the default an hour after that, or whatever duration I want to create. The “Duration” doesn’t work as expected.
I would like to go through and add the calendar button to form elements that are still lacking them. I’ve found the code for the input button but I haven’t found the javascript function that it ties to. Not sure where to look for this.
The "in office" event (and its category) should always have a duration of 0. The duration in the associated "preferred category" is what determines the size of the following appointment slots.
If that’s how you were already doing it, then maybe I screwed something up. In that case please send me the details of exactly what you did and what results you see.
I’m not sure what exactly you mean. Perhaps you could send one or more screenshots that illustrate the problem? rod at sunsetsystems dot com.
If you have upgraded an existing installation, make sure you have applied the relevant database change (to openemr_postcalendar_events) from sql/2_8_1-to-2_8_2_upgrade.sql.
For others who may have been confused as to how this function works, the following is my question and then the explanation Rod e-mailed me:
ME:
In my mind the coloring would go back to normal (white in this case) after the duration period of 1 hour. As it is, if I don’t put anything else after that period it looks like we are wanting to accept new patients during any period after 9:00 instead of just from 9:00 to 10:00.
Is that the way it’s supposed to work? Maybe I just don’t know what the intended use is…
ROD:
The duration in the category is the size of each time slot. If you want to change the time slot size later in the day then you need another IN event with the new default category (or with no default category).
So for example if you want to accept new patients between 9AM and 10AM, with 30 minutes per appointment (i.e. 2 appointment slots) then set the category duration to 30 minutes, the IN event for 9AM, and a following IN event for 10AM.