Appointment Calendar Wish for 4.1 release

juggernautsei wrote on Tuesday, September 20, 2011:

I have a request from all of my Doctors front office people. Can the little calendar on the left hand side of the page be changed to be like the calendar inside the appointment scheduler. They need to skip forward two or three months to find an opening in the calendar for a patient and have to click and wait click and wait. I know that there is a feature for finding open appointments but nobody likes it. They want to look at the calendar for that day. The visual is much better to the person doing the scheduling.

Thanks!

Sherwin

mike-h30 wrote on Tuesday, September 20, 2011:

That is one of the drawbacks I feel about the Outlook style calendar.  The users I support prefer the Original style calendar for the reasons you mentioned.

Mike

yehster wrote on Wednesday, October 05, 2011:

@Sherwin,
Can you explain what you want in more detail?  Is this request basically that the office folks would like a way to skip directly to a particular month and/or possibly skip two or three months at a time, rather than having to click one month at a time?

juggernautsei wrote on Wednesday, October 05, 2011:

http://www.youtube.com/watch?v=rpD0onkKvVw

Here is the video of what I am talking about. Yes, the office folk would like to skip ahead and not click and wait.

Thanks!

yehster wrote on Thursday, October 06, 2011:

https://github.com/yehster/openemr/commits/directMonthAccess
https://github.com/yehster/openemr/commit/071a44d1bd28ae87e15fcb7feec1a6cf8eaa3f2f

This code makes it so that when you click on the month in the small calendar in the datePicker DIV, your are presented with a list of the current month and the next 12 months which you can click and there by go directly to a particular month.

bradymiller wrote on Thursday, October 06, 2011:

nice,

Just committed this to sourceforge and will include this in the next 4.1 patch.

thanks for the contribution,
-brady

yehster wrote on Friday, October 07, 2011:

@Brady,
Turns out I’m using a method that is only in php 5.3 and newer.  Calendar changes are broken on the development demo because of it.  Error in log as follows.

http://www.php.net/manual/en/datetime.gettimestamp.php

   PHP Fatal error:  Call to undefined method DateTime::getTimestamp() in /var/www/html/openemr/interface/main/calendar/modules/PostCalendar/pntemplates/default/views/monthSelector.php on line 13, referer: http://opensourceemr.com:2089/openemr/interface/main/main_info.php

I’ll fix it ASAP.

-Kevin Yeh

yehster wrote on Friday, October 07, 2011:

https://github.com/yehster/openemr/commit/e8ef607f945227c73337400dd289c1bd4a502ca8

Fix for older php versions.

bradymiller wrote on Saturday, October 08, 2011:

Hi Kevin,

Committed the fix to sourceforge and it will get included in the next 4.1 patch. It will show up in the demo tomorrow morning.

thanks for the contribution,
-brady

bradymiller wrote on Saturday, October 08, 2011:

Hi Kevin,

In the patch I just released and on the 4.1.x development demo, it appears the feature to increment by month by clicking on the month in the pop-up calendar is not working, while it does work in the 4.2.x development demo. The only commit of yours I didn’t bring over to 4.1.x (the rel-410 branch) is the jquery upgrade; is the higher version of jquery needed for this feature.

To avoid confusion, here are the developer demo links:

4.1.x developer demo (code from ‘rel-410’ branch):
http://open-emr.org/wiki/index.php/Development_4.1.x_Demo

4.2.x developer demo (code from ‘master’ branch):
http://open-emr.org/wiki/index.php/Development_Demo

-brady

yehster wrote on Saturday, October 08, 2011:

https://github.com/yehster/openemr/commit/94d7546fbdf8c35046ea09dad86d0c6cdd8d4fca#diff-0
https://github.com/yehster/openemr/commits/directCalendarFix

Let’s try this again!
I switched from using the :hidden selector to determine visibility myself to using the .toggle method and letting jQuery worry about it.
The :hidden selector changed in 1.3.2 (the calendar uses 1.2.2)
http://api.jquery.com/hidden-selector/
This is why it worked in the 4.2 version with the updated jQuery and didn’t work in the 4.1 with the old.
The toggle method I’m using now has been part of jQuery since 1.0, so it works for both old and new, and I’ve tested it with 1.2.2 this time.

-Kevin Yeh

bradymiller wrote on Saturday, October 08, 2011:

Hi Kevin,

Thanks for the quick fix. I committed it to sourceforge and it will be included in the next 4.1 patch.

-brady