More Calendar Improvements

sunsetsystems wrote on Wednesday, June 28, 2006:

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.

Rod
www.sunsetsystems.com

sunsetsystems wrote on Friday, June 30, 2006:

See http://livepenguin.com/openemr/ for a couple of screenshots.

Rod
www.sunsetsystems.com

tekknogenius wrote on Friday, June 30, 2006:

Looks good.

mbrinson wrote on Monday, July 10, 2006:

What file do you modify to create customized preferred categories?

sunsetsystems wrote on Monday, July 10, 2006:

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.

Rod
www.sunsetsystems.com

mbrinson wrote on Monday, July 10, 2006:

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.

Thanks,

mbrinson.

mbrinson wrote on Monday, July 10, 2006:

Please disregard the last part of the above message.  I figured it out and will begin working on putting it into form elements where it makes sense.

sunsetsystems wrote on Monday, July 10, 2006:

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.

Rod
www.sunsetsystems.com

tekknogenius wrote on Wednesday, July 19, 2006:

I downloaded from cvs, but don’t see the new event dialogbox. Do I need to do something else?

tekknogenius wrote on Wednesday, July 19, 2006:

Nevermind. It only shows for In-Office events.

Thanx

mbrinson wrote on Thursday, July 20, 2006:

I’m pretty sure I’m doing it right, but the duration option still doesn’t seem to be working for me.

I’ve left the duration set at 0 and put 1 hour in the prefered category under administration / calendar / categories.

When I enter the event in the calendar it goes until it hits the next "in" event.

sunsetsystems wrote on Thursday, July 20, 2006:

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.

Rod
www.sunsetsystems.com

mbrinson wrote on Saturday, July 22, 2006:

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.

Rod